Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 108.7 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002285/0.002285, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001126, allocations: 51.91 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3947, allocations: 49.44 MB / 400.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004813/0.3995, allocations: 2.881 MB / 403.6 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.401, allocations: 0.6972 MB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.4012, allocations: 4 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.4015, allocations: 59.5 kB / 404.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.4018, allocations: 95.19 kB / 404.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.4023, allocations: 107.8 kB / 404.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005159/0.4028, allocations: 398.5 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.4031, allocations: 131.9 kB / 405.1 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.4033, allocations: 147.4 kB / 405.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.4036, allocations: 179.2 kB / 405.4 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.4036, allocations: 36 kB / 405.5 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.4037, allocations: 40 kB / 405.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.4038, allocations: 79.69 kB / 405.6 MB, free: 4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.404, allocations: 167.2 kB / 405.8 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004473/0.4044, allocations: 391.8 kB / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4045, allocations: 0 / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4045, allocations: 0 / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.4045, allocations: 0 / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001547/0.406, allocations: 0.677 MB / 406.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.4061, allocations: 12.03 kB / 406.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.367e-05/0.4062, allocations: 40.47 kB / 406.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000481/0.4067, allocations: 295.6 kB / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.4067, allocations: 20.94 kB / 407.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.023e-05/0.4068, allocations: 24.38 kB / 407.2 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007174/0.4075, allocations: 319.9 kB / 407.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4075, allocations: 0 / 407.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.664e-05/0.4076, allocations: 16 kB / 407.5 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.4076, allocations: 4 kB / 407.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007773/0.4084, allocations: 274 kB / 407.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.4102, allocations: 1.142 MB / 408.9 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.411, allocations: 202.6 kB / 409.1 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/0.4113, allocations: 88.78 kB / 409.2 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.4114, allocations: 4 kB / 409.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005153/0.4119, allocations: 165.1 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.934e-06/0.4119, allocations: 0 / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001325/0.4132, allocations: 411 kB / 409.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4133, allocations: 85.09 kB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.4137, allocations: 328.4 kB / 410.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.4137, allocations: 33.7 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.4139, allocations: 199.5 kB / 410.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.069e-05/0.4139, allocations: 31.55 kB / 410.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.253e-05/0.414, allocations: 57.83 kB / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4142, allocations: 342.8 kB / 410.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.4145, allocations: 96.16 kB / 410.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.415, allocations: 218.9 kB / 411.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006923/0.4157, allocations: 323.9 kB / 411.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4157, allocations: 4 kB / 411.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000933/0.4166, allocations: 407.7 kB / 411.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.794e-05/0.4167, allocations: 37.7 kB / 411.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.4167, allocations: 4 kB / 411.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.4169, allocations: 28.78 kB / 411.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.4172, allocations: 72.03 kB / 412 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.4185, allocations: 1.414 MB / 413.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.4189, allocations: 55.56 kB / 413.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.4189, allocations: 12 kB / 413.5 MB, free: 11.51 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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.0001686/0.4191, allocations: 143.3 kB / 413.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.4191, allocations: 31.72 kB / 413.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.688e-05/0.4192, allocations: 30.67 kB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.4192, allocations: 0 / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.4192, allocations: 3.938 kB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.4192, allocations: 3.984 kB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004666/0.4197, allocations: 447.2 kB / 414.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4197, allocations: 3.938 kB / 414.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.4199, allocations: 36.33 kB / 414.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.42, allocations: 28.81 kB / 414.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.42, allocations: 8 kB / 414.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009533/0.421, allocations: 1.387 MB / 415.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.421, allocations: 3.938 kB / 415.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007407/0.4217, allocations: 274.3 kB / 415.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.963e-05/0.4218, allocations: 104.8 kB / 416 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.4219, allocations: 16 kB / 416 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.4221, allocations: 19.97 kB / 416 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.54e-05/0.4222, allocations: 23.91 kB / 416 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.4222, allocations: 4 kB / 416 MB, free: 8.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.4224, allocations: 235 kB / 416.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4224, allocations: 0 / 416.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003385/0.4228, allocations: 67.84 kB / 416.3 MB, free: 8.418 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,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 (9): * Single equations (assignments): 6 * 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.0001653/0.423, allocations: 115.9 kB / 416.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.424, allocations: 406.1 kB / 416.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.424, allocations: 0 / 416.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004605/0.4245, allocations: 223.3 kB / 417.1 MB, free: 7.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.4249, allocations: 49.59 kB / 417.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.4259, allocations: 491 kB / 417.6 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.4262, allocations: 0.7596 MB / 418.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.4263, allocations: 30.97 kB / 418.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.106e-05/0.4264, allocations: 27.44 kB / 418.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.4264, allocations: 0 / 418.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of Templates: time 0.006876/0.4333, allocations: 3.252 MB / 421.7 MB, free: 3.02 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches