Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008856/0.0008859, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 176.9 kB / 16.91 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.4 MB / 223.1 MB, free: 5.23 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3879/0.3879, allocations: 43.57 MB / 315 MB, free: 8.922 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 14.66 kB / 384.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1582, allocations: 58.86 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0008084/0.1591, allocations: 220.4 kB / 443.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1605, allocations: 0.7573 MB / 444.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.965e-05/0.1605, allocations: 0 / 444.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.61e-05/0.1605, allocations: 4 kB / 444.4 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.1607, allocations: 8 kB / 444.4 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000683/0.1614, allocations: 43.83 kB / 444.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.662e-05/0.1615, allocations: 7.984 kB / 444.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.922e-05/0.1615, allocations: 0 / 444.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.567e-05/0.1616, allocations: 3.938 kB / 444.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.355e-05/0.1617, allocations: 7.938 kB / 444.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.1617, allocations: 0 / 444.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.1618, allocations: 55.95 kB / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.457e-06/0.1618, allocations: 0 / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.955e-05/0.1619, allocations: 33.7 kB / 444.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.162, allocations: 39.94 kB / 444.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.162, allocations: 0 / 444.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.162, allocations: 0 / 444.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1621, allocations: 0 / 444.6 MB, free: 11.51 MB / 382.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.000438/0.1625, allocations: 361.2 kB / 445 MB, free: 11.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.1626, allocations: 8.031 kB / 445 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.1626, allocations: 4.938 kB / 445 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.1628, allocations: 164.4 kB / 445.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.1628, allocations: 384 / 445.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.1628, allocations: 4.375 kB / 445.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.163, allocations: 42.19 kB / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.163, allocations: 4.172 kB / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.163, allocations: 7.938 kB / 445.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.163, allocations: 0 / 445.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.111e-05/0.163, allocations: 0 / 445.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001859/0.1632, allocations: 145.7 kB / 445.3 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.974e-05/0.1633, allocations: 18.58 kB / 445.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.371e-05/0.1633, allocations: 12.94 kB / 445.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-06/0.1633, allocations: 0 / 445.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.117e-05/0.1634, allocations: 64.2 kB / 445.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.713e-06/0.1634, allocations: 0 / 445.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002133/0.1637, allocations: 63.34 kB / 445.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.1637, allocations: 77.11 kB / 445.6 MB, free: 10.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.922e-05/0.1638, allocations: 102 kB / 445.7 MB, free: 10.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1639, allocations: 29.7 kB / 445.7 MB, free: 10.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.1639, allocations: 80.14 kB / 445.8 MB, free: 10.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.1639, allocations: 288 / 445.8 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/0.164, allocations: 9.719 kB / 445.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1641, allocations: 310.8 kB / 446.1 MB, free: 9.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-06/0.1642, allocations: 4 kB / 446.1 MB, free: 9.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.188e-06/0.1642, allocations: 3.938 kB / 446.1 MB, free: 9.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.585e-05/0.1642, allocations: 68.39 kB / 446.2 MB, free: 9.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1643, allocations: 0 / 446.2 MB, free: 9.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.771e-05/0.1643, allocations: 67.39 kB / 446.2 MB, free: 9.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.025e-05/0.1644, allocations: 29.7 kB / 446.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.1644, allocations: 3.938 kB / 446.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.1644, allocations: 0 / 446.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.935e-06/0.1644, allocations: 4 kB / 446.3 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1645, allocations: 3.938 kB / 446.3 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.803e-05/0.1645, allocations: 0 / 446.3 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.1645, allocations: 0 / 446.3 MB, free: 9.578 MB / 382.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 9.358e-05/0.1646, allocations: 147.5 kB / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.1646, allocations: 0 / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.591e-05/0.1646, allocations: 7.062 kB / 446.4 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1647, allocations: 0 / 446.4 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1647, allocations: 3.938 kB / 446.4 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1647, allocations: 0 / 446.4 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.1648, allocations: 153.7 kB / 446.6 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1648, allocations: 0 / 446.6 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-07/0.1648, allocations: 0 / 446.6 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1648, allocations: 4 kB / 446.6 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.1649, allocations: 3.938 kB / 446.6 MB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1649, allocations: 0 / 446.6 MB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1649, allocations: 4 kB / 446.6 MB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.165, allocations: 86.83 kB / 446.7 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.423e-05/0.1651, allocations: 81.11 kB / 446.7 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.1651, allocations: 3.938 kB / 446.7 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.905e-06/0.1651, allocations: 32 / 446.7 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.1651, allocations: 4 kB / 446.8 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1651, allocations: 0 / 446.8 MB, free: 8.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.86e-05/0.1651, allocations: 79.28 kB / 446.8 MB, free: 8.902 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1651, allocations: 0 / 446.8 MB, free: 8.902 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.1654, allocations: 15.98 kB / 446.8 MB, free: 8.887 MB / 382.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.0004041/0.1658, allocations: 201.4 kB / 447 MB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.1659, allocations: 55.41 kB / 447.1 MB, free: 8.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1659, allocations: 0 / 447.1 MB, free: 8.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.794e-05/0.166, allocations: 59.39 kB / 447.2 MB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.1661, allocations: 7.875 kB / 447.2 MB, free: 8.551 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002122/0.1664, allocations: 86.8 kB / 447.2 MB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.1667, allocations: 0.677 MB / 447.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.812e-06/0.1667, allocations: 0 / 447.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.018e-05/0.1668, allocations: 7.438 kB / 447.9 MB, free: 7.73 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1668, allocations: 0 / 447.9 MB, free: 7.73 MB / 382.1 MB Notification: Performance of Templates: time 0.002888/0.1697, allocations: 0.6332 MB / 448.6 MB, free: 7.098 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches