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.001842/0.001842, allocations: 180.6 kB / 16.41 MB, free: 5.68 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.784/1.784, allocations: 205.4 MB / 222.5 MB, free: 9.023 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.0008071/0.000807, allocations: 78.38 kB / 270.9 MB, free: 8.348 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.3462/0.3462, allocations: 43.55 MB / 362.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004059/0.000406, allocations: 12 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1214, allocations: 58.84 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005546/0.1221, allocations: 212.5 kB / 490.4 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004656/0.1225, allocations: 201.1 kB / 490.6 MB, free: 10.6 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.1226, allocations: 0 / 490.6 MB, free: 10.6 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.1226, allocations: 0 / 490.6 MB, free: 10.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.171e-06/0.1226, allocations: 0 / 490.6 MB, free: 10.6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.1228, allocations: 39.89 kB / 490.7 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.503e-05/0.1229, allocations: 7.938 kB / 490.7 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.998e-05/0.1229, allocations: 0 / 490.7 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.654e-05/0.123, allocations: 7.922 kB / 490.7 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.385e-05/0.123, allocations: 0 / 490.7 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-06/0.123, allocations: 0 / 490.7 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.1231, allocations: 51.95 kB / 490.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.781e-06/0.1231, allocations: 0 / 490.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.1232, allocations: 25.7 kB / 490.8 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.998e-05/0.1233, allocations: 27.95 kB / 490.8 MB, free: 10.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1233, allocations: 0 / 490.8 MB, free: 10.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1233, allocations: 0 / 490.8 MB, free: 10.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1233, allocations: 3.938 kB / 490.8 MB, free: 10.43 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.0002875/0.1236, allocations: 349.1 kB / 491.1 MB, free: 10.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1236, allocations: 8.031 kB / 491.1 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.551e-05/0.1237, allocations: 0 / 491.1 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.848e-05/0.1238, allocations: 167 kB / 491.3 MB, free: 9.828 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.1238, allocations: 4 kB / 491.3 MB, free: 9.824 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.1238, allocations: 0 / 491.3 MB, free: 9.824 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.574e-05/0.1239, allocations: 33.64 kB / 491.3 MB, free: 9.785 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.1239, allocations: 0 / 491.3 MB, free: 9.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-06/0.1239, allocations: 4 kB / 491.3 MB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1239, allocations: 0 / 491.3 MB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.845e-05/0.1239, allocations: 7.922 kB / 491.3 MB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.1241, allocations: 145.6 kB / 491.5 MB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.491e-05/0.1241, allocations: 22.61 kB / 491.5 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.053e-05/0.1241, allocations: 4.859 kB / 491.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.1242, allocations: 0 / 491.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.1242, allocations: 68.27 kB / 491.6 MB, free: 9.461 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1242, allocations: 0 / 491.6 MB, free: 9.461 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000155/0.1244, allocations: 63.3 kB / 491.6 MB, free: 9.387 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.1244, allocations: 81.23 kB / 491.7 MB, free: 9.289 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.723e-05/0.1245, allocations: 93.86 kB / 491.8 MB, free: 9.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.1245, allocations: 25.7 kB / 491.8 MB, free: 9.156 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.424e-05/0.1245, allocations: 80.14 kB / 491.9 MB, free: 9.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.1246, allocations: 4 kB / 491.9 MB, free: 9.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-06/0.1246, allocations: 0 / 491.9 MB, free: 9.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1247, allocations: 314.8 kB / 492.2 MB, free: 8.754 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.1247, allocations: 7.984 kB / 492.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.248e-06/0.1247, allocations: 0 / 492.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.797e-05/0.1247, allocations: 33.7 kB / 492.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1247, allocations: 0 / 492.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.448e-05/0.1248, allocations: 63.39 kB / 492.3 MB, free: 8.633 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.1248, allocations: 29.7 kB / 492.4 MB, free: 8.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1249, allocations: 4 kB / 492.4 MB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1249, allocations: 3.984 kB / 492.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1249, allocations: 0 / 492.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1249, allocations: 0 / 492.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.624e-05/0.1249, allocations: 0 / 492.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.125, allocations: 0 / 492.4 MB, free: 8.59 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.567e-05/0.125, allocations: 151.5 kB / 492.5 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-06/0.1251, allocations: 0 / 492.5 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.317e-06/0.1251, allocations: 3.125 kB / 492.5 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1251, allocations: 0 / 492.5 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1251, allocations: 7.938 kB / 492.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.1251, allocations: 4 kB / 492.5 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.269e-05/0.1252, allocations: 149.6 kB / 492.7 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1252, allocations: 0 / 492.7 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.783e-06/0.1252, allocations: 0 / 492.7 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1252, allocations: 7.938 kB / 492.7 MB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-06/0.1252, allocations: 0 / 492.7 MB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1252, allocations: 4 kB / 492.7 MB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1252, allocations: 3.938 kB / 492.7 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.134e-05/0.1253, allocations: 86.83 kB / 492.8 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-05/0.1254, allocations: 85.06 kB / 492.9 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.1254, allocations: 0 / 492.9 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-06/0.1254, allocations: 32 / 492.9 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.44e-05/0.1254, allocations: 4 kB / 492.9 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1254, allocations: 0 / 492.9 MB, free: 7.984 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.765e-05/0.1255, allocations: 83.27 kB / 492.9 MB, free: 7.902 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1255, allocations: 4 kB / 492.9 MB, free: 7.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.1257, allocations: 12 kB / 493 MB, free: 7.887 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.0003669/0.1261, allocations: 209.4 kB / 493.2 MB, free: 7.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.382e-05/0.1262, allocations: 59.34 kB / 493.2 MB, free: 7.629 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1262, allocations: 0 / 493.2 MB, free: 7.629 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.826e-05/0.1262, allocations: 59.41 kB / 493.3 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.1264, allocations: 4.125 kB / 493.3 MB, free: 7.555 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001676/0.1265, allocations: 104.5 kB / 493.4 MB, free: 7.418 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1268, allocations: 0.6731 MB / 494.1 MB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.929e-06/0.1268, allocations: 11.44 kB / 494.1 MB, free: 6.711 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1268, allocations: 0 / 494.1 MB, free: 6.711 MB / 378.7 MB Notification: Performance of Templates: time 0.001998/0.1288, allocations: 0.7453 MB / 494.8 MB, free: 5.965 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