Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001461/0.001461, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001685/0.001685, allocations: 161.7 kB / 24.27 MB, free: 172 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.494/1.494, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.3549/0.3549, allocations: 34.26 MB / 295.3 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 179] 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.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 377.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.822e-05/4.061e-05, allocations: 2.312 kB / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.005671/0.005712, allocations: 2.187 MB / 379.5 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.007946, allocations: 0.8644 MB / 380.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/0.008241, allocations: 11.94 kB / 380.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.008446, allocations: 39.53 kB / 380.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.008782, allocations: 63.34 kB / 380.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.009367, allocations: 191.5 kB / 380.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006148/0.009982, allocations: 394.8 kB / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.01025, allocations: 88.84 kB / 381.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004997/0.01075, allocations: 223.5 kB / 381.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000275/0.01102, allocations: 123.6 kB / 381.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-05/0.01111, allocations: 36 kB / 381.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.01123, allocations: 47.94 kB / 381.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.01133, allocations: 95.59 kB / 381.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.0115, allocations: 111.7 kB / 381.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006176/0.01211, allocations: 430.6 kB / 382.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01212, allocations: 0 / 382.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.01212, allocations: 0 / 382.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.01213, allocations: 0 / 382.1 MB, free: 14.08 MB / 362.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.001448/0.01358, allocations: 0.7228 MB / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.01362, allocations: 12.03 kB / 382.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005323/0.01415, allocations: 108.5 kB / 383 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.01472, allocations: 302.3 kB / 383.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.614e-05/0.01475, allocations: 29.02 kB / 383.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.35e-05/0.01484, allocations: 36.33 kB / 383.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005663/0.0154, allocations: 274.5 kB / 383.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.01542, allocations: 192 / 383.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.01545, allocations: 16.12 kB / 383.6 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.01546, allocations: 12 kB / 383.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004632/0.01592, allocations: 190.5 kB / 383.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.01732, allocations: 0.6799 MB / 384.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/0.01778, allocations: 186.8 kB / 384.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.018, allocations: 88.81 kB / 384.8 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.01803, allocations: 4 kB / 384.8 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004615/0.01849, allocations: 231.7 kB / 385 MB, free: 11.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.01849, allocations: 3.938 kB / 385 MB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009331/0.01942, allocations: 393.2 kB / 385.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.01948, allocations: 55.41 kB / 385.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.01983, allocations: 268.2 kB / 385.7 MB, free: 10.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.01987, allocations: 41.7 kB / 385.8 MB, free: 10.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.02003, allocations: 180.7 kB / 385.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.02016, allocations: 103.2 kB / 386 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.02028, allocations: 70.06 kB / 386.1 MB, free: 9.945 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.02051, allocations: 346.8 kB / 386.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.02075, allocations: 84.7 kB / 386.5 MB, free: 9.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.0211, allocations: 226.5 kB / 386.7 MB, free: 9.234 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00062/0.02172, allocations: 344.9 kB / 387.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.02172, allocations: 3.938 kB / 387.1 MB, free: 8.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008488/0.02257, allocations: 401.2 kB / 387.5 MB, free: 8.434 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.02259, allocations: 8 kB / 387.5 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.0226, allocations: 4 kB / 387.5 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.907e-05/0.02264, allocations: 11.94 kB / 387.5 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003027/0.02295, allocations: 71.83 kB / 387.6 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.02296, allocations: 8 kB / 387.6 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.02316, allocations: 39.77 kB / 387.6 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/0.02319, allocations: 16 kB / 387.6 MB, free: 8.277 MB / 362.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 0.0002028/0.02339, allocations: 173.8 kB / 387.8 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.02346, allocations: 39.81 kB / 387.8 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007273/0.02419, allocations: 324.2 kB / 388.2 MB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.0242, allocations: 11.94 kB / 388.2 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.0242, allocations: 0 / 388.2 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.02421, allocations: 4 kB / 388.2 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.02521, allocations: 0.6111 MB / 388.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.02521, allocations: 0 / 388.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.02547, allocations: 51.91 kB / 388.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.02548, allocations: 3.938 kB / 388.8 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.02551, allocations: 11.98 kB / 388.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.02551, allocations: 0 / 388.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.02551, allocations: 0 / 388.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.02664, allocations: 0.5347 MB / 389.4 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.0267, allocations: 31.81 kB / 389.4 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.081e-05/0.02675, allocations: 11.94 kB / 389.4 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.02693, allocations: 11.98 kB / 389.4 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.57e-05/0.02701, allocations: 27.89 kB / 389.5 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.02704, allocations: 23.92 kB / 389.5 MB, free: 6.352 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002076/0.02725, allocations: 183.1 kB / 389.7 MB, free: 6.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02725, allocations: 4 kB / 389.7 MB, free: 6.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000399/0.02765, allocations: 75.84 kB / 389.7 MB, free: 6.098 MB / 362.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 0.0001506/0.0278, allocations: 107.3 kB / 389.8 MB, free: 5.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005808/0.02838, allocations: 260.7 kB / 390.1 MB, free: 5.727 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.02839, allocations: 4 kB / 390.1 MB, free: 5.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002748/0.02866, allocations: 119.8 kB / 390.2 MB, free: 5.605 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.02904, allocations: 32.97 kB / 390.3 MB, free: 5.574 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.03024, allocations: 0.6146 MB / 390.9 MB, free: 4.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.03047, allocations: 186.1 kB / 391.1 MB, free: 4.727 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.03063, allocations: 42.95 kB / 391.1 MB, free: 4.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.265e-05/0.03072, allocations: 32.5 kB / 391.1 MB, free: 4.648 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.03072, allocations: 4 kB / 391.1 MB, free: 4.645 MB / 362.7 MB Notification: Performance of Templates: time 0.008001/0.03872, allocations: 2.76 MB / 393.9 MB, free: 1.922 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.013826793991029]