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.001695/0.001695, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001981/0.001981, allocations: 194 kB / 18.12 MB, free: 5.383 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.472/1.472, allocations: 222.9 MB / 241.8 MB, free: 13.73 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.217/0.217, allocations: 44.18 MB / 336.1 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.34 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1346, allocations: 60.83 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.003116/0.1378, allocations: 0.5293 MB / 469 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00311/0.1409, allocations: 1.401 MB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.141, allocations: 0 / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.93e-05/0.141, allocations: 0 / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.141, allocations: 0 / 470.4 MB, free: 12.88 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.001782/0.1428, allocations: 443 kB / 470.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.158e-05/0.1429, allocations: 4 kB / 470.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.133e-05/0.1429, allocations: 7.984 kB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.26e-05/0.143, allocations: 0 / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.459e-05/0.143, allocations: 3.984 kB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.143, allocations: 0 / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02738/0.1704, allocations: 2.344 MB / 473.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.507e-05/0.1704, allocations: 3.938 kB / 473.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.54e-05/0.1705, allocations: 11.92 kB / 473.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.1709, allocations: 155.8 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1709, allocations: 0 / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1709, allocations: 4 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1709, allocations: 0 / 473.4 MB, free: 10.34 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.0004324/0.1714, allocations: 381.2 kB / 473.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.1714, allocations: 12.03 kB / 473.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.1715, allocations: 0.9375 kB / 473.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.1716, allocations: 160.4 kB / 474 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1716, allocations: 384 / 474 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.1716, allocations: 384 / 474 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.1717, allocations: 41.81 kB / 474 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.1717, allocations: 0 / 474 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.1718, allocations: 0 / 474 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1718, allocations: 0 / 474 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.698e-05/0.1718, allocations: 3.938 kB / 474 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001897/0.172, allocations: 149.7 kB / 474.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.079e-05/0.1721, allocations: 18.56 kB / 474.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.911e-05/0.1721, allocations: 8.953 kB / 474.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.1721, allocations: 4 kB / 474.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.043e-05/0.1722, allocations: 64.19 kB / 474.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.1722, allocations: 0 / 474.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002073/0.1724, allocations: 67.34 kB / 474.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.1725, allocations: 81.09 kB / 474.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.77e-05/0.1725, allocations: 89.86 kB / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1725, allocations: 25.7 kB / 474.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.976e-05/0.1726, allocations: 80.14 kB / 474.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.1726, allocations: 12.06 kB / 474.6 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.1726, allocations: 9.719 kB / 474.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1728, allocations: 314.8 kB / 474.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.364e-05/0.1728, allocations: 4 kB / 474.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-06/0.1728, allocations: 0 / 474.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.413e-05/0.1729, allocations: 60.27 kB / 475 MB, free: 8.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1729, allocations: 0 / 475 MB, free: 8.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.86e-05/0.173, allocations: 71.33 kB / 475 MB, free: 8.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.819e-05/0.173, allocations: 37.64 kB / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.173, allocations: 0 / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1731, allocations: 0 / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.1731, allocations: 0 / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1731, allocations: 0 / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.1731, allocations: 0 / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.1731, allocations: 4 kB / 475.1 MB, free: 8.398 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 9.393e-05/0.1732, allocations: 139.5 kB / 475.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.1732, allocations: 7.969 kB / 475.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.405e-05/0.1733, allocations: 11.08 kB / 475.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1733, allocations: 0 / 475.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1733, allocations: 3.984 kB / 475.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.1733, allocations: 0 / 475.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.1734, allocations: 145.7 kB / 475.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1734, allocations: 0 / 475.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-06/0.1734, allocations: 4 kB / 475.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1734, allocations: 7.938 kB / 475.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.1734, allocations: 0 / 475.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1734, allocations: 0 / 475.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1735, allocations: 4 kB / 475.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.1736, allocations: 98.8 kB / 475.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.1736, allocations: 81.05 kB / 475.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.1736, allocations: 0 / 475.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.072e-05/0.1736, allocations: 0 / 475.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.487e-05/0.1737, allocations: 4 kB / 475.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.1737, allocations: 0 / 475.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.707e-05/0.1737, allocations: 83.31 kB / 475.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.519e-05/0.1737, allocations: 0 / 475.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003205/0.1741, allocations: 67.92 kB / 475.7 MB, free: 7.645 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.0008568/0.1749, allocations: 402.2 kB / 476.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.175, allocations: 67.39 kB / 476.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1751, allocations: 0 / 476.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.511e-05/0.1751, allocations: 59.34 kB / 476.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.1752, allocations: 4 kB / 476.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002003/0.1754, allocations: 82.55 kB / 476.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.1757, allocations: 0.677 MB / 477 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.824e-06/0.1757, allocations: 0 / 477 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.925e-05/0.1757, allocations: 7.438 kB / 477 MB, free: 6.352 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1758, allocations: 4.125 kB / 477 MB, free: 6.348 MB / 350.1 MB Notification: Performance of Templates: time 0.005636/0.1814, allocations: 2.13 MB / 479.1 MB, free: 4.227 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches