Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009902/0.0009899, allocations: 94.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001247, allocations: 183.3 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.2 MB / 241.8 MB, free: 380 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2116/0.2116, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003388, allocations: 8 kB / 409.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1352, allocations: 61.92 MB / 471.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005422/0.1358, allocations: 210.9 kB / 471.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1368, allocations: 0.7403 MB / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.957e-05/0.1368, allocations: 0 / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.325e-05/0.1369, allocations: 0 / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.137, allocations: 8 kB / 472.4 MB, free: 12.82 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0001884/0.1372, allocations: 39.83 kB / 472.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.853e-05/0.1372, allocations: 4 kB / 472.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.685e-05/0.1373, allocations: 0 / 472.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.639e-05/0.1373, allocations: 3.984 kB / 472.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.007e-05/0.1374, allocations: 7.938 kB / 472.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-06/0.1374, allocations: 0 / 472.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.05e-05/0.1375, allocations: 39.97 kB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-06/0.1375, allocations: 3.984 kB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.1375, allocations: 25.7 kB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.587e-05/0.1376, allocations: 27.95 kB / 472.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.1376, allocations: 4 kB / 472.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1376, allocations: 0 / 472.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1376, allocations: 0 / 472.6 MB, free: 12.66 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.0003055/0.1379, allocations: 357.1 kB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.138, allocations: 8.031 kB / 472.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.362e-05/0.138, allocations: 0 / 472.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.991e-05/0.1381, allocations: 163.1 kB / 473.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1381, allocations: 0 / 473.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-06/0.1381, allocations: 3.938 kB / 473.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.026e-05/0.1382, allocations: 45.58 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.1382, allocations: 0 / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1383, allocations: 4 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.1383, allocations: 0 / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.337e-05/0.1383, allocations: 0 / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001229/0.1384, allocations: 145.7 kB / 473.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.1385, allocations: 14.58 kB / 473.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.783e-06/0.1385, allocations: 0 / 473.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.1385, allocations: 72.34 kB / 473.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.1385, allocations: 0 / 473.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1387, allocations: 67.3 kB / 473.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.1388, allocations: 77.11 kB / 473.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.514e-05/0.1388, allocations: 93.84 kB / 473.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.1389, allocations: 25.7 kB / 473.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.233e-05/0.1389, allocations: 84.39 kB / 473.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.1389, allocations: 8 kB / 473.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.974e-06/0.1389, allocations: 0 / 473.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.139, allocations: 310.8 kB / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.1391, allocations: 0 / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.368e-06/0.1391, allocations: 0 / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.739e-05/0.1391, allocations: 29.7 kB / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1391, allocations: 0 / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.924e-05/0.1392, allocations: 71.23 kB / 474.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.1392, allocations: 33.8 kB / 474.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.1392, allocations: 0 / 474.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1392, allocations: 3.953 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1393, allocations: 4 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/0.1393, allocations: 0 / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.295e-05/0.1393, allocations: 0 / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.1393, allocations: 4 kB / 474.1 MB, free: 10.82 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 8.778e-05/0.1394, allocations: 140 kB / 474.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.1394, allocations: 0 / 474.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.255e-05/0.1394, allocations: 15.06 kB / 474.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1394, allocations: 3.953 kB / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1394, allocations: 0 / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1394, allocations: 0 / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.686e-05/0.1395, allocations: 146 kB / 474.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1395, allocations: 0 / 474.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1395, allocations: 0 / 474.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1396, allocations: 3.984 kB / 474.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1396, allocations: 4 kB / 474.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1396, allocations: 3.938 kB / 474.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1396, allocations: 7.953 kB / 474.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.316e-05/0.1397, allocations: 90.78 kB / 474.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-05/0.1397, allocations: 85.09 kB / 474.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.1397, allocations: 0 / 474.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.1397, allocations: 0 / 474.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.1398, allocations: 4 kB / 474.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.1398, allocations: 7.953 kB / 474.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.751e-05/0.1398, allocations: 79.31 kB / 474.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1398, allocations: 0 / 474.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001949/0.14, allocations: 12 kB / 474.7 MB, free: 10.12 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.0003267/0.1403, allocations: 189 kB / 474.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.584e-05/0.1404, allocations: 59.41 kB / 475 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1404, allocations: 3.938 kB / 475 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.921e-05/0.1405, allocations: 55.41 kB / 475 MB, free: 9.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.438e-05/0.1406, allocations: 0 / 475 MB, free: 9.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001562/0.1407, allocations: 87.06 kB / 475.1 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.141, allocations: 0.677 MB / 475.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.979e-06/0.141, allocations: 0 / 475.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.464e-06/0.141, allocations: 7.438 kB / 475.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.141, allocations: 0 / 475.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of Templates: time 0.002625/0.1436, allocations: 0.6048 MB / 476.4 MB, free: 8.387 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches