Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001288, allocations: 94.95 kB / 16.98 MB, free: 5.938 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.001422/0.001422, allocations: 188.8 kB / 17.88 MB, free: 5.594 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.383/1.383, allocations: 223.2 MB / 241.8 MB, free: 372 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.2232/0.2232, allocations: 44.23 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004281/0.0004282, allocations: 8 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1644, allocations: 61.92 MB / 471.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0006875/0.1651, allocations: 205.2 kB / 471.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.1681, allocations: 1.231 MB / 472.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.18e-05/0.1682, allocations: 0 / 472.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.825e-05/0.1682, allocations: 0 / 472.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.233e-06/0.1682, allocations: 0 / 472.9 MB, free: 12.34 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Strings‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001636/0.1699, allocations: 442.9 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.918e-05/0.1699, allocations: 0 / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.044e-05/0.17, allocations: 4 kB / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.038e-05/0.17, allocations: 0 / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.992e-05/0.1701, allocations: 3.984 kB / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.1701, allocations: 0 / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.1712, allocations: 0.6477 MB / 474 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.154e-06/0.1713, allocations: 7.938 kB / 474 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.873e-05/0.1713, allocations: 25.7 kB / 474 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005221/0.1718, allocations: 351.4 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1719, allocations: 0 / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1719, allocations: 0 / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1719, allocations: 0 / 474.3 MB, free: 10.87 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.0005206/0.1724, allocations: 465 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.1725, allocations: 12.03 kB / 474.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.511e-05/0.1725, allocations: 4 kB / 474.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.1726, allocations: 159.1 kB / 475 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.1726, allocations: 7.984 kB / 475 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.1727, allocations: 0 / 475 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.888e-05/0.1728, allocations: 41.58 kB / 475 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1728, allocations: 0 / 475 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.1728, allocations: 0 / 475 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1728, allocations: 0 / 475 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.11e-05/0.1728, allocations: 7.938 kB / 475 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001534/0.173, allocations: 145.7 kB / 475.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.942e-05/0.173, allocations: 26.56 kB / 475.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1731, allocations: 0 / 475.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.466e-05/0.1731, allocations: 60.36 kB / 475.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1731, allocations: 0 / 475.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001908/0.1733, allocations: 71.3 kB / 475.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1734, allocations: 77.11 kB / 475.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.496e-05/0.1734, allocations: 93.84 kB / 475.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1735, allocations: 25.83 kB / 475.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.04e-05/0.1735, allocations: 84.14 kB / 475.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.1735, allocations: 0 / 475.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.1735, allocations: 0 / 475.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1737, allocations: 314.8 kB / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-06/0.1737, allocations: 0 / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.348e-06/0.1737, allocations: 0 / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.891e-05/0.1737, allocations: 29.7 kB / 475.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1738, allocations: 3.938 kB / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.47e-05/0.1738, allocations: 67.45 kB / 476 MB, free: 8.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.1739, allocations: 33.7 kB / 476 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1739, allocations: 3.938 kB / 476 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1739, allocations: 3.953 kB / 476 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.1739, allocations: 0 / 476 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1739, allocations: 0 / 476 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.652e-05/0.1739, allocations: 0 / 476 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.1739, allocations: 4 kB / 476 MB, free: 8.906 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.731e-05/0.174, allocations: 132.1 kB / 476.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.174, allocations: 4.031 kB / 476.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.256e-05/0.1741, allocations: 11.06 kB / 476.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1741, allocations: 7.984 kB / 476.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1741, allocations: 3.953 kB / 476.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1741, allocations: 0 / 476.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.374e-05/0.1742, allocations: 145.7 kB / 476.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1742, allocations: 0 / 476.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-07/0.1742, allocations: 0 / 476.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1742, allocations: 0 / 476.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.1742, allocations: 4 kB / 476.3 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.1742, allocations: 7.984 kB / 476.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1742, allocations: 3.938 kB / 476.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.348e-05/0.1743, allocations: 94.73 kB / 476.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.1744, allocations: 81.09 kB / 476.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.1744, allocations: 0 / 476.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.1744, allocations: 0 / 476.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.1744, allocations: 0 / 476.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.1744, allocations: 8 kB / 476.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.546e-05/0.1745, allocations: 83.27 kB / 476.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1745, allocations: 0 / 476.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.175, allocations: 203.9 kB / 476.8 MB, free: 8.023 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.001185/0.1762, allocations: 0.6174 MB / 477.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.1763, allocations: 59.41 kB / 477.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1763, allocations: 0 / 477.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.337e-05/0.1764, allocations: 59.39 kB / 477.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.165e-05/0.1764, allocations: 0 / 477.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001852/0.1766, allocations: 86.77 kB / 477.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1769, allocations: 0.6731 MB / 478.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.552e-06/0.1769, allocations: 4 kB / 478.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.018e-05/0.1769, allocations: 7.438 kB / 478.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1769, allocations: 4 kB / 478.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of Templates: time 0.007937/0.1849, allocations: 4.146 MB / 482.5 MB, free: 2.371 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches