Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal") [: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.002699/0.002698, allocations: 179.8 kB / 8.149 MB, free: 2.203 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.808/1.808, 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.001294/0.001294, allocations: 88.44 kB / 261.8 MB, free: 13.61 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.2606/0.2606, allocations: 43.49 MB / 353.2 MB, free: 2.016 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.124e-06/7.273e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2843, allocations: 58.85 MB / 476.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.432, allocations: 83.92 MB / 0.5473 GB, free: 15.17 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.4323, allocations: 63.48 kB / 0.5474 GB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.006648/0.4389, allocations: 1.344 MB / 0.5487 GB, free: 13.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.439, allocations: 7.938 kB / 0.5487 GB, free: 13.76 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003605/0.4394, allocations: 352.1 kB / 0.549 GB, free: 13.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4394, allocations: 8.031 kB / 0.549 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.4395, allocations: 0 / 0.549 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.4396, allocations: 163.1 kB / 0.5492 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.4396, allocations: 0 / 0.5492 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.4396, allocations: 0 / 0.5492 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.51e-05/0.4397, allocations: 8 kB / 0.5492 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.376e-05/0.4397, allocations: 33.64 kB / 0.5492 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.4398, allocations: 0 / 0.5492 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.4398, allocations: 3.906 kB / 0.5492 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.4398, allocations: 0 / 0.5492 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.4399, allocations: 130.2 kB / 0.5494 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.158e-05/0.44, allocations: 14.58 kB / 0.5494 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.611e-05/0.44, allocations: 4.859 kB / 0.5494 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-06/0.44, allocations: 4 kB / 0.5494 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.4401, allocations: 60.36 kB / 0.5494 GB, free: 12.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.4401, allocations: 0 / 0.5494 GB, free: 12.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001647/0.4403, allocations: 37.64 kB / 0.5495 GB, free: 12.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.4403, allocations: 77.11 kB / 0.5496 GB, free: 12.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.633e-05/0.4404, allocations: 85 kB / 0.5496 GB, free: 12.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.4404, allocations: 25.7 kB / 0.5497 GB, free: 12.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.4405, allocations: 150.6 kB / 0.5498 GB, free: 12.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.834e-05/0.4405, allocations: 7.938 kB / 0.5498 GB, free: 12.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-06/0.4405, allocations: 0 / 0.5498 GB, free: 12.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4406, allocations: 318.8 kB / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.676e-06/0.4407, allocations: 0 / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-06/0.4407, allocations: 0 / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.34e-05/0.4407, allocations: 0 / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4407, allocations: 0 / 0.5501 GB, free: 12.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.809e-05/0.4408, allocations: 40.98 kB / 0.5502 GB, free: 12.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.4409, allocations: 8.094 kB / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.4409, allocations: 0 / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.4409, allocations: 0 / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.4409, allocations: 0 / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.4409, allocations: 0 / 0.5502 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.234e-05/0.441, allocations: 11.92 kB / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.441, allocations: 4 kB / 0.5502 GB, free: 12.04 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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 7.171e-05/0.4411, allocations: 55.31 kB / 0.5502 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-06/0.4411, allocations: 0 / 0.5502 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.694e-05/0.4411, allocations: 3 kB / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4411, allocations: 4 kB / 0.5502 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.4411, allocations: 7.938 kB / 0.5502 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4411, allocations: 0 / 0.5502 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.387e-05/0.4412, allocations: 130.1 kB / 0.5504 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4413, allocations: 0 / 0.5504 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.4413, allocations: 0 / 0.5504 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.4413, allocations: 0 / 0.5504 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.4413, allocations: 4 kB / 0.5504 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.4413, allocations: 0 / 0.5504 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4413, allocations: 0 / 0.5504 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001075/0.4414, allocations: 57.14 kB / 0.5504 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.506e-05/0.4415, allocations: 89 kB / 0.5505 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.4415, allocations: 0 / 0.5505 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.219e-05/0.4415, allocations: 0 / 0.5505 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.107e-05/0.4416, allocations: 0 / 0.5505 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.4416, allocations: 0 / 0.5505 GB, free: 11.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.617e-05/0.4416, allocations: 83.22 kB / 0.5506 GB, free: 11.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002734/0.4419, allocations: 32.02 kB / 0.5506 GB, free: 11.49 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 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0006202/0.4425, allocations: 253.8 kB / 0.5509 GB, free: 11.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.636e-05/0.4426, allocations: 37.62 kB / 0.5509 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4426, allocations: 4.062 kB / 0.5509 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.204e-05/0.4427, allocations: 29.7 kB / 0.5509 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001023/0.4428, allocations: 3.281 kB / 0.5509 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001601/0.443, allocations: 73.72 kB / 0.551 GB, free: 11.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.4433, allocations: 0.688 MB / 0.5517 GB, free: 10.36 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4434, allocations: 0 / 0.5517 GB, free: 10.36 MB / 394.7 MB Notification: Performance of Templates: time 0.003387/0.4468, allocations: 0.9884 MB / 0.5526 GB, free: 9.371 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches