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.001855/0.001855, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002407/0.002407, allocations: 210.3 kB / 23.73 MB, free: 4.379 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.558/1.558, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.2485/0.2485, allocations: 46.96 MB / 360.9 MB, free: 4.062 MB / 286.1 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 0.002177/0.002177, allocations: 67.84 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3939, allocations: 66.04 MB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004057/0.3979, allocations: 2.174 MB / 0.5632 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.3999, allocations: 0.8618 MB / 0.564 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.4001, allocations: 11.94 kB / 0.5641 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002446/0.4004, allocations: 39.48 kB / 0.5641 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003666/0.4007, allocations: 63.39 kB / 0.5642 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.4014, allocations: 191.6 kB / 0.5643 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000608/0.402, allocations: 379 kB / 0.5647 GB, free: 480 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003777/0.4024, allocations: 112.5 kB / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000406/0.4028, allocations: 155.4 kB / 0.565 GB, free: 208 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003093/0.4031, allocations: 171.2 kB / 0.5651 GB, free: 36 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.695e-05/0.4032, allocations: 36 kB / 0.5651 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.4034, allocations: 48.05 kB / 0.5652 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.4035, allocations: 87.62 kB / 0.5653 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.4037, allocations: 139.2 kB / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006778/0.4043, allocations: 412.9 kB / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4044, allocations: 0 / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.4044, allocations: 0 / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.4044, allocations: 3.938 kB / 0.5658 GB, free: 15.33 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.001873/0.4062, allocations: 0.7384 MB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.086e-05/0.4063, allocations: 8.031 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000558/0.4069, allocations: 80.61 kB / 0.5666 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000622/0.4075, allocations: 295 kB / 0.5669 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.4075, allocations: 21.03 kB / 0.5669 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.079e-05/0.4076, allocations: 36.33 kB / 0.567 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/0.4082, allocations: 278 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.4082, allocations: 0 / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/0.4082, allocations: 15.98 kB / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.4082, allocations: 11.98 kB / 0.5672 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004523/0.4087, allocations: 190.5 kB / 0.5674 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.4103, allocations: 0.6643 MB / 0.5681 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.4108, allocations: 193.8 kB / 0.5683 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.411, allocations: 84.81 kB / 0.5683 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.4111, allocations: 4 kB / 0.5683 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005379/0.4116, allocations: 247.5 kB / 0.5686 GB, free: 12.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 4.067e-06/0.4116, allocations: 0 / 0.5686 GB, free: 12.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009478/0.4126, allocations: 369.3 kB / 0.5689 GB, free: 11.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.4126, allocations: 59.41 kB / 0.569 GB, free: 11.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.4129, allocations: 264.2 kB / 0.5692 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.413, allocations: 33.7 kB / 0.5693 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.4131, allocations: 192.7 kB / 0.5695 GB, free: 11.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.4132, allocations: 99.17 kB / 0.5695 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.4134, allocations: 74.06 kB / 0.5696 GB, free: 11.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.4135, allocations: 342.8 kB / 0.5699 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.4138, allocations: 96.69 kB / 0.57 GB, free: 10.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003384/0.4141, allocations: 222.5 kB / 0.5703 GB, free: 10.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.4147, allocations: 340.9 kB / 0.5706 GB, free: 10.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.4147, allocations: 7.938 kB / 0.5706 GB, free: 10.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000713/0.4154, allocations: 389.1 kB / 0.571 GB, free: 9.742 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.4154, allocations: 11.98 kB / 0.571 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.4154, allocations: 4 kB / 0.571 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/0.4155, allocations: 8 kB / 0.571 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/0.4158, allocations: 67.91 kB / 0.571 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/0.4158, allocations: 15.92 kB / 0.5711 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.416, allocations: 35.78 kB / 0.5711 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.4161, allocations: 23.98 kB / 0.5711 GB, free: 9.578 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.000238/0.4163, allocations: 161.8 kB / 0.5713 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.4164, allocations: 35.75 kB / 0.5713 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000729/0.4171, allocations: 320.3 kB / 0.5716 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4171, allocations: 4 kB / 0.5716 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4171, allocations: 0 / 0.5716 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.4171, allocations: 7.984 kB / 0.5716 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.4181, allocations: 0.6111 MB / 0.5722 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.4181, allocations: 0 / 0.5722 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.4184, allocations: 47.97 kB / 0.5723 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.4184, allocations: 3.938 kB / 0.5723 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.23e-05/0.4184, allocations: 11.98 kB / 0.5723 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.4184, allocations: 4 kB / 0.5723 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4184, allocations: 0 / 0.5723 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009935/0.4194, allocations: 0.5349 MB / 0.5728 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.4195, allocations: 31.89 kB / 0.5728 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.31e-05/0.4195, allocations: 8.047 kB / 0.5728 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/0.4197, allocations: 15.98 kB / 0.5729 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.417e-05/0.4198, allocations: 23.95 kB / 0.5729 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.4198, allocations: 15.98 kB / 0.5729 GB, free: 7.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.4201, allocations: 191.1 kB / 0.5731 GB, free: 7.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4201, allocations: 0 / 0.5731 GB, free: 7.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004031/0.4205, allocations: 75.84 kB / 0.5732 GB, free: 7.418 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.0001646/0.4206, allocations: 115.2 kB / 0.5733 GB, free: 7.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005875/0.4212, allocations: 252.2 kB / 0.5735 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4212, allocations: 4.312 kB / 0.5735 GB, free: 7.047 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002564/0.4215, allocations: 111.9 kB / 0.5736 GB, free: 6.938 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.4219, allocations: 49.25 kB / 0.5737 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.4231, allocations: 0.6333 MB / 0.5743 GB, free: 6.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.4233, allocations: 185.9 kB / 0.5745 GB, free: 6.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.4235, allocations: 43.23 kB / 0.5745 GB, free: 5.984 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.195e-05/0.4236, allocations: 35.42 kB / 0.5745 GB, free: 5.949 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4236, allocations: 0 / 0.5745 GB, free: 5.949 MB / 414.1 MB Notification: Performance of Templates: time 0.007829/0.4314, allocations: 3.094 MB / 0.5776 GB, free: 2.891 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 -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.522422463167459]