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.001476/0.001476, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001578/0.001578, allocations: 174.3 kB / 24.91 MB, free: 8.766 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 1.056/1.056, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.2728/0.2728, allocations: 34.27 MB / 296.1 MB, free: 0.7305 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.412e-06/1.412e-06, allocations: 0 / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/2.899e-05, allocations: 3.188 kB / 325.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003092/0.003121, allocations: 2.255 MB / 327.5 MB, free: 5.445 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.004613, allocations: 0.9115 MB / 328.4 MB, free: 4.527 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.00478, allocations: 7.938 kB / 328.4 MB, free: 4.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.004927, allocations: 39.47 kB / 328.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.005139, allocations: 67.34 kB / 328.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.005605, allocations: 199.5 kB / 328.7 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.005961, allocations: 390.8 kB / 329.1 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.006144, allocations: 95.39 kB / 329.2 MB, free: 3.742 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002742/0.006418, allocations: 223.5 kB / 329.4 MB, free: 3.523 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004653/0.006883, allocations: 123.6 kB / 329.5 MB, free: 3.402 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.487e-05/0.006938, allocations: 36 kB / 329.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.833e-05/0.007036, allocations: 51.92 kB / 329.6 MB, free: 3.316 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.007107, allocations: 95.59 kB / 329.7 MB, free: 3.223 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.552e-05/0.007203, allocations: 108.3 kB / 329.8 MB, free: 3.117 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.007539, allocations: 278.9 kB / 330.1 MB, free: 2.844 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.007541, allocations: 0 / 330.1 MB, free: 2.844 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.007542, allocations: 0 / 330.1 MB, free: 2.844 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.00755, allocations: 4 kB / 330.1 MB, free: 2.84 MB / 298.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.0007572/0.008307, allocations: 0.5624 MB / 330.6 MB, free: 2.254 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.008349, allocations: 8.031 kB / 330.6 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/0.008673, allocations: 96.77 kB / 330.7 MB, free: 2.152 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.008962, allocations: 237.7 kB / 331 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.008989, allocations: 33.03 kB / 331 MB, free: 1.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.009031, allocations: 28.38 kB / 331 MB, free: 1.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.009284, allocations: 199.2 kB / 331.2 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.009297, allocations: 192 / 331.2 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.009318, allocations: 16.12 kB / 331.2 MB, free: 1.617 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.009332, allocations: 8 kB / 331.3 MB, free: 1.609 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.009435, allocations: 64.53 kB / 331.3 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007387/0.01017, allocations: 0.4996 MB / 331.8 MB, free: 1.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.01036, allocations: 116.8 kB / 331.9 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.79e-05/0.01042, allocations: 36.84 kB / 332 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.01045, allocations: 7.984 kB / 332 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.01066, allocations: 171.1 kB / 332.1 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.184e-06/0.01066, allocations: 0 / 332.1 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002412/0.0109, allocations: 166.9 kB / 332.3 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.01095, allocations: 67.28 kB / 332.4 MB, free: 440 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.0111, allocations: 243 kB / 332.6 MB, free: 184 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.01113, allocations: 37.7 kB / 332.6 MB, free: 140 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.01122, allocations: 169.1 kB / 332.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.01128, allocations: 103.1 kB / 332.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-05/0.01136, allocations: 74.02 kB / 333 MB, free: 15.78 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.966e-05/0.01146, allocations: 342.8 kB / 333.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.227e-05/0.0115, allocations: 32.72 kB / 333.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.0116, allocations: 162.6 kB / 333.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.01179, allocations: 256.5 kB / 333.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.0118, allocations: 0 / 333.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002559/0.01205, allocations: 226.3 kB / 334 MB, free: 14.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.01207, allocations: 11.98 kB / 334 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.01208, allocations: 4 kB / 334 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.01209, allocations: 4 kB / 334 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.01226, allocations: 80.31 kB / 334.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.01227, allocations: 23.86 kB / 334.1 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.496e-05/0.01236, allocations: 23.84 kB / 334.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.01237, allocations: 16 kB / 334.1 MB, free: 14.49 MB / 314.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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.000117/0.01249, allocations: 144.5 kB / 334.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.01252, allocations: 27.97 kB / 334.3 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002447/0.01276, allocations: 171.8 kB / 334.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.01277, allocations: 8 kB / 334.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01277, allocations: 7.875 kB / 334.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.01278, allocations: 3.984 kB / 334.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.01314, allocations: 387.3 kB / 334.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.01314, allocations: 0 / 334.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.01326, allocations: 47.91 kB / 334.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.01327, allocations: 4 kB / 334.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.01329, allocations: 7.984 kB / 334.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.0133, allocations: 4 kB / 334.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.0133, allocations: 3.938 kB / 334.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.0136, allocations: 314.2 kB / 335.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.01363, allocations: 27.75 kB / 335.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.957e-05/0.01365, allocations: 8 kB / 335.3 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.339e-05/0.01373, allocations: 11.98 kB / 335.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.01378, allocations: 27.89 kB / 335.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.01379, allocations: 11.98 kB / 335.3 MB, free: 13.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.688e-05/0.01386, allocations: 88.64 kB / 335.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01386, allocations: 0 / 335.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002215/0.01408, allocations: 67.84 kB / 335.5 MB, free: 13.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.0001133/0.01419, allocations: 104.9 kB / 335.6 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.01439, allocations: 140.6 kB / 335.7 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.01439, allocations: 7.938 kB / 335.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.226e-05/0.01447, allocations: 80.95 kB / 335.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.0147, allocations: 42.5 kB / 335.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008109/0.01551, allocations: 0.5939 MB / 336.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.01592, allocations: 101.5 kB / 336.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.107e-05/0.01601, allocations: 34.97 kB / 336.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.01612, allocations: 107.3 kB / 336.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01612, allocations: 0 / 336.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of Templates: time 0.005147/0.02127, allocations: 2.926 MB / 339.6 MB, free: 8.953 MB / 314.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.206662358250469]