Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.279/1.279, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0006883/0.0006883, allocations: 101.2 kB / 271.2 MB, free: 8.234 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.3517/0.3517, allocations: 43.56 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 16 kB / 432 MB, free: 5.617 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1232, allocations: 58.86 MB / 490.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006758/0.124, allocations: 220.5 kB / 491 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.1251, allocations: 0.7516 MB / 491.8 MB, free: 9.707 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.045e-05/0.1251, allocations: 0 / 491.8 MB, free: 9.707 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.1251, allocations: 0 / 491.8 MB, free: 9.707 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.1253, allocations: 4 kB / 491.8 MB, free: 9.703 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.1258, allocations: 39.89 kB / 491.8 MB, free: 9.664 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.36e-05/0.1258, allocations: 11.98 kB / 491.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.16e-05/0.1259, allocations: 0 / 491.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.915e-05/0.1259, allocations: 0 / 491.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.978e-05/0.126, allocations: 11.94 kB / 491.8 MB, free: 9.641 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.283e-06/0.126, allocations: 0 / 491.8 MB, free: 9.641 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.1262, allocations: 43.95 kB / 491.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.415e-06/0.1262, allocations: 0 / 491.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.376e-05/0.1262, allocations: 29.7 kB / 491.9 MB, free: 9.562 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.313e-05/0.1263, allocations: 35.94 kB / 492 MB, free: 9.527 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.1263, allocations: 4 kB / 492 MB, free: 9.523 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1263, allocations: 0 / 492 MB, free: 9.523 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1263, allocations: 7.938 kB / 492 MB, free: 9.516 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.0003257/0.1267, allocations: 345.2 kB / 492.3 MB, free: 9.121 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1267, allocations: 12.03 kB / 492.3 MB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.432e-05/0.1268, allocations: 4.922 kB / 492.3 MB, free: 9.105 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.1269, allocations: 164.3 kB / 492.5 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.1269, allocations: 384 / 492.5 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.1269, allocations: 4.375 kB / 492.5 MB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.376e-05/0.127, allocations: 26.27 kB / 492.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.127, allocations: 4.188 kB / 492.5 MB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.1271, allocations: 3.938 kB / 492.5 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1271, allocations: 0 / 492.5 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.541e-05/0.1271, allocations: 4 kB / 492.5 MB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.1272, allocations: 149.7 kB / 492.7 MB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.066e-05/0.1273, allocations: 26.48 kB / 492.7 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.648e-05/0.1273, allocations: 6.031 kB / 492.7 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-06/0.1273, allocations: 0 / 492.7 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.1274, allocations: 60.27 kB / 492.8 MB, free: 8.547 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.1274, allocations: 0 / 492.8 MB, free: 8.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001728/0.1275, allocations: 75.39 kB / 492.8 MB, free: 8.461 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.1276, allocations: 77.11 kB / 492.9 MB, free: 8.367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.821e-05/0.1277, allocations: 93.8 kB / 493 MB, free: 8.266 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1277, allocations: 25.7 kB / 493 MB, free: 8.234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.1277, allocations: 80.39 kB / 493.1 MB, free: 8.152 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.1277, allocations: 8 kB / 493.1 MB, free: 8.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.1277, allocations: 0 / 493.1 MB, free: 8.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1279, allocations: 318.8 kB / 493.4 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.263e-06/0.1279, allocations: 0 / 493.4 MB, free: 7.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.629e-06/0.1279, allocations: 0 / 493.4 MB, free: 7.824 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.97e-05/0.1279, allocations: 60.27 kB / 493.5 MB, free: 7.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1279, allocations: 0 / 493.5 MB, free: 7.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.282e-05/0.128, allocations: 67.34 kB / 493.5 MB, free: 7.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.1281, allocations: 41.78 kB / 493.6 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1281, allocations: 3.938 kB / 493.6 MB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1281, allocations: 0 / 493.6 MB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1281, allocations: 3.938 kB / 493.6 MB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1281, allocations: 0 / 493.6 MB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.538e-05/0.1281, allocations: 0 / 493.6 MB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1281, allocations: 0 / 493.6 MB, free: 7.617 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.74e-05/0.1282, allocations: 139.5 kB / 493.7 MB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-06/0.1282, allocations: 0 / 493.7 MB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.072e-05/0.1283, allocations: 11.06 kB / 493.7 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.1283, allocations: 0 / 493.7 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1283, allocations: 4 kB / 493.7 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1283, allocations: 3.984 kB / 493.8 MB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.986e-05/0.1284, allocations: 141.7 kB / 493.9 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1284, allocations: 0 / 493.9 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1284, allocations: 0 / 493.9 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.1284, allocations: 0 / 493.9 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1284, allocations: 7.938 kB / 493.9 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.1284, allocations: 4 kB / 493.9 MB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1284, allocations: 0 / 493.9 MB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.424e-05/0.1285, allocations: 98.83 kB / 494 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.1286, allocations: 81.33 kB / 494.1 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.1286, allocations: 7.922 kB / 494.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.1286, allocations: 0 / 494.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.1286, allocations: 7.938 kB / 494.1 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-06/0.1286, allocations: 3.984 kB / 494.1 MB, free: 7.008 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.724e-05/0.1287, allocations: 79.31 kB / 494.2 MB, free: 6.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1287, allocations: 0 / 494.2 MB, free: 6.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002026/0.1289, allocations: 20 kB / 494.2 MB, free: 6.91 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.0003665/0.1293, allocations: 185.9 kB / 494.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.473e-05/0.1293, allocations: 59.41 kB / 494.4 MB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1294, allocations: 0 / 494.4 MB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.104e-05/0.1294, allocations: 55.41 kB / 494.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.1295, allocations: 7.594 kB / 494.5 MB, free: 6.594 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001745/0.1297, allocations: 108.4 kB / 494.6 MB, free: 6.453 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.1299, allocations: 0.677 MB / 495.3 MB, free: 5.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.175e-06/0.1299, allocations: 11.56 kB / 495.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1299, allocations: 0 / 495.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of Templates: time 0.002155/0.1321, allocations: 0.8154 MB / 496.1 MB, free: 4.926 MB / 378.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