Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 172 kB / 8.148 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.69/1.69, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 97.31 kB / 261.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2799/0.2799, allocations: 43.5 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.178e-06/9.418e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3071, allocations: 58.85 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1633/0.4705, allocations: 84.06 MB / 0.5475 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4708, allocations: 67.47 kB / 0.5475 GB, free: 14.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003495/0.4743, allocations: 0.668 MB / 0.5482 GB, free: 14.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.4744, allocations: 8 kB / 0.5482 GB, free: 14.27 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003782/0.4748, allocations: 334.3 kB / 0.5485 GB, free: 13.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.4748, allocations: 8.031 kB / 0.5485 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.4749, allocations: 11.84 kB / 0.5485 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002176/0.4751, allocations: 179 kB / 0.5487 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.4751, allocations: 0 / 0.5487 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.4751, allocations: 4 kB / 0.5487 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.857e-05/0.4752, allocations: 12 kB / 0.5487 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.4754, allocations: 45.69 kB / 0.5487 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.4754, allocations: 3.938 kB / 0.5488 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.4754, allocations: 0 / 0.5488 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.4754, allocations: 4 kB / 0.5488 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005621/0.476, allocations: 261.2 kB / 0.549 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.619e-05/0.4761, allocations: 26.58 kB / 0.549 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.903e-05/0.4761, allocations: 8.859 kB / 0.549 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.4762, allocations: 0 / 0.549 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.128e-05/0.4762, allocations: 51.42 kB / 0.5491 GB, free: 13.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 2.054e-06/0.4763, allocations: 0 / 0.5491 GB, free: 13.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001551/0.4764, allocations: 37.69 kB / 0.5491 GB, free: 13.15 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.4765, allocations: 51.41 kB / 0.5492 GB, free: 13.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.966e-05/0.4766, allocations: 108.9 kB / 0.5493 GB, free: 12.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.4766, allocations: 25.7 kB / 0.5493 GB, free: 12.94 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.131e-05/0.4767, allocations: 158.5 kB / 0.5495 GB, free: 12.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.4767, allocations: 7.906 kB / 0.5495 GB, free: 12.78 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.4767, allocations: 0 / 0.5495 GB, free: 12.78 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4769, allocations: 314.8 kB / 0.5498 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.517e-05/0.4769, allocations: 11.28 kB / 0.5498 GB, free: 12.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.768e-05/0.477, allocations: 17.7 kB / 0.5498 GB, free: 12.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.369e-05/0.477, allocations: 15.94 kB / 0.5498 GB, free: 12.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.477, allocations: 0 / 0.5498 GB, free: 12.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000113/0.4772, allocations: 45.69 kB / 0.5498 GB, free: 12.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.4772, allocations: 6.656 kB / 0.5499 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4772, allocations: 0 / 0.5499 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.4772, allocations: 4.188 kB / 0.5499 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.976e-05/0.4773, allocations: 0 / 0.5499 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.4773, allocations: 4 kB / 0.5499 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.313e-05/0.4774, allocations: 0 / 0.5499 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.4774, allocations: 11.94 kB / 0.5499 GB, free: 12.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.665e-05/0.4775, allocations: 36.03 kB / 0.5499 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.4775, allocations: 0 / 0.5499 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.946e-05/0.4775, allocations: 11.98 kB / 0.5499 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.4776, allocations: 3.906 kB / 0.5499 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4776, allocations: 0 / 0.5499 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4776, allocations: 0 / 0.5499 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003943/0.478, allocations: 271.2 kB / 0.5502 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.478, allocations: 3.906 kB / 0.5502 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.19e-05/0.4781, allocations: 8 kB / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.4781, allocations: 0 / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.4781, allocations: 0 / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.4781, allocations: 3.938 kB / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4781, allocations: 0 / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001756/0.4783, allocations: 151.4 kB / 0.5503 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.627e-05/0.4784, allocations: 85.2 kB / 0.5504 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.4784, allocations: 4 kB / 0.5504 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.535e-05/0.4785, allocations: 3.906 kB / 0.5504 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.4786, allocations: 0 / 0.5504 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.4786, allocations: 4.219 kB / 0.5504 GB, free: 11.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.28e-05/0.4787, allocations: 91.64 kB / 0.5505 GB, free: 11.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002547/0.4789, allocations: 7.938 kB / 0.5505 GB, free: 11.58 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001438/0.4791, allocations: 95.25 kB / 0.5506 GB, free: 11.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.574e-05/0.4792, allocations: 19.94 kB / 0.5506 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4792, allocations: 4 kB / 0.5506 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.467e-05/0.4792, allocations: 4 kB / 0.5506 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.4796, allocations: 15.91 kB / 0.5507 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003313/0.4799, allocations: 106 kB / 0.5508 GB, free: 11.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.4803, allocations: 0.7014 MB / 0.5514 GB, free: 10.58 MB / 394.7 MB Notification: Performance of SimCode: time 8.91e-07/0.4803, allocations: 0 / 0.5514 GB, free: 10.58 MB / 394.7 MB Notification: Performance of Templates: time 0.002661/0.4829, allocations: 0.7103 MB / 0.5521 GB, free: 9.867 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches