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.0007692/0.0007692, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003483/0.003483, allocations: 162.5 kB / 24.7 MB, free: 9.43 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.9202/0.9202, allocations: 177.2 MB / 205 MB, free: 5.723 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.2273/0.2273, allocations: 32.79 MB / 294.2 MB, free: 1.215 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.182e-06/1.182e-06, allocations: 0 / 440.8 MB, free: 3.789 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.186e-05, allocations: 2.281 kB / 440.8 MB, free: 3.785 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0009718/0.0009936, allocations: 496.9 kB / 441.3 MB, free: 3.301 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004239/0.001418, allocations: 251.4 kB / 441.5 MB, free: 3.055 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.992e-05/0.001438, allocations: 0 / 441.5 MB, free: 3.055 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.001453, allocations: 0 / 441.5 MB, free: 3.055 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-06/0.001459, allocations: 0 / 441.5 MB, free: 3.055 MB / 410.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.0002705/0.001729, allocations: 51.75 kB / 441.6 MB, free: 3.004 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.22e-05/0.001781, allocations: 8 kB / 441.6 MB, free: 2.996 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.001819, allocations: 4 kB / 441.6 MB, free: 2.992 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.45e-05/0.001843, allocations: 4 kB / 441.6 MB, free: 2.988 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.295e-05/0.001866, allocations: 3.938 kB / 441.6 MB, free: 2.984 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.001876, allocations: 0 / 441.6 MB, free: 2.984 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.001994, allocations: 71.81 kB / 441.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.502e-06/0.002, allocations: 0 / 441.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.642e-05/0.002017, allocations: 0 / 441.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.002126, allocations: 63.8 kB / 441.8 MB, free: 2.852 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.002128, allocations: 0 / 441.8 MB, free: 2.852 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.002129, allocations: 0 / 441.8 MB, free: 2.852 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.002132, allocations: 0 / 441.8 MB, free: 2.852 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.0002376/0.00237, allocations: 284 kB / 442 MB, free: 2.535 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.002404, allocations: 12.03 kB / 442 MB, free: 2.523 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.866e-05/0.002432, allocations: 0.9375 kB / 442 MB, free: 2.523 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.589e-05/0.002488, allocations: 109.8 kB / 442.1 MB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.002499, allocations: 384 / 442.1 MB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.002505, allocations: 384 / 442.1 MB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.659e-05/0.002582, allocations: 55.97 kB / 442.2 MB, free: 2.324 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.00259, allocations: 8.109 kB / 442.2 MB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.002597, allocations: 384 / 442.2 MB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.002601, allocations: 384 / 442.2 MB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.568e-05/0.002627, allocations: 37.58 kB / 442.2 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.656e-05/0.002713, allocations: 101.3 kB / 442.3 MB, free: 2.145 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.159e-05/0.002755, allocations: 52.3 kB / 442.4 MB, free: 2.078 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.002773, allocations: 30.56 kB / 442.4 MB, free: 2.039 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/0.00278, allocations: 0 / 442.4 MB, free: 2.039 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.002811, allocations: 60.33 kB / 442.5 MB, free: 1.965 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.002812, allocations: 0 / 442.5 MB, free: 1.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001616/0.002973, allocations: 126.7 kB / 442.6 MB, free: 1.816 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.003013, allocations: 77.11 kB / 442.7 MB, free: 1.723 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.843e-05/0.003041, allocations: 89.86 kB / 442.8 MB, free: 1.625 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.003051, allocations: 25.7 kB / 442.8 MB, free: 1.594 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.826e-05/0.003069, allocations: 80.27 kB / 442.9 MB, free: 1.512 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.003083, allocations: 7.953 kB / 442.9 MB, free: 1.504 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/0.003104, allocations: 17.72 kB / 442.9 MB, free: 1.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.262e-05/0.003177, allocations: 314.8 kB / 443.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.581e-05/0.003193, allocations: 29.7 kB / 443.2 MB, free: 1.129 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.219e-05/0.003205, allocations: 29.69 kB / 443.3 MB, free: 1.094 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.311e-05/0.003238, allocations: 60.27 kB / 443.3 MB, free: 1.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.003239, allocations: 0 / 443.3 MB, free: 1.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.751e-05/0.003287, allocations: 93.05 kB / 443.4 MB, free: 0.9102 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.00331, allocations: 33.78 kB / 443.5 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.003314, allocations: 4 kB / 443.5 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.003324, allocations: 0 / 443.5 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.003324, allocations: 0 / 443.5 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.003328, allocations: 4 kB / 443.5 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.159e-05/0.00334, allocations: 7.938 kB / 443.5 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-06/0.003345, allocations: 0 / 443.5 MB, free: 0.8555 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 0.0003223/0.003667, allocations: 135.5 kB / 443.6 MB, free: 0.707 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-06/0.00367, allocations: 0 / 443.6 MB, free: 0.707 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.285e-06/0.003678, allocations: 3 kB / 443.6 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.00368, allocations: 3.984 kB / 443.6 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.003684, allocations: 4 kB / 443.6 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.003686, allocations: 0 / 443.6 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.787e-05/0.003734, allocations: 105.3 kB / 443.7 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.003735, allocations: 0 / 443.7 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.003735, allocations: 0 / 443.7 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.11e-07/0.003736, allocations: 0 / 443.7 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.003742, allocations: 3.938 kB / 443.7 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.003743, allocations: 0 / 443.7 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.003744, allocations: 7.938 kB / 443.7 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.579e-05/0.00381, allocations: 124.4 kB / 443.8 MB, free: 404 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.595e-06/0.003813, allocations: 4.031 kB / 443.8 MB, free: 400 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.676e-06/0.003821, allocations: 0 / 443.8 MB, free: 400 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.619e-06/0.003826, allocations: 0 / 443.8 MB, free: 400 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.115e-05/0.003837, allocations: 7.984 kB / 443.9 MB, free: 392 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-06/0.003838, allocations: 0 / 443.9 MB, free: 392 kB / 410.7 MB Notification: Performance of sorting global known variables: time 1.865e-05/0.003857, allocations: 75.28 kB / 443.9 MB, free: 316 kB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003857, allocations: 0 / 443.9 MB, free: 316 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.000143/0.004, allocations: 23.94 kB / 444 MB, free: 292 kB / 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.0003864/0.004386, allocations: 297.5 kB / 444.2 MB, free: 72 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1526/0.157, allocations: 113.5 kB / 444.4 MB, free: 45.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.157, allocations: 0.9375 kB / 444.4 MB, free: 45.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.995e-05/0.157, allocations: 84.77 kB / 444.4 MB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001063/0.1571, allocations: 3.562 kB / 444.4 MB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001698/0.1573, allocations: 127.2 kB / 444.6 MB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.426e-05/0.1573, allocations: 55.3 kB / 444.6 MB, free: 45.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.48e-05/0.1573, allocations: 11.38 kB / 444.6 MB, free: 45.42 MB / 410.7 MB Notification: Performance of SimCode: time 1.273e-06/0.1573, allocations: 0 / 444.6 MB, free: 45.42 MB / 410.7 MB Notification: Performance of Templates: time 0.001822/0.1592, allocations: 0.9866 MB / 445.6 MB, free: 45.35 MB / 410.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.719613046385348]