Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001936/0.001936, allocations: 99.53 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002004/0.002004, allocations: 156.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 272.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.001e-05/3.165e-05, allocations: 2.312 kB / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005096/0.005127, allocations: 2.884 MB / 275.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.006698, allocations: 0.7049 MB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.006858, allocations: 11.94 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.007069, allocations: 55.44 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.007315, allocations: 107.1 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.007618, allocations: 95.77 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00052/0.008138, allocations: 402.2 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.008366, allocations: 100.4 kB / 276.6 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003173/0.008683, allocations: 223.5 kB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.008926, allocations: 139.6 kB / 276.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.009033, allocations: 40 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.144e-05/0.009104, allocations: 39.94 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.528e-05/0.0092, allocations: 75.69 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.009371, allocations: 123.7 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005691/0.00994, allocations: 414.7 kB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.009944, allocations: 0 / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.009945, allocations: 0 / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.009952, allocations: 0 / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001409/0.01136, allocations: 0.7127 MB / 278.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.0114, allocations: 8.031 kB / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.01153, allocations: 56.75 kB / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.01199, allocations: 257 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.01202, allocations: 21.03 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.966e-05/0.01207, allocations: 24.38 kB / 278.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005965/0.01267, allocations: 288.3 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.01268, allocations: 192 / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.01272, allocations: 12.38 kB / 279 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.01273, allocations: 7.938 kB / 279 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007768/0.01351, allocations: 222.5 kB / 279.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.01552, allocations: 1.027 MB / 280.2 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005253/0.01604, allocations: 159.1 kB / 280.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.01623, allocations: 63.66 kB / 280.4 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.01627, allocations: 4 kB / 280.5 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.01665, allocations: 185.8 kB / 280.6 MB, free: 9.141 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.042e-06/0.01665, allocations: 0 / 280.6 MB, free: 9.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009303/0.01758, allocations: 273.3 kB / 280.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.379e-05/0.01767, allocations: 110.8 kB / 281 MB, free: 8.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.01813, allocations: 392.1 kB / 281.4 MB, free: 8.332 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.01816, allocations: 29.7 kB / 281.4 MB, free: 8.297 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/0.01839, allocations: 274.6 kB / 281.7 MB, free: 8.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.01844, allocations: 47.67 kB / 281.7 MB, free: 7.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.01856, allocations: 67.34 kB / 281.8 MB, free: 7.902 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003097/0.01887, allocations: 0.5157 MB / 282.3 MB, free: 7.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.01912, allocations: 105.7 kB / 282.4 MB, free: 7.266 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.01955, allocations: 317.6 kB / 282.7 MB, free: 6.867 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005929/0.02014, allocations: 331 kB / 283.1 MB, free: 6.469 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.02015, allocations: 0 / 283.1 MB, free: 6.469 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008396/0.02099, allocations: 408 kB / 283.5 MB, free: 6.047 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.406e-05/0.02104, allocations: 37.69 kB / 283.5 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.02105, allocations: 4 kB / 283.5 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003427/0.02139, allocations: 56.09 kB / 283.5 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.02163, allocations: 55.91 kB / 283.6 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.02336, allocations: 1.795 MB / 285.4 MB, free: 3.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.02368, allocations: 47.89 kB / 285.4 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.02372, allocations: 15.98 kB / 285.5 MB, free: 3.91 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002421/0.02396, allocations: 200.4 kB / 285.7 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.02402, allocations: 23.86 kB / 285.7 MB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.481e-05/0.02408, allocations: 29.77 kB / 285.7 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.02409, allocations: 4 kB / 285.7 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.0241, allocations: 0 / 285.7 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.0241, allocations: 4 kB / 285.7 MB, free: 3.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007711/0.02487, allocations: 464.8 kB / 286.2 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.02488, allocations: 0 / 286.2 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.02499, allocations: 19.98 kB / 286.2 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002405/0.02523, allocations: 47.64 kB / 286.2 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.02525, allocations: 8.031 kB / 286.2 MB, free: 3.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.02678, allocations: 1.795 MB / 288 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.02679, allocations: 0 / 288 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005815/0.02737, allocations: 243.5 kB / 288.3 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.821e-05/0.02744, allocations: 39.86 kB / 288.3 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.02747, allocations: 4 kB / 288.3 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.02766, allocations: 15.98 kB / 288.3 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.887e-05/0.02775, allocations: 27.95 kB / 288.4 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.02777, allocations: 7.984 kB / 288.4 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000297/0.02807, allocations: 253.1 kB / 288.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02807, allocations: 0 / 288.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004054/0.02848, allocations: 79.83 kB / 288.7 MB, free: 468 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001561/0.02863, allocations: 103.2 kB / 288.8 MB, free: 356 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009345/0.02957, allocations: 465.5 kB / 289.2 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.02957, allocations: 3.938 kB / 289.3 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/0.03008, allocations: 266.5 kB / 289.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.03046, allocations: 56.77 kB / 289.6 MB, free: 15.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.03151, allocations: 474.6 kB / 290 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.03168, allocations: 151.5 kB / 290.2 MB, free: 14.85 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.03181, allocations: 34.28 kB / 290.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.019e-05/0.03189, allocations: 28.5 kB / 290.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.03189, allocations: 0 / 290.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of Templates: time 0.009263/0.04115, allocations: 3.503 MB / 293.7 MB, free: 11.34 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.662882748991251]