Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000976/0.0009761, allocations: 94.19 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2468/0.2468, allocations: 46.18 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002634, allocations: 8 kB / 418.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1271, allocations: 63.56 MB / 482.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006516/0.1278, allocations: 210.9 kB / 482.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.129, allocations: 0.7447 MB / 483.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.067e-05/0.129, allocations: 0 / 483.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.129, allocations: 3.938 kB / 483.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.1292, allocations: 4 kB / 483.3 MB, free: 3.609 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.1295, allocations: 35.89 kB / 483.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.845e-05/0.1295, allocations: 8 kB / 483.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.1296, allocations: 0 / 483.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.027e-05/0.1296, allocations: 3.984 kB / 483.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.026e-05/0.1297, allocations: 4 kB / 483.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-06/0.1297, allocations: 0 / 483.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.1298, allocations: 51.95 kB / 483.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.295e-06/0.1299, allocations: 7.938 kB / 483.5 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.427e-05/0.1299, allocations: 25.7 kB / 483.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.762e-05/0.13, allocations: 35.95 kB / 483.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.13, allocations: 0 / 483.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.13, allocations: 0 / 483.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.13, allocations: 0 / 483.5 MB, free: 3.434 MB / 350.1 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.0002904/0.1303, allocations: 345.1 kB / 483.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.1303, allocations: 12.03 kB / 483.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.495e-05/0.1304, allocations: 0 / 483.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.1305, allocations: 167 kB / 484 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1305, allocations: 7.938 kB / 484 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.948e-06/0.1305, allocations: 3.984 kB / 484 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.731e-05/0.1306, allocations: 33.7 kB / 484.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.1306, allocations: 0 / 484.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.1306, allocations: 0 / 484.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1306, allocations: 0 / 484.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.722e-05/0.1307, allocations: 7.938 kB / 484.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.1308, allocations: 153.6 kB / 484.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.582e-05/0.1308, allocations: 18.58 kB / 484.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.1309, allocations: 8.953 kB / 484.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-06/0.1309, allocations: 0 / 484.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.181e-05/0.1309, allocations: 60.27 kB / 484.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1309, allocations: 0 / 484.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.1311, allocations: 67.33 kB / 484.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.1312, allocations: 81.11 kB / 484.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.125e-05/0.1312, allocations: 97.98 kB / 484.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.1313, allocations: 25.7 kB / 484.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.078e-05/0.1313, allocations: 80.14 kB / 484.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.1313, allocations: 0 / 484.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.563e-06/0.1313, allocations: 0 / 484.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1314, allocations: 314.8 kB / 485 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.864e-06/0.1315, allocations: 0 / 485 MB, free: 1.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.458e-06/0.1315, allocations: 0 / 485 MB, free: 1.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.577e-05/0.1315, allocations: 37.88 kB / 485 MB, free: 1.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1315, allocations: 0 / 485 MB, free: 1.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.914e-05/0.1316, allocations: 71.3 kB / 485.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.1316, allocations: 29.7 kB / 485.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1316, allocations: 3.984 kB / 485.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.1317, allocations: 0 / 485.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-07/0.1317, allocations: 0 / 485.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1317, allocations: 3.984 kB / 485.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.1317, allocations: 7.906 kB / 485.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.1317, allocations: 0 / 485.1 MB, free: 1.57 MB / 350.1 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 9.678e-05/0.1318, allocations: 135.6 kB / 485.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.1318, allocations: 7.953 kB / 485.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.835e-06/0.1318, allocations: 3.125 kB / 485.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1318, allocations: 3.938 kB / 485.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.1318, allocations: 0 / 485.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1319, allocations: 0 / 485.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.132, allocations: 150 kB / 485.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.132, allocations: 4 kB / 485.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.132, allocations: 0 / 485.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.132, allocations: 7.953 kB / 485.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.132, allocations: 0 / 485.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.132, allocations: 0 / 485.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.132, allocations: 0 / 485.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.1321, allocations: 98.77 kB / 485.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.732e-05/0.1322, allocations: 77.11 kB / 485.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.1322, allocations: 7.953 kB / 485.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.1322, allocations: 7.969 kB / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.1322, allocations: 0 / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.1322, allocations: 0 / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.751e-05/0.1323, allocations: 79.27 kB / 485.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1323, allocations: 0 / 485.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002061/0.1325, allocations: 16 kB / 485.7 MB, free: 0.8789 MB / 350.1 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.0004292/0.1329, allocations: 178.6 kB / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.133, allocations: 67.39 kB / 485.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1331, allocations: 0 / 485.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.254e-05/0.1331, allocations: 59.47 kB / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.1332, allocations: 6.125 kB / 486 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001867/0.1334, allocations: 78.7 kB / 486.1 MB, free: 468 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.1338, allocations: 0.6731 MB / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.622e-06/0.1338, allocations: 0 / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.068e-05/0.1338, allocations: 7.438 kB / 486.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1338, allocations: 0 / 486.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of Templates: time 0.002949/0.1367, allocations: 0.6166 MB / 487.4 MB, free: 15.14 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches