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.0009609/0.0009609, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.0009608/0.0009608, allocations: 161.4 kB / 24.56 MB, free: 20 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 0.9636/0.9636, allocations: 177.2 MB / 205 MB, free: 5.285 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.2723/0.2723, allocations: 34.26 MB / 295.7 MB, free: 0.7031 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.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 1.182e-06/1.182e-06, allocations: 0 / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.4e-05/1.518e-05, allocations: 6.312 kB / 378 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00235/0.002366, allocations: 2.266 MB / 380.3 MB, free: 376 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.003611, allocations: 0.884 MB / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.003736, allocations: 7.938 kB / 381.2 MB, free: 15.47 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.003856, allocations: 35.53 kB / 381.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.004052, allocations: 67.33 kB / 381.3 MB, free: 15.37 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.00438, allocations: 191.5 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.004676, allocations: 394.8 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.004851, allocations: 92.77 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.005083, allocations: 215.5 kB / 382.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.005232, allocations: 127.5 kB / 382.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.005274, allocations: 36 kB / 382.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.577e-05/0.00535, allocations: 55.92 kB / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.118e-05/0.005411, allocations: 87.66 kB / 382.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.507e-05/0.005506, allocations: 115.7 kB / 382.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.005791, allocations: 286.9 kB / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.005792, allocations: 0 / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005793, allocations: 0 / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.005797, allocations: 0 / 382.9 MB, free: 13.8 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.0008381/0.006635, allocations: 0.8365 MB / 383.7 MB, free: 12.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.006668, allocations: 8.031 kB / 383.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002753/0.006943, allocations: 104.6 kB / 383.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.007277, allocations: 305.1 kB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.007301, allocations: 25.03 kB / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/0.007351, allocations: 40.31 kB / 384.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.007643, allocations: 211.3 kB / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.007655, allocations: 192 / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.007678, allocations: 20.06 kB / 384.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.669e-06/0.007687, allocations: 8 kB / 384.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.007846, allocations: 91.8 kB / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.009162, allocations: 0.7222 MB / 385.2 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.009402, allocations: 150.4 kB / 385.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.189e-05/0.009484, allocations: 51.66 kB / 385.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.009509, allocations: 4 kB / 385.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.009727, allocations: 184.8 kB / 385.6 MB, free: 10.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.009728, allocations: 0 / 385.6 MB, free: 10.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004098/0.01014, allocations: 266 kB / 385.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.01017, allocations: 59.41 kB / 385.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.01036, allocations: 302.3 kB / 386.2 MB, free: 10.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.01039, allocations: 37.7 kB / 386.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.51e-05/0.01049, allocations: 235.3 kB / 386.5 MB, free: 9.977 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.23e-05/0.01055, allocations: 99.22 kB / 386.6 MB, free: 9.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.943e-05/0.01063, allocations: 75.72 kB / 386.6 MB, free: 9.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.01076, allocations: 0.5079 MB / 387.2 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.667e-05/0.01084, allocations: 52.7 kB / 387.2 MB, free: 9.223 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.01099, allocations: 231.1 kB / 387.4 MB, free: 8.914 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.01124, allocations: 309.5 kB / 387.7 MB, free: 8.527 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.01125, allocations: 4 kB / 387.7 MB, free: 8.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003419/0.01159, allocations: 309 kB / 388 MB, free: 8.215 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.0116, allocations: 8 kB / 388 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01161, allocations: 4 kB / 388.1 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.01163, allocations: 11.94 kB / 388.1 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.01181, allocations: 75.89 kB / 388.1 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.01183, allocations: 11.94 kB / 388.1 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.282e-05/0.01192, allocations: 39.77 kB / 388.2 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.01194, allocations: 16.31 kB / 388.2 MB, free: 8.051 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.0001236/0.01206, allocations: 192.4 kB / 388.4 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.16e-05/0.0121, allocations: 43.8 kB / 388.4 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003264/0.01243, allocations: 236.4 kB / 388.7 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.01243, allocations: 7.938 kB / 388.7 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.01244, allocations: 0 / 388.7 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.01244, allocations: 0 / 388.7 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004698/0.01291, allocations: 0.5794 MB / 389.3 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.01291, allocations: 0 / 389.3 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.01304, allocations: 43.97 kB / 389.3 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.01305, allocations: 3.938 kB / 389.3 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.01306, allocations: 15.92 kB / 389.3 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01307, allocations: 0 / 389.3 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.01307, allocations: 4 kB / 389.3 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000401/0.01347, allocations: 439.7 kB / 389.7 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.658e-05/0.01349, allocations: 27.75 kB / 389.8 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.01353, allocations: 19.88 kB / 389.8 MB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.74e-05/0.0136, allocations: 15.98 kB / 389.8 MB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.01366, allocations: 23.95 kB / 389.8 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.01368, allocations: 11.98 kB / 389.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001081/0.01378, allocations: 215 kB / 390.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01378, allocations: 0 / 390.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002387/0.01402, allocations: 71.84 kB / 390.1 MB, free: 6.051 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 9.066e-05/0.01411, allocations: 119.3 kB / 390.2 MB, free: 5.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002654/0.01438, allocations: 183.3 kB / 390.4 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01438, allocations: 0 / 390.4 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.01449, allocations: 95.78 kB / 390.5 MB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.01473, allocations: 44.94 kB / 390.6 MB, free: 5.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008449/0.01558, allocations: 0.5894 MB / 391.1 MB, free: 4.977 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.113e-05/0.01564, allocations: 105.5 kB / 391.2 MB, free: 4.852 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.634e-05/0.01573, allocations: 42.95 kB / 391.3 MB, free: 4.809 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.01579, allocations: 32.48 kB / 391.3 MB, free: 4.777 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01579, allocations: 0 / 391.3 MB, free: 4.777 MB / 362.7 MB Notification: Performance of Templates: time 0.004884/0.02067, allocations: 2.772 MB / 394.1 MB, free: 2.043 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] 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","",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.181953749153763]