Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.00128/0.00128, allocations: 95.31 kB / 20.43 MB, free: 4.145 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.001171/0.001171, allocations: 165.3 kB / 23.79 MB, free: 0.7812 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.11/1.11, allocations: 158.6 MB / 185.7 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1497/0.1497, allocations: 32.36 MB / 270.4 MB, free: 14.7 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 347.6 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.62e-05/2.814e-05, allocations: 4.281 kB / 347.6 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001122/0.001151, allocations: 0.5043 MB / 348.1 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004726/0.001623, allocations: 267.1 kB / 348.4 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.987e-05/0.001643, allocations: 0 / 348.4 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.521e-05/0.001658, allocations: 0 / 348.4 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.001665, allocations: 0 / 348.4 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.001933, allocations: 55.7 kB / 348.5 MB, free: 8.672 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.301e-05/0.001976, allocations: 3.984 kB / 348.5 MB, free: 8.668 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.247e-05/0.002009, allocations: 8 kB / 348.5 MB, free: 8.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.105e-05/0.00203, allocations: 0 / 348.5 MB, free: 8.66 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.911e-05/0.002049, allocations: 3.938 kB / 348.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.002057, allocations: 0 / 348.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.002173, allocations: 63.88 kB / 348.5 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.124e-05/0.002185, allocations: 0 / 348.5 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.911e-05/0.002214, allocations: 4 kB / 348.5 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.002353, allocations: 63.8 kB / 348.6 MB, free: 8.527 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.002357, allocations: 0 / 348.6 MB, free: 8.527 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.002358, allocations: 4 kB / 348.6 MB, free: 8.523 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.002364, allocations: 0 / 348.6 MB, free: 8.523 MB / 282.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.0003205/0.002684, allocations: 385.9 kB / 349 MB, free: 8.102 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.002732, allocations: 8.031 kB / 349 MB, free: 8.094 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.002771, allocations: 0.9375 kB / 349 MB, free: 8.094 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.611e-05/0.002818, allocations: 116.5 kB / 349.1 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.002832, allocations: 384 / 349.1 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.002846, allocations: 384 / 349.1 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.002948, allocations: 59.91 kB / 349.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.002958, allocations: 192 / 349.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.002968, allocations: 4.375 kB / 349.2 MB, free: 7.879 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.002977, allocations: 384 / 349.2 MB, free: 7.879 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.775e-05/0.002995, allocations: 29.64 kB / 349.2 MB, free: 7.844 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.152e-05/0.003086, allocations: 112.6 kB / 349.3 MB, free: 7.699 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.513e-05/0.003141, allocations: 56.78 kB / 349.4 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.086e-05/0.003162, allocations: 37.39 kB / 349.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-06/0.003168, allocations: 0 / 349.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.003208, allocations: 63.16 kB / 349.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.003209, allocations: 3.938 kB / 349.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001897/0.003399, allocations: 118.9 kB / 349.6 MB, free: 7.355 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.003427, allocations: 81.11 kB / 349.7 MB, free: 7.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.908e-05/0.003456, allocations: 142.2 kB / 349.8 MB, free: 7.105 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.26e-06/0.003461, allocations: 25.7 kB / 349.8 MB, free: 7.074 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.297e-05/0.003474, allocations: 126.9 kB / 350 MB, free: 6.945 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.003493, allocations: 4 kB / 350 MB, free: 6.941 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.086e-05/0.003514, allocations: 15.38 kB / 350 MB, free: 6.918 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.003579, allocations: 0.4883 MB / 350.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.748e-05/0.003597, allocations: 33.69 kB / 350.5 MB, free: 6.379 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.003606, allocations: 25.7 kB / 350.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.671e-05/0.003643, allocations: 71.09 kB / 350.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.003645, allocations: 0 / 350.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.418e-05/0.003679, allocations: 85.11 kB / 350.7 MB, free: 6.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.003707, allocations: 37.69 kB / 350.7 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.003713, allocations: 0 / 350.7 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.003729, allocations: 7.984 kB / 350.7 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.056e-06/0.003732, allocations: 0 / 350.7 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.003738, allocations: 0 / 350.7 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.698e-06/0.003748, allocations: 4.281 kB / 350.7 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.003755, allocations: 0 / 350.7 MB, free: 6.105 MB / 282.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 6.369e-05/0.003819, allocations: 186.3 kB / 350.9 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-06/0.003823, allocations: 0 / 350.9 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.411e-05/0.003838, allocations: 6.938 kB / 350.9 MB, free: 5.898 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.003839, allocations: 3.984 kB / 350.9 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.003844, allocations: 4 kB / 350.9 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.003847, allocations: 0 / 350.9 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.995e-05/0.003887, allocations: 116.5 kB / 351 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.1e-07/0.003887, allocations: 0 / 351 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.003887, allocations: 4 kB / 351 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-07/0.003888, allocations: 0 / 351 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.003895, allocations: 4 kB / 351 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.003896, allocations: 4 kB / 351 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-07/0.003896, allocations: 0 / 351 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.644e-05/0.003963, allocations: 131.8 kB / 351.2 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-06/0.003966, allocations: 0 / 351.2 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.003981, allocations: 4 kB / 351.2 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.188e-06/0.003985, allocations: 0 / 351.2 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.494e-05/0.004, allocations: 3.984 kB / 351.2 MB, free: 5.559 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-06/0.004001, allocations: 0 / 351.2 MB, free: 5.559 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.719e-05/0.004028, allocations: 119.2 kB / 351.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004028, allocations: 0 / 351.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001563/0.004184, allocations: 23.97 kB / 351.3 MB, free: 5.418 MB / 282.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.0005097/0.004694, allocations: 305.9 kB / 351.6 MB, free: 5.184 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.506e-05/0.004789, allocations: 122.5 kB / 351.7 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.00479, allocations: 0 / 351.7 MB, free: 5.035 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.887e-05/0.004809, allocations: 92.86 kB / 351.8 MB, free: 4.922 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001008/0.00491, allocations: 7.984 kB / 351.8 MB, free: 4.914 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000185/0.005095, allocations: 121.7 kB / 352 MB, free: 4.758 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.35e-05/0.005118, allocations: 55.3 kB / 352 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.761e-06/0.005124, allocations: 0 / 352 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.265e-05/0.005137, allocations: 8.5 kB / 352 MB, free: 4.676 MB / 282.7 MB Notification: Performance of SimCode: time 3.81e-07/0.005137, allocations: 0 / 352 MB, free: 4.676 MB / 282.7 MB Notification: Performance of Templates: time 0.002604/0.007741, allocations: 0.8289 MB / 352.8 MB, free: 3.848 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.30398261686787]