Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001278/0.001278, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001062/0.001062, allocations: 170 kB / 24.91 MB, free: 9.207 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 1.039/1.039, allocations: 177.1 MB / 205.3 MB, free: 5.445 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2575/0.2575, allocations: 34.25 MB / 296.1 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.565e-06/2.565e-06, allocations: 0 / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.401e-05/3.658e-05, allocations: 5.297 kB / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.00194/0.001977, allocations: 498 kB / 325.7 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002734/0.004711, allocations: 1.292 MB / 327 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.147e-05/0.004742, allocations: 4 kB / 327 MB, free: 5.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.353e-05/0.004766, allocations: 4 kB / 327 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.107e-05/0.004777, allocations: 0 / 327 MB, free: 5.926 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219: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.002817/0.007594, allocations: 0.5917 MB / 327.6 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.476e-05/0.007659, allocations: 3.984 kB / 327.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.147e-05/0.00771, allocations: 4.625 kB / 327.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.689e-05/0.007747, allocations: 0 / 327.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.728e-05/0.007775, allocations: 0 / 327.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.858e-06/0.007784, allocations: 0 / 327.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0144/0.02219, allocations: 3.781 MB / 331.4 MB, free: 2.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.768e-05/0.02221, allocations: 0 / 331.4 MB, free: 2.551 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.02224, allocations: 3.938 kB / 331.4 MB, free: 2.547 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005596/0.02279, allocations: 203.5 kB / 331.6 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.0228, allocations: 0 / 331.6 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.02281, allocations: 4 kB / 331.6 MB, free: 2.344 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.02281, allocations: 0 / 331.6 MB, free: 2.344 MB / 298.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.0004351/0.02325, allocations: 278.1 kB / 331.9 MB, free: 2.043 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.544e-05/0.02331, allocations: 16.03 kB / 331.9 MB, free: 2.027 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.02336, allocations: 4.922 kB / 331.9 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.434e-05/0.02344, allocations: 101.8 kB / 332 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.02346, allocations: 4.375 kB / 332 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.02347, allocations: 384 / 332 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.02359, allocations: 59.91 kB / 332 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.0236, allocations: 4.188 kB / 332 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.02361, allocations: 4.125 kB / 332.1 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.02362, allocations: 0 / 332.1 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.08e-05/0.02366, allocations: 29.69 kB / 332.1 MB, free: 1.781 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.633e-05/0.02376, allocations: 65.05 kB / 332.1 MB, free: 1.703 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.492e-05/0.02382, allocations: 40.28 kB / 332.2 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.511e-05/0.02385, allocations: 34.66 kB / 332.2 MB, free: 1.605 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.02386, allocations: 3.938 kB / 332.2 MB, free: 1.602 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/0.02391, allocations: 56.27 kB / 332.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.634e-06/0.02391, allocations: 0 / 332.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001805/0.02409, allocations: 118.8 kB / 332.4 MB, free: 1.391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.02417, allocations: 77.11 kB / 332.5 MB, free: 1.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.804e-05/0.02422, allocations: 89.86 kB / 332.6 MB, free: 1.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.02423, allocations: 25.7 kB / 332.6 MB, free: 1.168 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.659e-05/0.02425, allocations: 88.27 kB / 332.7 MB, free: 1.078 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.02428, allocations: 0 / 332.7 MB, free: 1.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.02431, allocations: 13.7 kB / 332.7 MB, free: 1.055 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.02444, allocations: 322.8 kB / 333 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.02446, allocations: 25.7 kB / 333 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.219e-05/0.02448, allocations: 33.64 kB / 333.1 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.068e-05/0.02455, allocations: 60.27 kB / 333.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.02455, allocations: 0 / 333.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.889e-05/0.02465, allocations: 89.09 kB / 333.2 MB, free: 492 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.79e-05/0.0247, allocations: 33.8 kB / 333.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.0247, allocations: 0 / 333.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.02472, allocations: 0 / 333.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.179e-06/0.02472, allocations: 0 / 333.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.02473, allocations: 4 kB / 333.2 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.009e-05/0.02475, allocations: 3.938 kB / 333.2 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.02476, allocations: 3.938 kB / 333.2 MB, free: 440 kB / 298.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 0.0001695/0.02493, allocations: 143.5 kB / 333.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.02494, allocations: 3.984 kB / 333.4 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.478e-05/0.02496, allocations: 3 kB / 333.4 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.02496, allocations: 4 kB / 333.4 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.02496, allocations: 0 / 333.4 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.02497, allocations: 0 / 333.4 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.989e-05/0.02505, allocations: 66.34 kB / 333.5 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.02505, allocations: 0 / 333.5 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.123e-06/0.02505, allocations: 0 / 333.5 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.02505, allocations: 0 / 333.5 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.02506, allocations: 0 / 333.5 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.02506, allocations: 4 kB / 333.5 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.02506, allocations: 0 / 333.5 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001075/0.02517, allocations: 112.5 kB / 333.6 MB, free: 40 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-06/0.02518, allocations: 4.031 kB / 333.6 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.0252, allocations: 7.984 kB / 333.6 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.107e-05/0.02521, allocations: 0 / 333.6 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.02522, allocations: 0 / 333.6 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.02523, allocations: 3.938 kB / 333.6 MB, free: 24 kB / 298.7 MB Notification: Performance of sorting global known variables: time 1.081e-05/0.02524, allocations: 4.859 kB / 333.6 MB, free: 16 kB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02524, allocations: 0 / 333.6 MB, free: 16 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.02554, allocations: 71.86 kB / 333.7 MB, free: 15.95 MB / 314.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.001336/0.02687, allocations: 491.3 kB / 334.1 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000148/0.02702, allocations: 115.7 kB / 334.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.02702, allocations: 0 / 334.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.479e-05/0.02707, allocations: 89.97 kB / 334.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.734e-05/0.02715, allocations: 7.938 kB / 334.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002551/0.0274, allocations: 112.7 kB / 334.5 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.08e-05/0.02744, allocations: 51.36 kB / 334.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.109e-05/0.02745, allocations: 4 kB / 334.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.02752, allocations: 59.36 kB / 334.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.273e-06/0.02752, allocations: 0 / 334.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of Templates: time 0.007044/0.03456, allocations: 2.534 MB / 337.1 MB, free: 12.52 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.139207250904292]