Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile") [: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.001592/0.001592, allocations: 174.4 kB / 8.148 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.721/1.721, 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.001338/0.001337, allocations: 91.47 kB / 261.8 MB, free: 13.64 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.3165/0.3165, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.039e-05/1.058e-05, allocations: 4 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2778, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.4272, allocations: 83.79 MB / 0.5472 GB, free: 15.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/0.4275, allocations: 55.97 kB / 0.5472 GB, free: 15.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01499/0.4425, allocations: 3.408 MB / 0.5506 GB, free: 11.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.4425, allocations: 0 / 0.5506 GB, free: 11.86 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.0004279/0.443, allocations: 384 kB / 0.5509 GB, free: 11.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.443, allocations: 8.031 kB / 0.5509 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.4431, allocations: 11.94 kB / 0.551 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.4432, allocations: 159.1 kB / 0.5511 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.4433, allocations: 0 / 0.5511 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.4433, allocations: 4 kB / 0.5511 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.292e-05/0.4433, allocations: 0 / 0.5511 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.886e-05/0.4434, allocations: 37.53 kB / 0.5511 GB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.4434, allocations: 4 kB / 0.5512 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-06/0.4434, allocations: 0 / 0.5512 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.4434, allocations: 0 / 0.5512 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.4436, allocations: 126.2 kB / 0.5513 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.947e-05/0.4437, allocations: 14.58 kB / 0.5513 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.865e-05/0.4437, allocations: 8.953 kB / 0.5513 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.4437, allocations: 0 / 0.5513 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.328e-05/0.4438, allocations: 60.27 kB / 0.5514 GB, free: 10.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.362e-06/0.4438, allocations: 0 / 0.5514 GB, free: 10.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001807/0.444, allocations: 37.62 kB / 0.5514 GB, free: 10.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.4441, allocations: 89.05 kB / 0.5515 GB, free: 10.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.863e-05/0.4441, allocations: 85 kB / 0.5516 GB, free: 10.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.4442, allocations: 25.7 kB / 0.5516 GB, free: 10.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.4442, allocations: 150.6 kB / 0.5517 GB, free: 10.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.4443, allocations: 0 / 0.5517 GB, free: 10.48 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/0.4443, allocations: 0 / 0.5517 GB, free: 10.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.4444, allocations: 318.8 kB / 0.552 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-06/0.4444, allocations: 0 / 0.552 GB, free: 10.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.094e-06/0.4444, allocations: 4.125 kB / 0.552 GB, free: 10.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.342e-05/0.4445, allocations: 3.984 kB / 0.552 GB, free: 10.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.4445, allocations: 4 kB / 0.552 GB, free: 10.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.248e-05/0.4446, allocations: 29.7 kB / 0.5521 GB, free: 10.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.4446, allocations: 4 kB / 0.5521 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4447, allocations: 0 / 0.5521 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.4447, allocations: 0 / 0.5521 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.945e-06/0.4447, allocations: 3.906 kB / 0.5521 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.4447, allocations: 4 kB / 0.5521 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.78e-05/0.4447, allocations: 4.094 kB / 0.5521 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.4448, allocations: 3.984 kB / 0.5521 GB, free: 10.09 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.055e-05/0.4448, allocations: 59.28 kB / 0.5521 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.512e-05/0.4449, allocations: 7.938 kB / 0.5522 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.686e-05/0.4449, allocations: 3 kB / 0.5522 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.4449, allocations: 0 / 0.5522 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4449, allocations: 0 / 0.5522 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.4449, allocations: 3.906 kB / 0.5522 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.445, allocations: 130.2 kB / 0.5523 GB, free: 9.836 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4451, allocations: 4 kB / 0.5523 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.4451, allocations: 4 kB / 0.5523 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4451, allocations: 0 / 0.5523 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.4451, allocations: 0 / 0.5523 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4451, allocations: 0 / 0.5523 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.4451, allocations: 4 kB / 0.5523 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000127/0.4453, allocations: 65.03 kB / 0.5524 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.4453, allocations: 77.11 kB / 0.5524 GB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.4453, allocations: 8.031 kB / 0.5524 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.4454, allocations: 0 / 0.5524 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.4454, allocations: 0 / 0.5524 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.4454, allocations: 0 / 0.5524 GB, free: 9.641 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.011e-05/0.4454, allocations: 75.28 kB / 0.5525 GB, free: 9.566 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000272/0.4457, allocations: 31.97 kB / 0.5525 GB, free: 9.535 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.0004987/0.4462, allocations: 178.2 kB / 0.5527 GB, free: 9.367 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.359e-05/0.4463, allocations: 29.7 kB / 0.5527 GB, free: 9.332 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4463, allocations: 0 / 0.5527 GB, free: 9.332 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.618e-05/0.4464, allocations: 25.7 kB / 0.5528 GB, free: 9.301 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.4465, allocations: 12.03 kB / 0.5528 GB, free: 9.289 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001892/0.4467, allocations: 73.77 kB / 0.5528 GB, free: 9.188 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.447, allocations: 0.6841 MB / 0.5535 GB, free: 8.477 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.447, allocations: 7.875 kB / 0.5535 GB, free: 8.469 MB / 394.7 MB Notification: Performance of Templates: time 0.003244/0.4503, allocations: 0.8478 MB / 0.5543 GB, free: 7.621 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches