Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") [: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.001646/0.001646, allocations: 172.2 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.757/1.757, allocations: 205.2 MB / 213.7 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.001259/0.001259, allocations: 86.17 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.2837/0.2837, allocations: 43.49 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.194e-06/7.353e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3266, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.4793, allocations: 83.75 MB / 0.5471 GB, free: 15.37 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.4795, allocations: 63.97 kB / 0.5472 GB, free: 15.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.005653/0.4852, allocations: 1.112 MB / 0.5483 GB, free: 14.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.4853, allocations: 4 kB / 0.5483 GB, free: 14.19 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.0003292/0.4856, allocations: 352 kB / 0.5486 GB, free: 13.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.4857, allocations: 12.02 kB / 0.5486 GB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.177e-05/0.4857, allocations: 4 kB / 0.5486 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.4858, allocations: 159.1 kB / 0.5488 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.4859, allocations: 0 / 0.5488 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.4859, allocations: 0 / 0.5488 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.696e-05/0.4859, allocations: 4 kB / 0.5488 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.876e-05/0.486, allocations: 29.7 kB / 0.5488 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.486, allocations: 0 / 0.5488 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.486, allocations: 3.906 kB / 0.5488 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.4861, allocations: 0 / 0.5488 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.4862, allocations: 134.2 kB / 0.549 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.095e-05/0.4863, allocations: 21.02 kB / 0.549 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.875e-05/0.4863, allocations: 4.859 kB / 0.549 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.4863, allocations: 4 kB / 0.549 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.287e-05/0.4864, allocations: 60.27 kB / 0.549 GB, free: 13.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.4864, allocations: 0 / 0.549 GB, free: 13.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001891/0.4866, allocations: 37.75 kB / 0.5491 GB, free: 13.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.4866, allocations: 77.11 kB / 0.5492 GB, free: 13.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.227e-05/0.4867, allocations: 85 kB / 0.5492 GB, free: 13.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.4867, allocations: 25.7 kB / 0.5493 GB, free: 13 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.4868, allocations: 162.5 kB / 0.5494 GB, free: 12.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.264e-05/0.4868, allocations: 3.906 kB / 0.5494 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.4869, allocations: 0 / 0.5494 GB, free: 12.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.487, allocations: 310.8 kB / 0.5497 GB, free: 12.53 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.686e-06/0.487, allocations: 4 kB / 0.5497 GB, free: 12.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.487, allocations: 0 / 0.5497 GB, free: 12.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.576e-05/0.4871, allocations: 0 / 0.5497 GB, free: 12.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4871, allocations: 4 kB / 0.5497 GB, free: 12.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001028/0.4872, allocations: 36.95 kB / 0.5498 GB, free: 12.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.4872, allocations: 8 kB / 0.5498 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.4873, allocations: 0 / 0.5498 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.4873, allocations: 0 / 0.5498 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.419e-06/0.4873, allocations: 4 kB / 0.5498 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.4873, allocations: 0 / 0.5498 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.4873, allocations: 0 / 0.5498 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-06/0.4874, allocations: 0 / 0.5498 GB, free: 12.47 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.521e-05/0.4874, allocations: 59.3 kB / 0.5498 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.292e-05/0.4875, allocations: 4 kB / 0.5498 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.85e-05/0.4875, allocations: 10.98 kB / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4875, allocations: 3.938 kB / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4875, allocations: 0 / 0.5498 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4875, allocations: 3.938 kB / 0.5498 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.4876, allocations: 130.2 kB / 0.55 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4877, allocations: 0 / 0.55 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.317e-06/0.4877, allocations: 7.984 kB / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4877, allocations: 0 / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.4877, allocations: 0 / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.4877, allocations: 0 / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4877, allocations: 0 / 0.55 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001242/0.4879, allocations: 61.12 kB / 0.55 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.493e-05/0.4879, allocations: 81.02 kB / 0.5501 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.4879, allocations: 0 / 0.5501 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.255e-05/0.488, allocations: 4 kB / 0.5501 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.424e-05/0.488, allocations: 4 kB / 0.5501 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.488, allocations: 0 / 0.5501 GB, free: 12.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.418e-05/0.4881, allocations: 75.31 kB / 0.5502 GB, free: 11.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002567/0.4883, allocations: 23.98 kB / 0.5502 GB, free: 11.92 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.0005098/0.4888, allocations: 207.6 kB / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.931e-05/0.4889, allocations: 29.7 kB / 0.5504 GB, free: 11.69 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.489, allocations: 0 / 0.5504 GB, free: 11.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.124e-05/0.489, allocations: 29.69 kB / 0.5505 GB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.4891, allocations: 4 kB / 0.5505 GB, free: 11.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001641/0.4893, allocations: 69.78 kB / 0.5505 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.4896, allocations: 0.6842 MB / 0.5512 GB, free: 10.84 MB / 394.7 MB Notification: Performance of SimCode: time 3.026e-06/0.4897, allocations: 4 kB / 0.5512 GB, free: 10.84 MB / 394.7 MB Notification: Performance of Templates: time 0.002973/0.4926, allocations: 0.7856 MB / 0.552 GB, free: 10.05 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches