Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001452/0.001452, allocations: 84.34 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 166.8 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.007/1.007, allocations: 177 MB / 205.9 MB, free: 4.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1706/0.1706, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0 / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.359e-05/3.584e-05, allocations: 5.922 kB / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004155/0.004191, allocations: 2.247 MB / 382.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.005977, allocations: 0.8839 MB / 383.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000247/0.006224, allocations: 11.94 kB / 383.1 MB, free: 19.6 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.006398, allocations: 31.55 kB / 383.2 MB, free: 19.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.006691, allocations: 79.19 kB / 383.2 MB, free: 19.49 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005227/0.007213, allocations: 183.5 kB / 383.4 MB, free: 19.31 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000512/0.007725, allocations: 390.9 kB / 383.8 MB, free: 18.93 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.007942, allocations: 92.83 kB / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/0.0083, allocations: 239.3 kB / 384.1 MB, free: 18.6 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.008476, allocations: 115.6 kB / 384.2 MB, free: 18.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.008517, allocations: 36 kB / 384.3 MB, free: 18.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.607e-05/0.008603, allocations: 51.98 kB / 384.3 MB, free: 18.4 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.953e-05/0.008662, allocations: 87.66 kB / 384.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.898e-05/0.008741, allocations: 111.7 kB / 384.5 MB, free: 18.21 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.009035, allocations: 286.8 kB / 384.8 MB, free: 17.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.009039, allocations: 0 / 384.8 MB, free: 17.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.00904, allocations: 4 kB / 384.8 MB, free: 17.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.009046, allocations: 0 / 384.8 MB, free: 17.92 MB / 314.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.000866/0.009912, allocations: 0.8402 MB / 385.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.009957, allocations: 15.97 kB / 385.7 MB, free: 17.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.01027, allocations: 96.56 kB / 385.8 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.01063, allocations: 288.5 kB / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.01066, allocations: 25.03 kB / 386.1 MB, free: 16.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.899e-05/0.0107, allocations: 36.36 kB / 386.1 MB, free: 16.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.01092, allocations: 191.3 kB / 386.3 MB, free: 16.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.01093, allocations: 8.125 kB / 386.3 MB, free: 16.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.01095, allocations: 16.12 kB / 386.3 MB, free: 16.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.01096, allocations: 8 kB / 386.3 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.371e-05/0.01105, allocations: 72.52 kB / 386.4 MB, free: 16.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007312/0.01178, allocations: 0.6641 MB / 387.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.01198, allocations: 143.3 kB / 387.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.399e-05/0.01203, allocations: 48.31 kB / 387.2 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.01206, allocations: 7.938 kB / 387.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.01225, allocations: 176.8 kB / 387.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.01226, allocations: 0 / 387.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003197/0.01258, allocations: 234.2 kB / 387.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.01261, allocations: 71.28 kB / 387.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.01274, allocations: 298.2 kB / 388 MB, free: 14.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.01276, allocations: 37.69 kB / 388 MB, free: 14.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.01283, allocations: 235.4 kB / 388.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.0129, allocations: 103.1 kB / 388.4 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.013, allocations: 79.69 kB / 388.5 MB, free: 14.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.0131, allocations: 0.5195 MB / 389 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.856e-05/0.01318, allocations: 28.72 kB / 389 MB, free: 13.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.0133, allocations: 223.2 kB / 389.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.0135, allocations: 301.3 kB / 389.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.0135, allocations: 0 / 389.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002838/0.01379, allocations: 281.3 kB / 389.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.01381, allocations: 12.03 kB / 389.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.01382, allocations: 4 kB / 389.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.01384, allocations: 8 kB / 389.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.01403, allocations: 75.83 kB / 389.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.01404, allocations: 15.92 kB / 389.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.835e-05/0.01414, allocations: 39.77 kB / 389.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.01416, allocations: 16 kB / 390 MB, free: 12.37 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.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 8.935e-05/0.01425, allocations: 180.6 kB / 390.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.01428, allocations: 43.73 kB / 390.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.01456, allocations: 233.2 kB / 390.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.01456, allocations: 4 kB / 390.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.01456, allocations: 3.938 kB / 390.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.01457, allocations: 0 / 390.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.01494, allocations: 0.5145 MB / 390.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01494, allocations: 3.938 kB / 390.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.01508, allocations: 47.97 kB / 391 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.01508, allocations: 4 kB / 391 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.01511, allocations: 11.98 kB / 391 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.01511, allocations: 7.938 kB / 391 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01511, allocations: 4 kB / 391 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.01542, allocations: 423.9 kB / 391.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.43e-05/0.01545, allocations: 31.75 kB / 391.5 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.01548, allocations: 11.98 kB / 391.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.9e-05/0.01556, allocations: 11.94 kB / 391.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/0.01561, allocations: 23.95 kB / 391.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.01562, allocations: 11.98 kB / 391.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.731e-05/0.01569, allocations: 207 kB / 391.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01569, allocations: 0 / 391.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003495/0.01604, allocations: 71.84 kB / 391.8 MB, free: 10.48 MB / 314.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.000146/0.01618, allocations: 114.1 kB / 391.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.01641, allocations: 164.9 kB / 392.1 MB, free: 10.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.01641, allocations: 4.062 kB / 392.1 MB, free: 10.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.432e-05/0.01649, allocations: 83.56 kB / 392.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.01676, allocations: 44.95 kB / 392.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007742/0.01753, allocations: 0.5826 MB / 392.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.756e-05/0.01758, allocations: 97.53 kB / 392.9 MB, free: 9.328 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.575e-05/0.01767, allocations: 43.23 kB / 392.9 MB, free: 9.289 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.01777, allocations: 122.2 kB / 393 MB, free: 9.168 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01777, allocations: 0 / 393 MB, free: 9.168 MB / 314.7 MB Notification: Performance of Templates: time 0.005571/0.02335, allocations: 3.079 MB / 396.1 MB, free: 6.145 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.397235888056457]