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.001504/0.001504, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001507/0.001507, allocations: 169.3 kB / 24.27 MB, free: 144 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 1.51/1.51, allocations: 177.2 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.3722/0.3722, allocations: 32.8 MB / 293.9 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 179] 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 4.909e-06/4.909e-06, allocations: 4 kB / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.564e-05/3.055e-05, allocations: 9.344 kB / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001447/0.001477, allocations: 488.9 kB / 375.7 MB, free: 4.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006951/0.002172, allocations: 259.3 kB / 376 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.423e-05/0.002196, allocations: 0 / 376 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.171e-05/0.002208, allocations: 0 / 376 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.002213, allocations: 0 / 376 MB, free: 4.258 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.0003416/0.002555, allocations: 51.77 kB / 376 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.165e-05/0.002607, allocations: 8 kB / 376 MB, free: 4.199 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.985e-05/0.002647, allocations: 4 kB / 376 MB, free: 4.195 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.049e-05/0.002677, allocations: 3.984 kB / 376 MB, free: 4.191 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.228e-05/0.002709, allocations: 0 / 376 MB, free: 4.191 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.838e-06/0.002719, allocations: 0 / 376 MB, free: 4.191 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.002905, allocations: 71.81 kB / 376.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-06/0.002915, allocations: 0 / 376.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.002945, allocations: 0 / 376.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.003111, allocations: 67.73 kB / 376.2 MB, free: 4.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.003114, allocations: 0 / 376.2 MB, free: 4.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003115, allocations: 4 kB / 376.2 MB, free: 4.051 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.003118, allocations: 0 / 376.2 MB, free: 4.051 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.0003825/0.003501, allocations: 284 kB / 376.4 MB, free: 3.734 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.003543, allocations: 8.031 kB / 376.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.003594, allocations: 4.938 kB / 376.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.003707, allocations: 113.8 kB / 376.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.00372, allocations: 384 / 376.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-06/0.003727, allocations: 384 / 376.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.003834, allocations: 55.97 kB / 376.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.003842, allocations: 192 / 376.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.003853, allocations: 4.375 kB / 376.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.00386, allocations: 384 / 376.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.646e-05/0.003916, allocations: 41.58 kB / 376.7 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.004048, allocations: 97.31 kB / 376.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.148e-05/0.00412, allocations: 44.31 kB / 376.8 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.569e-05/0.004156, allocations: 30.56 kB / 376.8 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.004164, allocations: 0 / 376.8 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.931e-05/0.004224, allocations: 60.33 kB / 376.9 MB, free: 3.172 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.004224, allocations: 0 / 376.9 MB, free: 3.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002368/0.004461, allocations: 126.7 kB / 377 MB, free: 3.023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.612e-05/0.004527, allocations: 81.23 kB / 377.1 MB, free: 2.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.088e-05/0.004588, allocations: 89.86 kB / 377.2 MB, free: 2.828 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.004609, allocations: 25.7 kB / 377.2 MB, free: 2.797 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.554e-05/0.004655, allocations: 84.14 kB / 377.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.00467, allocations: 0 / 377.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.004705, allocations: 13.72 kB / 377.3 MB, free: 2.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002693/0.004974, allocations: 322.8 kB / 377.6 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.892e-05/0.005003, allocations: 25.7 kB / 377.7 MB, free: 2.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.386e-05/0.005027, allocations: 25.7 kB / 377.7 MB, free: 2.305 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.42e-05/0.005101, allocations: 60.27 kB / 377.7 MB, free: 2.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.005103, allocations: 4.062 kB / 377.7 MB, free: 2.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001128/0.005215, allocations: 97.03 kB / 377.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.00526, allocations: 33.7 kB / 377.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.005265, allocations: 0 / 377.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.005282, allocations: 0 / 377.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.005283, allocations: 0 / 377.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.005288, allocations: 0 / 377.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.722e-05/0.005305, allocations: 3.938 kB / 377.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.005312, allocations: 0 / 377.9 MB, free: 2.07 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 0.0001274/0.00544, allocations: 135.6 kB / 378 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.005451, allocations: 7.953 kB / 378 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.169e-05/0.005473, allocations: 14.98 kB / 378 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.005474, allocations: 0 / 378 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.005478, allocations: 0 / 378 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.00548, allocations: 0 / 378 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.005589, allocations: 97.27 kB / 378.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.00559, allocations: 0 / 378.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-06/0.005593, allocations: 4 kB / 378.1 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.005594, allocations: 0 / 378.1 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.0056, allocations: 0 / 378.1 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.005601, allocations: 0 / 378.1 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.005604, allocations: 8 kB / 378.1 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001441/0.005749, allocations: 124.4 kB / 378.3 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.693e-06/0.005755, allocations: 4 kB / 378.3 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.005769, allocations: 3.984 kB / 378.3 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.005778, allocations: 3.938 kB / 378.3 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.005793, allocations: 0 / 378.3 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.005795, allocations: 0 / 378.3 MB, free: 1.602 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.206e-05/0.005838, allocations: 79.28 kB / 378.3 MB, free: 1.523 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005838, allocations: 0 / 378.3 MB, free: 1.523 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002277/0.006065, allocations: 19.94 kB / 378.4 MB, free: 1.504 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.0008577/0.006923, allocations: 303.8 kB / 378.7 MB, free: 1.285 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001453/0.007068, allocations: 118.7 kB / 378.8 MB, free: 1.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.007072, allocations: 4 kB / 378.8 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.17e-05/0.007134, allocations: 81.11 kB / 378.9 MB, free: 1.043 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.007262, allocations: 0 / 378.9 MB, free: 1.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002605/0.007522, allocations: 111.9 kB / 379 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.118e-05/0.007584, allocations: 55.36 kB / 379 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.007589, allocations: 0 / 379 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.43e-05/0.007603, allocations: 8.625 kB / 379 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.007604, allocations: 4 kB / 379 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of Templates: time 0.003697/0.0113, allocations: 0.8326 MB / 379.9 MB, free: 15.98 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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: 4.755709346034564]