Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.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.001059/0.001059, allocations: 87.62 kB / 21.43 MB, free: 3.137 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.004309/0.004309, allocations: 162.5 kB / 24.7 MB, free: 8.879 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.909/0.909, allocations: 177.1 MB / 205 MB, free: 5.742 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.237/0.237, allocations: 32.79 MB / 294.2 MB, free: 1.219 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.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 440.8 MB, free: 3.77 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.017e-05/2.219e-05, allocations: 3.969 kB / 440.8 MB, free: 3.766 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003413/0.003435, allocations: 2.189 MB / 443 MB, free: 1.562 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.004902, allocations: 0.8566 MB / 443.9 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.005081, allocations: 15.88 kB / 443.9 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.005246, allocations: 39.53 kB / 443.9 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002526/0.005498, allocations: 71.31 kB / 444 MB, free: 0.5742 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.005922, allocations: 183.5 kB / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.00632, allocations: 394.8 kB / 444.6 MB, free: 8 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1652/0.1716, allocations: 83.83 kB / 444.6 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003815/0.1719, allocations: 226.6 kB / 444.9 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.1721, allocations: 122.9 kB / 445 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.758e-05/0.1721, allocations: 38.97 kB / 445 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.908e-05/0.1722, allocations: 49.39 kB / 445.1 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.062e-05/0.1723, allocations: 91.3 kB / 445.2 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.698e-05/0.1723, allocations: 116.1 kB / 445.3 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.1726, allocations: 424 kB / 445.7 MB, free: 43.83 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1726, allocations: 0 / 445.7 MB, free: 43.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1726, allocations: 0 / 445.7 MB, free: 43.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1726, allocations: 0.6562 kB / 445.7 MB, free: 43.83 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007575/0.1734, allocations: 0.727 MB / 446.4 MB, free: 43.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.1734, allocations: 8.906 kB / 446.4 MB, free: 43.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.1737, allocations: 81.94 kB / 446.5 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.174, allocations: 299.4 kB / 446.8 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.174, allocations: 23.19 kB / 446.8 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.174, allocations: 32.62 kB / 446.9 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.1743, allocations: 271.7 kB / 447.1 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.1744, allocations: 6.766 kB / 447.1 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.1744, allocations: 16.67 kB / 447.1 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.1744, allocations: 9.188 kB / 447.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.1746, allocations: 187.8 kB / 447.3 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000689/0.1753, allocations: 0.675 MB / 448 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.1755, allocations: 183.9 kB / 448.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1757, allocations: 86.89 kB / 448.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.1757, allocations: 9.438 kB / 448.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.1759, allocations: 225.3 kB / 448.5 MB, free: 42.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1759, allocations: 2.969 kB / 448.5 MB, free: 42.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004578/0.1764, allocations: 378.9 kB / 448.9 MB, free: 42.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.1764, allocations: 60.23 kB / 448.9 MB, free: 42.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.1765, allocations: 264.8 kB / 449.2 MB, free: 42.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1765, allocations: 36.64 kB / 449.2 MB, free: 42.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.1766, allocations: 193.2 kB / 449.4 MB, free: 42.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.967e-05/0.1766, allocations: 101.6 kB / 449.5 MB, free: 42.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.1767, allocations: 68.72 kB / 449.6 MB, free: 42.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.803e-05/0.1767, allocations: 341.1 kB / 449.9 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.1768, allocations: 92.92 kB / 450 MB, free: 41.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.177, allocations: 222.1 kB / 450.2 MB, free: 41.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.1772, allocations: 353.5 kB / 450.6 MB, free: 41.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1772, allocations: 0 / 450.6 MB, free: 41.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003413/0.1776, allocations: 377.4 kB / 450.9 MB, free: 41.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1776, allocations: 5.594 kB / 450.9 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.1776, allocations: 5.438 kB / 451 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1776, allocations: 12.89 kB / 451 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.1778, allocations: 76.72 kB / 451 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1778, allocations: 8.562 kB / 451 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.473e-05/0.1779, allocations: 34.8 kB / 451.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.1779, allocations: 22.12 kB / 451.1 MB, free: 41.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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.211e-05/0.178, allocations: 175.9 kB / 451.3 MB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.178, allocations: 34.27 kB / 451.3 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.1783, allocations: 319.2 kB / 451.6 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1783, allocations: 6.844 kB / 451.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1783, allocations: 2.969 kB / 451.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1783, allocations: 7.281 kB / 451.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004317/0.1788, allocations: 0.612 MB / 452.2 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1788, allocations: 0 / 452.2 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.1789, allocations: 50.41 kB / 452.3 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1789, allocations: 0 / 452.3 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1789, allocations: 10.81 kB / 452.3 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1789, allocations: 7.047 kB / 452.3 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1789, allocations: 0 / 452.3 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004346/0.1794, allocations: 0.5318 MB / 452.8 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.958e-05/0.1794, allocations: 28.41 kB / 452.9 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.1794, allocations: 14.69 kB / 452.9 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-05/0.1795, allocations: 16.66 kB / 452.9 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.741e-05/0.1795, allocations: 20.34 kB / 452.9 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.1796, allocations: 16.91 kB / 452.9 MB, free: 40.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.297e-05/0.1796, allocations: 190.1 kB / 453.1 MB, free: 40.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1796, allocations: 4 kB / 453.1 MB, free: 40.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002163/0.1799, allocations: 65.95 kB / 453.2 MB, free: 40.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 7.907e-05/0.1799, allocations: 117.9 kB / 453.3 MB, free: 39.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.1802, allocations: 254 kB / 453.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1802, allocations: 4.344 kB / 453.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.1804, allocations: 117.4 kB / 453.7 MB, free: 39.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.1806, allocations: 36.31 kB / 453.7 MB, free: 39.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000624/0.1812, allocations: 0.6423 MB / 454.4 MB, free: 39.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.121e-05/0.1813, allocations: 193.2 kB / 454.5 MB, free: 39.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.713e-05/0.1814, allocations: 37.34 kB / 454.6 MB, free: 39.38 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1814, allocations: 4 kB / 454.6 MB, free: 39.38 MB / 410.7 MB Notification: Performance of Templates: time 0.003344/0.1847, allocations: 4.05 MB / 458.6 MB, free: 39.01 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.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.7947041327133775]