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.001251/0.001251, 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.001446/0.001446, 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 1.002/1.002, allocations: 177.1 MB / 205 MB, free: 5.605 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.2725/0.2725, allocations: 34.26 MB / 295.7 MB, free: 0.7773 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.794e-06/1.794e-06, allocations: 3.938 kB / 378 MB, free: 2.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.531e-05/2.71e-05, allocations: 6.312 kB / 378 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001567/0.001594, allocations: 493 kB / 378.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006515/0.002246, allocations: 267.3 kB / 378.7 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.02e-05/0.002276, allocations: 3.938 kB / 378.7 MB, free: 1.953 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.669e-05/0.002303, allocations: 4 kB / 378.8 MB, free: 1.949 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.005e-06/0.002311, allocations: 0 / 378.8 MB, free: 1.949 MB / 346.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.0004153/0.002726, allocations: 55.64 kB / 378.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.363e-05/0.0028, allocations: 0 / 378.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.391e-05/0.002854, allocations: 4 kB / 378.8 MB, free: 1.891 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.002893, allocations: 4 kB / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.529e-05/0.002928, allocations: 3.984 kB / 378.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.002942, allocations: 0 / 378.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.003116, allocations: 63.88 kB / 378.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.003127, allocations: 0 / 378.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.51e-05/0.003162, allocations: 4 kB / 378.9 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.0033, allocations: 59.88 kB / 378.9 MB, free: 1.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003302, allocations: 0 / 378.9 MB, free: 1.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.003303, allocations: 0 / 378.9 MB, free: 1.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.003307, allocations: 3.938 kB / 378.9 MB, free: 1.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.0004946/0.003802, allocations: 389.9 kB / 379.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.003847, allocations: 8.031 kB / 379.3 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.003887, allocations: 0.9375 kB / 379.3 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.878e-05/0.003956, allocations: 112.6 kB / 379.4 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.003968, allocations: 384 / 379.4 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.00398, allocations: 4.312 kB / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.817e-05/0.004078, allocations: 59.97 kB / 379.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.004089, allocations: 192 / 379.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/0.004098, allocations: 384 / 379.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.004109, allocations: 384 / 379.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.032e-05/0.004129, allocations: 29.64 kB / 379.5 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001009/0.00423, allocations: 112.6 kB / 379.6 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.504e-05/0.004285, allocations: 60.78 kB / 379.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.418e-05/0.004309, allocations: 45.31 kB / 379.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-06/0.004315, allocations: 0 / 379.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.004358, allocations: 59.09 kB / 379.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.004359, allocations: 4.062 kB / 379.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002045/0.004563, allocations: 122.8 kB / 379.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.004604, allocations: 77.11 kB / 380 MB, free: 492 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.022e-05/0.004654, allocations: 142.2 kB / 380.1 MB, free: 336 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.327e-06/0.004663, allocations: 25.7 kB / 380.2 MB, free: 304 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.975e-05/0.004693, allocations: 126.9 kB / 380.3 MB, free: 172 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.004712, allocations: 352 / 380.3 MB, free: 172 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.559e-05/0.004738, allocations: 19.38 kB / 380.3 MB, free: 144 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.004882, allocations: 496.1 kB / 380.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.674e-05/0.004908, allocations: 45.56 kB / 380.8 MB, free: 15.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.563e-05/0.004924, allocations: 29.83 kB / 380.9 MB, free: 15.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.048e-05/0.004974, allocations: 63.09 kB / 380.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.004978, allocations: 0 / 380.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.237e-05/0.00505, allocations: 89.06 kB / 381 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.005082, allocations: 35.72 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.005087, allocations: 0 / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.005107, allocations: 0 / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.851e-06/0.005113, allocations: 4 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.005123, allocations: 0 / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.311e-05/0.005136, allocations: 3.938 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.005146, allocations: 12.03 kB / 381.1 MB, free: 15.32 MB / 362.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.105e-05/0.005237, allocations: 182.3 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.162e-06/0.005243, allocations: 0 / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.781e-05/0.005261, allocations: 7 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.005264, allocations: 3.984 kB / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.00527, allocations: 0 / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.005274, allocations: 4 kB / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.566e-05/0.005339, allocations: 108.6 kB / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.00534, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.00534, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-07/0.005341, allocations: 4 kB / 381.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.005349, allocations: 4 kB / 381.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.005349, allocations: 0 / 381.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.00535, allocations: 0 / 381.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.736e-05/0.005437, allocations: 131.8 kB / 381.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-06/0.005441, allocations: 0 / 381.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.005456, allocations: 4 kB / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.198e-06/0.00546, allocations: 3.938 kB / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.594e-05/0.005476, allocations: 3.984 kB / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-06/0.005477, allocations: 0 / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.12e-05/0.005508, allocations: 119.2 kB / 381.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005508, allocations: 4.031 kB / 381.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001459/0.005654, allocations: 23.94 kB / 381.7 MB, free: 14.64 MB / 362.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.0005351/0.006189, allocations: 308.4 kB / 382 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.006296, allocations: 126.5 kB / 382.1 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.006298, allocations: 0 / 382.1 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.998e-05/0.006328, allocations: 88.8 kB / 382.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.53e-05/0.006423, allocations: 0 / 382.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001863/0.006609, allocations: 125.8 kB / 382.3 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.338e-05/0.006643, allocations: 59.3 kB / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.141e-06/0.006649, allocations: 0 / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.006664, allocations: 8.5 kB / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.006665, allocations: 0 / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of Templates: time 0.002852/0.009516, allocations: 0.8408 MB / 383.2 MB, free: 13.07 MB / 362.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] 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","",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.1717464770190418]