Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.0008294/0.0008294, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009219/0.0009219, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9991/0.9991, allocations: 177.1 MB / 205 MB, free: 5.41 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.3172/0.3172, allocations: 32.81 MB / 294.3 MB, free: 1.25 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 376 MB, free: 4.719 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.149e-05/3.347e-05, allocations: 2.312 kB / 376 MB, free: 4.715 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001656/0.001689, allocations: 0.4892 MB / 376.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007209/0.00241, allocations: 259.3 kB / 376.7 MB, free: 3.969 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.647e-05/0.002447, allocations: 0 / 376.7 MB, free: 3.969 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.648e-05/0.002483, allocations: 0 / 376.7 MB, free: 3.969 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.342e-05/0.002497, allocations: 3.938 kB / 376.7 MB, free: 3.965 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.002945, allocations: 63.67 kB / 376.8 MB, free: 3.902 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.313e-05/0.003018, allocations: 4 kB / 376.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.012e-05/0.003068, allocations: 4 kB / 376.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.698e-05/0.003105, allocations: 0 / 376.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.431e-05/0.00314, allocations: 0 / 376.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.003156, allocations: 0 / 376.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.003335, allocations: 59.89 kB / 376.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.685e-05/0.003352, allocations: 3.984 kB / 376.9 MB, free: 3.832 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.003382, allocations: 4 kB / 376.9 MB, free: 3.828 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.003572, allocations: 71.8 kB / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.003575, allocations: 0 / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.003575, allocations: 0 / 376.9 MB, free: 3.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.003582, allocations: 4 kB / 376.9 MB, free: 3.754 MB / 346.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.0003948/0.003977, allocations: 381.9 kB / 377.3 MB, free: 3.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/0.004039, allocations: 8.031 kB / 377.3 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.004087, allocations: 0.9375 kB / 377.3 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.409e-05/0.004171, allocations: 108.6 kB / 377.4 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.004186, allocations: 4.375 kB / 377.4 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.004196, allocations: 384 / 377.4 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.004326, allocations: 63.95 kB / 377.5 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.004336, allocations: 192 / 377.5 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.004349, allocations: 4.359 kB / 377.5 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.00436, allocations: 384 / 377.5 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.847e-05/0.004388, allocations: 33.64 kB / 377.5 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.004519, allocations: 108.6 kB / 377.6 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.547e-05/0.004594, allocations: 60.64 kB / 377.7 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.244e-05/0.004627, allocations: 41.48 kB / 377.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.004635, allocations: 3.984 kB / 377.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.575e-05/0.004691, allocations: 63.09 kB / 377.8 MB, free: 2.723 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.004692, allocations: 0 / 377.8 MB, free: 2.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002435/0.004936, allocations: 114.8 kB / 377.9 MB, free: 2.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.00499, allocations: 81.09 kB / 378 MB, free: 2.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.223e-05/0.005052, allocations: 146.4 kB / 378.1 MB, free: 2.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.005066, allocations: 25.7 kB / 378.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.005109, allocations: 126.9 kB / 378.3 MB, free: 2.172 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.005131, allocations: 8.281 kB / 378.3 MB, free: 2.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.005164, allocations: 19.38 kB / 378.3 MB, free: 2.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.005329, allocations: 496.1 kB / 378.8 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.836e-05/0.005357, allocations: 29.7 kB / 378.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.927e-05/0.005377, allocations: 25.7 kB / 378.9 MB, free: 1.574 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.508e-05/0.005442, allocations: 67.08 kB / 378.9 MB, free: 1.492 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.005444, allocations: 0 / 378.9 MB, free: 1.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001222/0.005567, allocations: 97.12 kB / 379 MB, free: 1.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.005607, allocations: 29.7 kB / 379 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.005613, allocations: 0 / 379 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.005634, allocations: 0 / 379 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.055e-05/0.005645, allocations: 4 kB / 379 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.005653, allocations: 7.922 kB / 379.1 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.454e-05/0.005668, allocations: 3.938 kB / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.005676, allocations: 0 / 379.1 MB, free: 1.328 MB / 346.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 9.548e-05/0.005771, allocations: 182.3 kB / 379.2 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-06/0.005777, allocations: 4.031 kB / 379.2 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.046e-05/0.005787, allocations: 3 kB / 379.2 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.005789, allocations: 0 / 379.2 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.005793, allocations: 0 / 379.2 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.005798, allocations: 4 kB / 379.2 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.755e-05/0.005885, allocations: 120.5 kB / 379.4 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.005886, allocations: 0 / 379.4 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-07/0.005886, allocations: 0 / 379.4 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.005888, allocations: 0 / 379.4 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.005898, allocations: 4 kB / 379.4 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.005901, allocations: 7.938 kB / 379.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.005902, allocations: 4 kB / 379.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.006021, allocations: 135.7 kB / 379.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-06/0.006026, allocations: 0 / 379.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.006044, allocations: 4 kB / 379.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.525e-06/0.006052, allocations: 0 / 379.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.006065, allocations: 0 / 379.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.006068, allocations: 0 / 379.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.238e-05/0.00611, allocations: 119.2 kB / 379.6 MB, free: 0.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00611, allocations: 0 / 379.6 MB, free: 0.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002357/0.006346, allocations: 23.92 kB / 379.7 MB, free: 0.6445 MB / 346.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.0007748/0.007121, allocations: 312.2 kB / 380 MB, free: 428 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001461/0.007267, allocations: 118.5 kB / 380.1 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.007269, allocations: 0 / 380.1 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.039e-05/0.00732, allocations: 92.78 kB / 380.2 MB, free: 164 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001641/0.007484, allocations: 11.92 kB / 380.2 MB, free: 152 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.007733, allocations: 113.6 kB / 380.3 MB, free: 0 / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.065e-05/0.007793, allocations: 59.34 kB / 380.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.645e-06/0.007801, allocations: 0 / 380.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.541e-05/0.007816, allocations: 12.62 kB / 380.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of SimCode: time 7.51e-07/0.007817, allocations: 0 / 380.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Templates: time 0.003373/0.01119, allocations: 0.9124 MB / 381.3 MB, free: 15 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.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.199310733936727]