Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008639/0.0008639, allocations: 174 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.28/1.28, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006691/0.0006691, allocations: 86.42 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3276/0.3276, allocations: 43.56 MB / 363.1 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003591, allocations: 12 kB / 432 MB, free: 5.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1232, allocations: 58.85 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005356/0.1238, allocations: 220.4 kB / 491 MB, free: 10.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004851/0.1243, allocations: 197.1 kB / 491.2 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.1243, allocations: 0 / 491.2 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.1243, allocations: 0 / 491.2 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.334e-06/0.1243, allocations: 0 / 491.2 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.1246, allocations: 39.91 kB / 491.3 MB, free: 10.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.978e-05/0.1247, allocations: 0 / 491.3 MB, free: 10.21 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.458e-05/0.1247, allocations: 4 kB / 491.3 MB, free: 10.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.892e-05/0.1247, allocations: 7.922 kB / 491.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.6e-05/0.1248, allocations: 0 / 491.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-06/0.1248, allocations: 0 / 491.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.1249, allocations: 47.95 kB / 491.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.1249, allocations: 4 kB / 491.3 MB, free: 10.15 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.4e-05/0.125, allocations: 25.7 kB / 491.3 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.71e-05/0.1251, allocations: 23.95 kB / 491.4 MB, free: 10.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1251, allocations: 3.938 kB / 491.4 MB, free: 10.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1251, allocations: 4 kB / 491.4 MB, free: 10.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1251, allocations: 0 / 491.4 MB, free: 10.09 MB / 378.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.0002889/0.1254, allocations: 353.3 kB / 491.7 MB, free: 9.688 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1254, allocations: 8.031 kB / 491.7 MB, free: 9.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.1255, allocations: 4.922 kB / 491.7 MB, free: 9.676 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.219e-05/0.1256, allocations: 160.4 kB / 491.9 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.1256, allocations: 4.375 kB / 491.9 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.1256, allocations: 384 / 491.9 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.449e-05/0.1257, allocations: 38.19 kB / 491.9 MB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1257, allocations: 192 / 491.9 MB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1257, allocations: 7.938 kB / 491.9 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1257, allocations: 0 / 491.9 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.548e-05/0.1257, allocations: 0 / 491.9 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.1259, allocations: 145.7 kB / 492.1 MB, free: 9.234 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.667e-05/0.1259, allocations: 18.61 kB / 492.1 MB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.267e-05/0.126, allocations: 4.859 kB / 492.1 MB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.126, allocations: 4 kB / 492.1 MB, free: 9.195 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/0.126, allocations: 68.25 kB / 492.2 MB, free: 9.113 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.126, allocations: 0 / 492.2 MB, free: 9.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.1262, allocations: 67.25 kB / 492.2 MB, free: 9.035 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.1263, allocations: 81.11 kB / 492.3 MB, free: 8.938 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.418e-05/0.1263, allocations: 89.86 kB / 492.4 MB, free: 8.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.1263, allocations: 25.7 kB / 492.4 MB, free: 8.809 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.706e-05/0.1264, allocations: 88.19 kB / 492.5 MB, free: 8.719 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/0.1264, allocations: 4 kB / 492.5 MB, free: 8.715 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.903e-06/0.1264, allocations: 0 / 492.5 MB, free: 8.715 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1265, allocations: 310.8 kB / 492.8 MB, free: 8.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.1265, allocations: 4 kB / 492.8 MB, free: 8.398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-06/0.1265, allocations: 7.875 kB / 492.8 MB, free: 8.391 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.538e-05/0.1266, allocations: 64.27 kB / 492.9 MB, free: 8.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1266, allocations: 0 / 492.9 MB, free: 8.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.325e-05/0.1267, allocations: 59.48 kB / 493 MB, free: 8.242 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.1267, allocations: 37.7 kB / 493 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1267, allocations: 0 / 493 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1267, allocations: 3.938 kB / 493 MB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.1267, allocations: 0 / 493 MB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1267, allocations: 0 / 493 MB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.1268, allocations: 0 / 493 MB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.1268, allocations: 4 kB / 493 MB, free: 8.191 MB / 378.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 () * Number of clocked 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 8.309e-05/0.1269, allocations: 135.5 kB / 493.1 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-06/0.1269, allocations: 0 / 493.1 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.157e-05/0.1269, allocations: 19.05 kB / 493.2 MB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1269, allocations: 0 / 493.2 MB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1269, allocations: 3.938 kB / 493.2 MB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1269, allocations: 0 / 493.2 MB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.202e-05/0.127, allocations: 141.7 kB / 493.3 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.127, allocations: 0 / 493.3 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.127, allocations: 0 / 493.3 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.127, allocations: 4 kB / 493.3 MB, free: 7.828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.127, allocations: 11.92 kB / 493.3 MB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1271, allocations: 3.984 kB / 493.3 MB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1271, allocations: 4 kB / 493.3 MB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.574e-05/0.1271, allocations: 86.84 kB / 493.4 MB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.898e-05/0.1272, allocations: 77.11 kB / 493.5 MB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.1272, allocations: 7.922 kB / 493.5 MB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.725e-06/0.1272, allocations: 0 / 493.5 MB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.1272, allocations: 4 kB / 493.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1272, allocations: 0 / 493.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.778e-05/0.1273, allocations: 80.48 kB / 493.6 MB, free: 7.516 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1273, allocations: 0 / 493.6 MB, free: 7.516 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001959/0.1275, allocations: 20 kB / 493.6 MB, free: 7.496 MB / 378.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) * Number of clocked states: 0 () * 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.000373/0.1279, allocations: 212.7 kB / 493.8 MB, free: 7.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.733e-05/0.128, allocations: 59.41 kB / 493.9 MB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.128, allocations: 0 / 493.9 MB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.054e-05/0.128, allocations: 55.39 kB / 493.9 MB, free: 7.168 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1281, allocations: 4 kB / 493.9 MB, free: 7.164 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001743/0.1283, allocations: 100.5 kB / 494 MB, free: 7.031 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.1286, allocations: 0.6772 MB / 494.7 MB, free: 6.328 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.408e-06/0.1286, allocations: 7.438 kB / 494.7 MB, free: 6.324 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1286, allocations: 0 / 494.7 MB, free: 6.324 MB / 378.7 MB Notification: Performance of Templates: time 0.002257/0.1308, allocations: 0.7492 MB / 495.4 MB, free: 5.574 MB / 378.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