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.001057/0.001057, allocations: 109.5 kB / 17.32 MB, free: 6.027 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.001144/0.001144, allocations: 193.3 kB / 18.25 MB, free: 5.113 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.405/1.405, allocations: 222.9 MB / 241.9 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2494/0.2494, allocations: 44.17 MB / 336.2 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.08 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1527, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002062/0.1549, allocations: 0.5332 MB / 469.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.1562, allocations: 0.7642 MB / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.374e-05/0.1562, allocations: 0 / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.1563, allocations: 0 / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.1565, allocations: 4 kB / 470 MB, free: 13.42 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.0007483/0.1572, allocations: 56.33 kB / 470.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.546e-05/0.1573, allocations: 7.922 kB / 470.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.178e-05/0.1574, allocations: 4 kB / 470.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.939e-05/0.1574, allocations: 7.938 kB / 470.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.838e-05/0.1575, allocations: 11.98 kB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.1575, allocations: 0 / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002226/0.1578, allocations: 47.97 kB / 470.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.1578, allocations: 0 / 470.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.378e-05/0.1578, allocations: 0 / 470.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.158, allocations: 55.86 kB / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.158, allocations: 3.984 kB / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.158, allocations: 0 / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.158, allocations: 0 / 470.2 MB, free: 13.24 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.0004634/0.1585, allocations: 353.3 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.279e-05/0.1585, allocations: 12.02 kB / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.1586, allocations: 8.922 kB / 470.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.1588, allocations: 160.4 kB / 470.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.1588, allocations: 384 / 470.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.1588, allocations: 384 / 470.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.1589, allocations: 34.2 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1589, allocations: 192 / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.159, allocations: 3.938 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.321e-06/0.159, allocations: 4 kB / 470.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.205e-05/0.159, allocations: 3.938 kB / 470.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001993/0.1592, allocations: 149.7 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.244e-05/0.1593, allocations: 18.58 kB / 470.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.1593, allocations: 8.953 kB / 470.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.1593, allocations: 0 / 470.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.1594, allocations: 60.2 kB / 471 MB, free: 12.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1594, allocations: 4 kB / 471 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.00021/0.1596, allocations: 67.33 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.1597, allocations: 81.11 kB / 471.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.878e-05/0.1598, allocations: 93.86 kB / 471.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.1598, allocations: 25.7 kB / 471.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.141e-05/0.1598, allocations: 84.08 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.1598, allocations: 3.906 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-05/0.1599, allocations: 21.95 kB / 471.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.16, allocations: 314.8 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.125e-05/0.16, allocations: 0 / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.447e-06/0.16, allocations: 7.938 kB / 471.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.048e-05/0.1601, allocations: 56.27 kB / 471.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1601, allocations: 0 / 471.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.548e-05/0.1602, allocations: 63.39 kB / 471.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.1602, allocations: 33.7 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.1603, allocations: 8.031 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1603, allocations: 0 / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.1603, allocations: 0 / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1603, allocations: 0 / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.1603, allocations: 0 / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.1603, allocations: 4 kB / 471.8 MB, free: 11.31 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.1605, allocations: 135.5 kB / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-06/0.1605, allocations: 0 / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.2e-05/0.1605, allocations: 19 kB / 472 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1605, allocations: 7.938 kB / 472 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1605, allocations: 0 / 472 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1605, allocations: 0 / 472 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.1607, allocations: 142 kB / 472.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1607, allocations: 0 / 472.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.274e-06/0.1607, allocations: 4 kB / 472.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1607, allocations: 3.984 kB / 472.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.1607, allocations: 3.938 kB / 472.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1607, allocations: 4 kB / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1607, allocations: 0 / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.922e-05/0.1608, allocations: 90.84 kB / 472.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.848e-05/0.1609, allocations: 81.09 kB / 472.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.1609, allocations: 7.875 kB / 472.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.641e-05/0.1609, allocations: 4 kB / 472.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.476e-05/0.1609, allocations: 0 / 472.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.1609, allocations: 4 kB / 472.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.331e-05/0.161, allocations: 75.28 kB / 472.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.161, allocations: 8.062 kB / 472.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.1612, allocations: 20 kB / 472.4 MB, free: 10.61 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004139/0.1616, allocations: 196.4 kB / 472.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.324e-05/0.1617, allocations: 59.41 kB / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1617, allocations: 0 / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.184e-05/0.1618, allocations: 55.41 kB / 472.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.1619, allocations: 3.984 kB / 472.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001998/0.1621, allocations: 77.06 kB / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.1625, allocations: 0.6768 MB / 473.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.343e-06/0.1625, allocations: 0 / 473.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.47e-05/0.1625, allocations: 7.438 kB / 473.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1625, allocations: 0 / 473.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of Templates: time 0.003314/0.1658, allocations: 0.6589 MB / 474.2 MB, free: 8.828 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches