Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") [: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.001638/0.001638, allocations: 171.6 kB / 8.145 MB, free: 2.207 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.722/1.722, 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.001689/0.001688, allocations: 90.73 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.262/0.262, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.123e-06/7.204e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2768, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1532/0.4301, allocations: 85.69 MB / 0.549 GB, free: 13.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.4304, allocations: 63.47 kB / 0.5491 GB, free: 13.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03838/0.4688, allocations: 8.474 MB / 0.5574 GB, free: 4.855 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.4688, allocations: 4 kB / 0.5574 GB, free: 4.852 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.0006522/0.4695, allocations: 440 kB / 0.5578 GB, free: 4.371 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.4695, allocations: 8.031 kB / 0.5578 GB, free: 4.363 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.4696, allocations: 0 / 0.5578 GB, free: 4.363 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.4697, allocations: 163 kB / 0.558 GB, free: 4.164 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.4698, allocations: 3.906 kB / 0.558 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.4698, allocations: 4 kB / 0.558 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.523e-05/0.4698, allocations: 0 / 0.558 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.751e-05/0.4699, allocations: 41.67 kB / 0.558 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.4699, allocations: 0 / 0.558 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.47, allocations: 0 / 0.558 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.47, allocations: 0 / 0.558 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.4701, allocations: 126.2 kB / 0.5581 GB, free: 3.949 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.318e-05/0.4702, allocations: 18.67 kB / 0.5581 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.015e-05/0.4702, allocations: 8.859 kB / 0.5582 GB, free: 3.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.4702, allocations: 3.938 kB / 0.5582 GB, free: 3.906 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.4703, allocations: 60.27 kB / 0.5582 GB, free: 3.832 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.664e-06/0.4703, allocations: 0 / 0.5582 GB, free: 3.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001725/0.4705, allocations: 41.66 kB / 0.5583 GB, free: 3.785 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.4705, allocations: 81.11 kB / 0.5583 GB, free: 3.688 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.865e-05/0.4706, allocations: 85 kB / 0.5584 GB, free: 3.598 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.4706, allocations: 25.7 kB / 0.5584 GB, free: 3.566 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/0.4707, allocations: 154.6 kB / 0.5586 GB, free: 3.414 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.4707, allocations: 4.156 kB / 0.5586 GB, free: 3.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.4708, allocations: 0 / 0.5586 GB, free: 3.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4709, allocations: 310.8 kB / 0.5589 GB, free: 3.098 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.4709, allocations: 0 / 0.5589 GB, free: 3.098 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.101e-05/0.4709, allocations: 4 kB / 0.5589 GB, free: 3.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.531e-05/0.471, allocations: 3.984 kB / 0.5589 GB, free: 3.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.471, allocations: 0 / 0.5589 GB, free: 3.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.908e-05/0.4711, allocations: 41.55 kB / 0.5589 GB, free: 3.043 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.4711, allocations: 8 kB / 0.5589 GB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.4711, allocations: 4.094 kB / 0.5589 GB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.4712, allocations: 7.938 kB / 0.559 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.4712, allocations: 0 / 0.559 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.4712, allocations: 0 / 0.559 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.879e-05/0.4712, allocations: 0 / 0.559 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.597e-06/0.4712, allocations: 3.938 kB / 0.559 GB, free: 3.02 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.358e-05/0.4713, allocations: 55.41 kB / 0.559 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.4713, allocations: 7.891 kB / 0.559 GB, free: 2.945 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.272e-05/0.4714, allocations: 3.156 kB / 0.559 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4714, allocations: 4 kB / 0.559 GB, free: 2.934 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4714, allocations: 4 kB / 0.559 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.4714, allocations: 0 / 0.559 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.705e-05/0.4715, allocations: 122.2 kB / 0.5591 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4715, allocations: 0 / 0.5591 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.4715, allocations: 3.984 kB / 0.5591 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4715, allocations: 0 / 0.5591 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.4716, allocations: 7.984 kB / 0.5592 GB, free: 2.762 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4716, allocations: 0 / 0.5592 GB, free: 2.762 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4716, allocations: 3.906 kB / 0.5592 GB, free: 2.758 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000117/0.4717, allocations: 65.08 kB / 0.5592 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.4718, allocations: 81.09 kB / 0.5593 GB, free: 2.578 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.4718, allocations: 0 / 0.5593 GB, free: 2.578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.637e-05/0.4718, allocations: 3.906 kB / 0.5593 GB, free: 2.574 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.4718, allocations: 4 kB / 0.5593 GB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.4719, allocations: 0 / 0.5593 GB, free: 2.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.647e-05/0.4719, allocations: 75.28 kB / 0.5594 GB, free: 2.496 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004714/0.4724, allocations: 84.05 kB / 0.5595 GB, free: 2.414 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.000909/0.4733, allocations: 331.5 kB / 0.5598 GB, free: 2.109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.4e-05/0.4734, allocations: 33.7 kB / 0.5598 GB, free: 2.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4734, allocations: 0 / 0.5598 GB, free: 2.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.87e-05/0.4735, allocations: 29.7 kB / 0.5598 GB, free: 2.035 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.4736, allocations: 0 / 0.5598 GB, free: 2.035 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001935/0.4738, allocations: 69.77 kB / 0.5599 GB, free: 1.938 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003327/0.4741, allocations: 0.688 MB / 0.5606 GB, free: 1.223 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4742, allocations: 0 / 0.5606 GB, free: 1.223 MB / 394.7 MB Notification: Performance of Templates: time 0.005599/0.4798, allocations: 1.789 MB / 0.5623 GB, free: 15.43 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches