Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 221.3 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000787/0.0007869, allocations: 88.03 kB / 287 MB, free: 264 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1793/0.1793, allocations: 44.16 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.646e-05/2.673e-05, allocations: 224 / 451.8 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1231, allocations: 61.92 MB / 0.5017 GB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3352/0.4583, allocations: 85.6 MB / 0.5853 GB, free: 3.754 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.4585, allocations: 63.97 kB / 0.5853 GB, free: 3.691 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003425/0.4619, allocations: 1.425 MB / 0.5867 GB, free: 2.277 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.649e-06/0.462, allocations: 0 / 0.5867 GB, free: 2.277 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.462, allocations: 7.938 kB / 0.5867 GB, free: 2.27 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.0002736/0.4623, allocations: 348.2 kB / 0.5871 GB, free: 1.879 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.4623, allocations: 8.031 kB / 0.5871 GB, free: 1.871 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.4624, allocations: 0.875 kB / 0.5871 GB, free: 1.871 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.4625, allocations: 159.1 kB / 0.5872 GB, free: 1.676 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.4625, allocations: 3.984 kB / 0.5872 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.4625, allocations: 4 kB / 0.5872 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.843e-05/0.4626, allocations: 29.66 kB / 0.5873 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.4626, allocations: 4 kB / 0.5873 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.4626, allocations: 4 kB / 0.5873 GB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4626, allocations: 0 / 0.5873 GB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.889e-05/0.4627, allocations: 3.938 kB / 0.5873 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.4628, allocations: 145.7 kB / 0.5874 GB, free: 1.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.12e-05/0.4628, allocations: 18.61 kB / 0.5874 GB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.398e-05/0.4628, allocations: 12.84 kB / 0.5875 GB, free: 1.387 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-06/0.4629, allocations: 0 / 0.5875 GB, free: 1.387 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/0.4629, allocations: 68.28 kB / 0.5875 GB, free: 1.305 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4629, allocations: 0 / 0.5875 GB, free: 1.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001359/0.4631, allocations: 63.33 kB / 0.5876 GB, free: 1.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.4631, allocations: 77.11 kB / 0.5877 GB, free: 1.137 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.23e-05/0.4632, allocations: 96.94 kB / 0.5877 GB, free: 1.035 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.4632, allocations: 25.7 kB / 0.5878 GB, free: 1.004 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.149e-05/0.4632, allocations: 80.14 kB / 0.5878 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.4632, allocations: 4.031 kB / 0.5878 GB, free: 0.918 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.4632, allocations: 2.953 kB / 0.5879 GB, free: 0.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.4633, allocations: 314.8 kB / 0.5882 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.304e-06/0.4634, allocations: 0 / 0.5882 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.319e-06/0.4634, allocations: 4 kB / 0.5882 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.022e-05/0.4634, allocations: 25.7 kB / 0.5882 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4634, allocations: 0 / 0.5882 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.99e-05/0.4635, allocations: 67.33 kB / 0.5882 GB, free: 500 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.4635, allocations: 39.03 kB / 0.5883 GB, free: 456 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4635, allocations: 4 kB / 0.5883 GB, free: 452 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.4635, allocations: 7.953 kB / 0.5883 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.4635, allocations: 0 / 0.5883 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.371e-06/0.4636, allocations: 0 / 0.5883 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.089e-05/0.4636, allocations: 0 / 0.5883 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.4636, allocations: 0 / 0.5883 GB, free: 444 kB / 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.249e-05/0.4637, allocations: 130.7 kB / 0.5884 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-06/0.4637, allocations: 0 / 0.5884 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.239e-05/0.4637, allocations: 7.078 kB / 0.5884 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.4637, allocations: 4 kB / 0.5884 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4637, allocations: 3.953 kB / 0.5884 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.4637, allocations: 0 / 0.5884 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.304e-05/0.4638, allocations: 149.7 kB / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.4638, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.4638, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.4638, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.4638, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.4638, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4638, allocations: 0 / 0.5886 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.678e-05/0.4639, allocations: 106.5 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.464, allocations: 77.11 kB / 0.5887 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.464, allocations: 4 kB / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-06/0.464, allocations: 0 / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.208e-05/0.464, allocations: 0 / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.464, allocations: 0 / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.598e-05/0.4641, allocations: 79.23 kB / 0.5888 GB, free: 15.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4641, allocations: 0 / 0.5888 GB, free: 15.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.4643, allocations: 32.02 kB / 0.5889 GB, free: 15.75 MB / 410.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.0003769/0.4647, allocations: 204.3 kB / 0.5891 GB, free: 15.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.982e-05/0.4647, allocations: 59.41 kB / 0.5891 GB, free: 15.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4648, allocations: 0 / 0.5891 GB, free: 15.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.817e-05/0.4648, allocations: 59.34 kB / 0.5892 GB, free: 15.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.705e-05/0.4649, allocations: 4 kB / 0.5892 GB, free: 15.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000138/0.465, allocations: 47.8 kB / 0.5892 GB, free: 15.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.4653, allocations: 0.677 MB / 0.5899 GB, free: 14.67 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.479e-06/0.4653, allocations: 0 / 0.5899 GB, free: 14.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.318e-06/0.4653, allocations: 7.438 kB / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4653, allocations: 0 / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of Templates: time 0.002376/0.4677, allocations: 0.5663 MB / 0.5904 GB, free: 14.09 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches