Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008667/0.0008667, 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.003485/0.003485, allocations: 160.7 kB / 24.7 MB, free: 8.898 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.8743/0.8743, allocations: 177.1 MB / 205 MB, free: 5.734 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.2795/0.2795, allocations: 34.25 MB / 295.7 MB, free: 0.6953 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 443.4 MB, free: 1.195 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.982e-05/2.093e-05, allocations: 2.281 kB / 443.4 MB, free: 1.191 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0008945/0.0009154, allocations: 492.9 kB / 443.9 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004204/0.001336, allocations: 255.4 kB / 444.1 MB, free: 472 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.225e-05/0.001358, allocations: 0 / 444.1 MB, free: 472 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.001373, allocations: 0 / 444.1 MB, free: 472 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.701e-06/0.001379, allocations: 0 / 444.1 MB, free: 472 kB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453: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.0003035/0.001682, allocations: 51.77 kB / 444.2 MB, free: 420 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.047e-05/0.001733, allocations: 0 / 444.2 MB, free: 420 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.001771, allocations: 11.94 kB / 444.2 MB, free: 408 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.747e-05/0.001798, allocations: 3.984 kB / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.414e-05/0.001822, allocations: 0 / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.001833, allocations: 0 / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.001949, allocations: 63.83 kB / 444.3 MB, free: 340 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.153e-06/0.001956, allocations: 4 kB / 444.3 MB, free: 336 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.893e-05/0.001975, allocations: 4 kB / 444.3 MB, free: 332 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.002092, allocations: 71.78 kB / 444.3 MB, free: 260 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.002094, allocations: 0 / 444.3 MB, free: 260 kB / 410.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.002094, allocations: 0 / 444.3 MB, free: 260 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.002098, allocations: 0 / 444.3 MB, free: 260 kB / 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.1605/0.1626, allocations: 278.7 kB / 444.6 MB, free: 44.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.1626, allocations: 9 kB / 444.6 MB, free: 44.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.1626, allocations: 0.9375 kB / 444.6 MB, free: 44.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.988e-05/0.1627, allocations: 101.8 kB / 444.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.1627, allocations: 7.188 kB / 444.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-06/0.1627, allocations: 1.438 kB / 444.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.309e-05/0.1628, allocations: 59.42 kB / 444.8 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1628, allocations: 3.688 kB / 444.8 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.1628, allocations: 384 / 444.8 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1628, allocations: 384 / 444.8 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.738e-05/0.1628, allocations: 35.11 kB / 444.8 MB, free: 44.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.985e-05/0.1629, allocations: 100.3 kB / 444.9 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.575e-05/0.1629, allocations: 46.06 kB / 445 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.42e-05/0.1629, allocations: 36.72 kB / 445 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.462e-06/0.1629, allocations: 0 / 445 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.163, allocations: 60.36 kB / 445.1 MB, free: 43.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.163, allocations: 0.7188 kB / 445.1 MB, free: 43.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000146/0.1631, allocations: 117.9 kB / 445.2 MB, free: 43.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.1631, allocations: 77.11 kB / 445.3 MB, free: 43.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.394e-05/0.1632, allocations: 92.05 kB / 445.3 MB, free: 43.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-06/0.1632, allocations: 27.14 kB / 445.4 MB, free: 43.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-06/0.1632, allocations: 83.08 kB / 445.5 MB, free: 43.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.406e-05/0.1632, allocations: 5.562 kB / 445.5 MB, free: 43.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/0.1632, allocations: 14.25 kB / 445.5 MB, free: 43.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.252e-05/0.1632, allocations: 315.4 kB / 445.8 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.278e-05/0.1632, allocations: 33.41 kB / 445.8 MB, free: 43.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.725e-06/0.1632, allocations: 28.55 kB / 445.8 MB, free: 43.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.642e-05/0.1633, allocations: 62.8 kB / 445.9 MB, free: 43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1633, allocations: 0 / 445.9 MB, free: 43 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.574e-05/0.1633, allocations: 95.2 kB / 446 MB, free: 42.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1633, allocations: 32.98 kB / 446 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1633, allocations: 0 / 446 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.1634, allocations: 3.531 kB / 446 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1634, allocations: 0 / 446 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.1634, allocations: 0 / 446 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.1634, allocations: 6.875 kB / 446 MB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-06/0.1634, allocations: 0 / 446 MB, free: 42.88 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 4.204e-05/0.1634, allocations: 140.1 kB / 446.2 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-06/0.1634, allocations: 0 / 446.2 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.1634, allocations: 3 kB / 446.2 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1634, allocations: 0 / 446.2 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1634, allocations: 5.312 kB / 446.2 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.1634, allocations: 2.875 kB / 446.2 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.102e-05/0.1635, allocations: 102.8 kB / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.1635, allocations: 0 / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.1635, allocations: 3 kB / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.1635, allocations: 3.375 kB / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.1635, allocations: 1.438 kB / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1635, allocations: 3.562 kB / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1635, allocations: 0 / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.484e-05/0.1635, allocations: 124.3 kB / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-06/0.1635, allocations: 3.844 kB / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-06/0.1636, allocations: 0 / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.38e-06/0.1636, allocations: 2.719 kB / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.1636, allocations: 0 / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.1636, allocations: 3.422 kB / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.756e-06/0.1636, allocations: 78.94 kB / 446.5 MB, free: 42.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1636, allocations: 2.875 kB / 446.5 MB, free: 42.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000158/0.1637, allocations: 20.39 kB / 446.5 MB, free: 42.4 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.0003997/0.1641, allocations: 301.2 kB / 446.8 MB, free: 42.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.351e-05/0.1642, allocations: 113.4 kB / 446.9 MB, free: 42.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1642, allocations: 0 / 446.9 MB, free: 42.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.397e-05/0.1642, allocations: 88.61 kB / 447 MB, free: 42.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.938e-05/0.1643, allocations: 4.625 kB / 447 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001453/0.1645, allocations: 130.1 kB / 447.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.23e-05/0.1645, allocations: 57.52 kB / 447.2 MB, free: 41.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.045e-05/0.1645, allocations: 8.5 kB / 447.2 MB, free: 41.85 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1645, allocations: 0 / 447.2 MB, free: 41.85 MB / 410.7 MB Notification: Performance of Templates: time 0.001609/0.1661, allocations: 0.9794 MB / 448.2 MB, free: 41.75 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.624031081795692]