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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008895/0.0008895, allocations: 87.67 kB / 21.44 MB, free: 3.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004347/0.004347, allocations: 151.7 kB / 24.69 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8588/0.8588, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2287/0.2287, allocations: 32.79 MB / 294.2 MB, free: 1.223 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.805e-06/2.805e-06, allocations: 4 kB / 440.8 MB, free: 3.805 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.162e-05/2.443e-05, allocations: 6.219 kB / 440.8 MB, free: 3.797 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.000947/0.0009714, allocations: 489 kB / 441.3 MB, free: 3.32 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.002531, allocations: 1.262 MB / 442.6 MB, free: 2.051 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.473e-05/0.002546, allocations: 0 / 442.6 MB, free: 2.051 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.00256, allocations: 0 / 442.6 MB, free: 2.051 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.002566, allocations: 0 / 442.6 MB, free: 2.051 MB / 410.7 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.001066/0.003632, allocations: 0.5879 MB / 443.1 MB, free: 1.461 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.437e-05/0.003677, allocations: 7.984 kB / 443.1 MB, free: 1.453 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.455e-05/0.003711, allocations: 4 kB / 443.2 MB, free: 1.449 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.55e-05/0.003737, allocations: 0 / 443.2 MB, free: 1.449 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.02e-05/0.003757, allocations: 4 kB / 443.2 MB, free: 1.445 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.833e-06/0.003764, allocations: 3.938 kB / 443.2 MB, free: 1.441 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1595/0.1632, allocations: 2.532 MB / 445.7 MB, free: 44.73 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.1632, allocations: 1.328 kB / 445.7 MB, free: 44.73 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.497e-05/0.1633, allocations: 2.875 kB / 445.7 MB, free: 44.73 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.1636, allocations: 204.4 kB / 445.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1636, allocations: 2.531 kB / 445.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1636, allocations: 2.188 kB / 445.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1636, allocations: 0 / 445.9 MB, free: 44.73 MB / 410.7 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.0002309/0.1638, allocations: 306.4 kB / 446.2 MB, free: 44.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1638, allocations: 13.94 kB / 446.2 MB, free: 44.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.1639, allocations: 0.9375 kB / 446.2 MB, free: 44.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.671e-05/0.1639, allocations: 104.5 kB / 446.3 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.1639, allocations: 3 kB / 446.3 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-06/0.1639, allocations: 384 / 446.3 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.966e-05/0.164, allocations: 55.31 kB / 446.4 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.164, allocations: 1.75 kB / 446.4 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.164, allocations: 3.516 kB / 446.4 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.164, allocations: 6.594 kB / 446.4 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.927e-05/0.164, allocations: 28.8 kB / 446.4 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.906e-05/0.1641, allocations: 98.11 kB / 446.5 MB, free: 44.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.694e-05/0.1641, allocations: 46.69 kB / 446.6 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.437e-05/0.1642, allocations: 33.8 kB / 446.6 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.1642, allocations: 2.812 kB / 446.6 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1642, allocations: 58.64 kB / 446.6 MB, free: 43.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.1642, allocations: 3.844 kB / 446.7 MB, free: 43.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.1643, allocations: 117.5 kB / 446.8 MB, free: 43.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.1644, allocations: 83.67 kB / 446.8 MB, free: 43.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.438e-05/0.1644, allocations: 89.86 kB / 446.9 MB, free: 43.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-06/0.1644, allocations: 29.67 kB / 447 MB, free: 43.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.162e-06/0.1644, allocations: 80.14 kB / 447 MB, free: 43.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.1644, allocations: 2.688 kB / 447 MB, free: 43.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.738e-05/0.1644, allocations: 10.97 kB / 447.1 MB, free: 43.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.624e-05/0.1644, allocations: 316 kB / 447.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.1645, allocations: 32.94 kB / 447.4 MB, free: 43.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-06/0.1645, allocations: 28.36 kB / 447.4 MB, free: 43.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.442e-05/0.1645, allocations: 62.27 kB / 447.5 MB, free: 43.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1645, allocations: 0 / 447.5 MB, free: 43.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.255e-05/0.1645, allocations: 96.84 kB / 447.6 MB, free: 42.94 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1645, allocations: 31.3 kB / 447.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1645, allocations: 2.406 kB / 447.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.1646, allocations: 1.031 kB / 447.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1646, allocations: 0 / 447.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.1646, allocations: 6.781 kB / 447.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.213e-05/0.1646, allocations: 0 / 447.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.1646, allocations: 0 / 447.6 MB, free: 42.91 MB / 410.7 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 3.394e-05/0.1646, allocations: 137.7 kB / 447.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-06/0.1646, allocations: 0 / 447.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.919e-06/0.1646, allocations: 10.75 kB / 447.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1646, allocations: 1.125 kB / 447.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1646, allocations: 0 / 447.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1646, allocations: 6 kB / 447.8 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.877e-05/0.1647, allocations: 108.6 kB / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.1647, allocations: 0 / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-07/0.1647, allocations: 0 / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.21e-07/0.1647, allocations: 0 / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.1647, allocations: 3.562 kB / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.1647, allocations: 3.062 kB / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1647, allocations: 2.906 kB / 447.9 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.431e-05/0.1647, allocations: 121 kB / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.915e-06/0.1647, allocations: 0 / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-06/0.1647, allocations: 2.781 kB / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.268e-06/0.1647, allocations: 2.734 kB / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.213e-05/0.1647, allocations: 0 / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.1647, allocations: 2.719 kB / 448 MB, free: 42.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.936e-06/0.1648, allocations: 85.11 kB / 448.1 MB, free: 42.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1648, allocations: 0 / 448.1 MB, free: 42.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001666/0.1649, allocations: 66.34 kB / 448.2 MB, free: 42.41 MB / 410.7 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.0005372/0.1655, allocations: 446.6 kB / 448.6 MB, free: 42.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.608e-05/0.1655, allocations: 115.3 kB / 448.7 MB, free: 42.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.1655, allocations: 0 / 448.7 MB, free: 42.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.265e-05/0.1655, allocations: 85.77 kB / 448.8 MB, free: 42.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.076e-05/0.1656, allocations: 4.062 kB / 448.8 MB, free: 42.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001391/0.1658, allocations: 133.2 kB / 448.9 MB, free: 41.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.234e-05/0.1658, allocations: 57.48 kB / 449 MB, free: 41.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.039e-05/0.1658, allocations: 10.94 kB / 449 MB, free: 41.83 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1658, allocations: 0 / 449 MB, free: 41.83 MB / 410.7 MB Notification: Performance of Templates: time 0.002148/0.168, allocations: 2.058 MB / 451.1 MB, free: 41.64 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.122761906124651]