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.001575/0.001575, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.002015/0.002015, allocations: 206 kB / 24.47 MB, free: 3.977 MB / 14.72 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.476/1.476, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 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.2274/0.2274, allocations: 46.96 MB / 361.6 MB, free: 4.035 MB / 286.1 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.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 0.001998/0.001998, allocations: 71.88 kB / 0.4973 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3399, allocations: 66.04 MB / 0.5618 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003958/0.3439, allocations: 2.174 MB / 0.5639 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3457, allocations: 0.8579 MB / 0.5648 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.3458, allocations: 7.938 kB / 0.5648 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.346, allocations: 39.53 kB / 0.5648 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.3463, allocations: 75.31 kB / 0.5649 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000407/0.3467, allocations: 179.7 kB / 0.5651 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004512/0.3471, allocations: 394.8 kB / 0.5654 GB, free: 456 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.3473, allocations: 96.58 kB / 0.5655 GB, free: 356 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.3476, allocations: 159.4 kB / 0.5657 GB, free: 196 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.3478, allocations: 163.1 kB / 0.5658 GB, free: 32 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.9e-05/0.3479, allocations: 40.05 kB / 0.5659 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-05/0.348, allocations: 55.92 kB / 0.5659 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.371e-05/0.348, allocations: 83.7 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.3482, allocations: 143.2 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.3486, allocations: 408.8 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3487, allocations: 4 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3487, allocations: 0 / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.3487, allocations: 0 / 0.5665 GB, free: 15.32 MB / 414.1 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.001281/0.3499, allocations: 0.7306 MB / 0.5673 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.35, allocations: 12.03 kB / 0.5673 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004796/0.3505, allocations: 84.55 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005536/0.351, allocations: 295 kB / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.351, allocations: 24.97 kB / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.3511, allocations: 40.33 kB / 0.5677 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005278/0.3516, allocations: 270.2 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3516, allocations: 0 / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.3517, allocations: 12 kB / 0.568 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.3517, allocations: 4 kB / 0.568 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004292/0.3521, allocations: 198.5 kB / 0.5682 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.3534, allocations: 0.6682 MB / 0.5688 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.3539, allocations: 190.8 kB / 0.569 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.3541, allocations: 88.81 kB / 0.5691 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3541, allocations: 7.938 kB / 0.5691 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004239/0.3545, allocations: 235.6 kB / 0.5693 GB, free: 12.35 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.804e-06/0.3545, allocations: 0 / 0.5693 GB, free: 12.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008374/0.3554, allocations: 373.3 kB / 0.5697 GB, free: 11.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.3554, allocations: 63.34 kB / 0.5697 GB, free: 11.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.3557, allocations: 264.2 kB / 0.57 GB, free: 11.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.3558, allocations: 33.7 kB / 0.57 GB, free: 11.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.3559, allocations: 184.7 kB / 0.5702 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.207e-05/0.356, allocations: 99.17 kB / 0.5703 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.3561, allocations: 78.06 kB / 0.5703 GB, free: 11.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3563, allocations: 346.8 kB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.3565, allocations: 88.7 kB / 0.5708 GB, free: 10.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.3568, allocations: 222.6 kB / 0.571 GB, free: 10.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005535/0.3574, allocations: 356.7 kB / 0.5713 GB, free: 10.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3574, allocations: 4 kB / 0.5713 GB, free: 10.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007108/0.3581, allocations: 381.2 kB / 0.5717 GB, free: 9.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3581, allocations: 8 kB / 0.5717 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3581, allocations: 8 kB / 0.5717 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3581, allocations: 4 kB / 0.5717 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.3584, allocations: 75.83 kB / 0.5718 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.3584, allocations: 8 kB / 0.5718 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/0.3586, allocations: 39.77 kB / 0.5718 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.3587, allocations: 16 kB / 0.5718 GB, free: 9.574 MB / 414.1 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.0001915/0.3589, allocations: 169.6 kB / 0.572 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.197e-05/0.3589, allocations: 35.75 kB / 0.572 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006874/0.3596, allocations: 328.3 kB / 0.5723 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3596, allocations: 4 kB / 0.5723 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3596, allocations: 0 / 0.5723 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3596, allocations: 0 / 0.5723 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009341/0.3605, allocations: 0.6189 MB / 0.573 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3605, allocations: 0 / 0.573 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.3608, allocations: 51.91 kB / 0.573 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3608, allocations: 0 / 0.573 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.3608, allocations: 11.98 kB / 0.573 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3608, allocations: 0 / 0.573 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3608, allocations: 0 / 0.573 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000922/0.3618, allocations: 0.535 MB / 0.5735 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.3618, allocations: 27.75 kB / 0.5736 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/0.3619, allocations: 8.062 kB / 0.5736 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.362, allocations: 19.98 kB / 0.5736 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/0.3621, allocations: 23.95 kB / 0.5736 GB, free: 7.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3621, allocations: 11.98 kB / 0.5736 GB, free: 7.668 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.3623, allocations: 187.1 kB / 0.5738 GB, free: 7.484 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3623, allocations: 0 / 0.5738 GB, free: 7.484 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.3627, allocations: 75.77 kB / 0.5739 GB, free: 7.41 MB / 414.1 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.0001443/0.3629, allocations: 119.4 kB / 0.574 GB, free: 7.285 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000543/0.3634, allocations: 247.6 kB / 0.5742 GB, free: 7.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3634, allocations: 0.9375 kB / 0.5742 GB, free: 7.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.3637, allocations: 119.8 kB / 0.5743 GB, free: 6.926 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.364, allocations: 49.11 kB / 0.5744 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3651, allocations: 0.6263 MB / 0.575 GB, free: 6.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.3653, allocations: 185.9 kB / 0.5752 GB, free: 6.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.3655, allocations: 42.95 kB / 0.5752 GB, free: 5.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3656, allocations: 35.42 kB / 0.5752 GB, free: 5.945 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3656, allocations: 0 / 0.5752 GB, free: 5.945 MB / 414.1 MB Notification: Performance of Templates: time 0.007535/0.3731, allocations: 3.095 MB / 0.5783 GB, free: 2.887 MB / 414.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/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.04868884300231]