Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.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.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") [: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.001636/0.001636, allocations: 170.2 kB / 8.147 MB, free: 2.223 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.709/1.709, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001284/0.001284, allocations: 97.08 kB / 261.8 MB, free: 13.62 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.2642/0.2642, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.097e-05/1.113e-05, allocations: 4 kB / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2929, allocations: 58.84 MB / 476.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1715/0.4645, allocations: 84.31 MB / 0.5477 GB, free: 14.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.4648, allocations: 63.47 kB / 0.5478 GB, free: 14.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.004067/0.4689, allocations: 0.6376 MB / 0.5484 GB, free: 14.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.545e-06/0.4689, allocations: 0 / 0.5484 GB, free: 14.09 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004543/0.4694, allocations: 342.3 kB / 0.5487 GB, free: 13.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4695, allocations: 8.031 kB / 0.5487 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.4695, allocations: 11.91 kB / 0.5487 GB, free: 13.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.4697, allocations: 167 kB / 0.5489 GB, free: 13.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.4697, allocations: 0 / 0.5489 GB, free: 13.49 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.4697, allocations: 0 / 0.5489 GB, free: 13.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.596e-05/0.4698, allocations: 15.98 kB / 0.5489 GB, free: 13.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.47, allocations: 55.25 kB / 0.549 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.47, allocations: 0 / 0.549 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.47, allocations: 4 kB / 0.549 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.47, allocations: 0 / 0.549 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.4705, allocations: 241.5 kB / 0.5492 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.954e-05/0.4706, allocations: 26.61 kB / 0.5492 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.896e-05/0.4706, allocations: 12.92 kB / 0.5492 GB, free: 13.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.4707, allocations: 7.906 kB / 0.5492 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.4707, allocations: 34.56 kB / 0.5493 GB, free: 13.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.893e-06/0.4707, allocations: 3.938 kB / 0.5493 GB, free: 13.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001878/0.4709, allocations: 41.64 kB / 0.5493 GB, free: 12.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.471, allocations: 81.09 kB / 0.5494 GB, free: 12.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.614e-05/0.4711, allocations: 97 kB / 0.5495 GB, free: 12.78 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.4711, allocations: 25.7 kB / 0.5495 GB, free: 12.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.093e-05/0.4712, allocations: 154.6 kB / 0.5497 GB, free: 12.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.4712, allocations: 7.906 kB / 0.5497 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-06/0.4712, allocations: 0 / 0.5497 GB, free: 12.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4714, allocations: 318.8 kB / 0.55 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.214e-05/0.4714, allocations: 4 kB / 0.55 GB, free: 12.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.88e-05/0.4715, allocations: 21.72 kB / 0.55 GB, free: 12.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.166e-05/0.4715, allocations: 4 kB / 0.55 GB, free: 12.23 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4715, allocations: 0 / 0.55 GB, free: 12.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001271/0.4717, allocations: 56.81 kB / 0.55 GB, free: 12.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.4717, allocations: 8.031 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.4717, allocations: 4 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4717, allocations: 0 / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.4719, allocations: 4 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.4719, allocations: 0 / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.472, allocations: 11.98 kB / 0.5501 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.472, allocations: 4 kB / 0.5501 GB, free: 12.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 5.701e-05/0.4721, allocations: 29.7 kB / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.4721, allocations: 3.906 kB / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.4722, allocations: 15.61 kB / 0.5501 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4722, allocations: 144 / 0.5501 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4722, allocations: 0 / 0.5501 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.4722, allocations: 7.984 kB / 0.5501 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.4724, allocations: 142.1 kB / 0.5503 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4724, allocations: 0 / 0.5503 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.4725, allocations: 8 kB / 0.5503 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.4725, allocations: 4 kB / 0.5503 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.4725, allocations: 0 / 0.5503 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4726, allocations: 0 / 0.5503 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4726, allocations: 0 / 0.5503 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001624/0.4728, allocations: 143.7 kB / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.922e-05/0.4728, allocations: 77.11 kB / 0.5505 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.4729, allocations: 4.031 kB / 0.5505 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.473, allocations: 19.89 kB / 0.5505 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.498e-05/0.4731, allocations: 3.984 kB / 0.5505 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.4731, allocations: 4 kB / 0.5505 GB, free: 11.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.202e-05/0.4732, allocations: 91.25 kB / 0.5506 GB, free: 11.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002464/0.4734, allocations: 4 kB / 0.5506 GB, free: 11.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001289/0.4736, allocations: 99.19 kB / 0.5507 GB, free: 11.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00012/0.4737, allocations: 23.94 kB / 0.5507 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4737, allocations: 0 / 0.5507 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.316e-05/0.4738, allocations: 11.94 kB / 0.5507 GB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.474, allocations: 5.688 kB / 0.5507 GB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.4743, allocations: 89.48 kB / 0.5508 GB, free: 11.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003765/0.4747, allocations: 0.6997 MB / 0.5515 GB, free: 10.52 MB / 394.7 MB Notification: Performance of SimCode: time 6.42e-07/0.4747, allocations: 0 / 0.5515 GB, free: 10.52 MB / 394.7 MB Notification: Performance of Templates: time 0.002456/0.4772, allocations: 0.6263 MB / 0.5521 GB, free: 9.898 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches