Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001942/0.001942, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001489/0.001489, allocations: 214.2 kB / 24.48 MB, free: 3.84 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.506/1.506, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2284/0.2284, allocations: 44.94 MB / 359.6 MB, free: 6.07 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 70.41 kB / 0.4942 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3769, allocations: 65.47 MB / 0.5582 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004101/0.381, allocations: 2.183 MB / 0.5603 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.3827, allocations: 0.8541 MB / 0.5611 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.3829, allocations: 7.938 kB / 0.5612 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.383, allocations: 39.53 kB / 0.5612 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.3833, allocations: 71.31 kB / 0.5613 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.3837, allocations: 187.7 kB / 0.5614 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000432/0.3841, allocations: 390.9 kB / 0.5618 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.3844, allocations: 92.58 kB / 0.5619 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.3846, allocations: 159.3 kB / 0.562 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.3849, allocations: 143.2 kB / 0.5622 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-05/0.385, allocations: 40 kB / 0.5622 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.3851, allocations: 47.98 kB / 0.5623 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.3852, allocations: 91.64 kB / 0.5624 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.3854, allocations: 139.2 kB / 0.5625 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005314/0.3859, allocations: 416.8 kB / 0.5629 GB, free: 2.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3859, allocations: 4 kB / 0.5629 GB, free: 2.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3859, allocations: 0 / 0.5629 GB, free: 2.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3859, allocations: 0 / 0.5629 GB, free: 2.633 MB / 398.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.001455/0.3874, allocations: 0.7306 MB / 0.5636 GB, free: 1.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3874, allocations: 8.031 kB / 0.5636 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004747/0.3879, allocations: 84.61 kB / 0.5637 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006513/0.3885, allocations: 291 kB / 0.564 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.3886, allocations: 33.02 kB / 0.564 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.465e-05/0.3886, allocations: 32.33 kB / 0.564 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005464/0.3892, allocations: 278.2 kB / 0.5643 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3892, allocations: 0 / 0.5643 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.3892, allocations: 12 kB / 0.5643 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3892, allocations: 8 kB / 0.5643 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.3897, allocations: 186.5 kB / 0.5645 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.3911, allocations: 0.676 MB / 0.5652 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/0.3915, allocations: 182.9 kB / 0.5653 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.3917, allocations: 88.83 kB / 0.5654 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.3918, allocations: 4 kB / 0.5654 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004799/0.3922, allocations: 235.6 kB / 0.5656 GB, free: 15.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.913e-06/0.3922, allocations: 0 / 0.5656 GB, free: 15.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008864/0.3931, allocations: 377.3 kB / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.3932, allocations: 63.34 kB / 0.5661 GB, free: 15.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.3935, allocations: 260.2 kB / 0.5663 GB, free: 14.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.3935, allocations: 41.69 kB / 0.5664 GB, free: 14.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.3937, allocations: 180.7 kB / 0.5665 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.736e-05/0.3938, allocations: 107 kB / 0.5666 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.3939, allocations: 70.06 kB / 0.5667 GB, free: 14.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.3941, allocations: 350.8 kB / 0.567 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.3943, allocations: 84.7 kB / 0.5671 GB, free: 14.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.3946, allocations: 226.6 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006441/0.3952, allocations: 352.7 kB / 0.5677 GB, free: 13.44 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.3952, allocations: 4 kB / 0.5677 GB, free: 13.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007031/0.3959, allocations: 376.8 kB / 0.568 GB, free: 13.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.396, allocations: 11.94 kB / 0.568 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.396, allocations: 7.984 kB / 0.568 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.396, allocations: 4 kB / 0.568 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.3963, allocations: 80.3 kB / 0.5681 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.3963, allocations: 12 kB / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.3965, allocations: 35.77 kB / 0.5682 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.3965, allocations: 16 kB / 0.5682 GB, free: 12.89 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.0002211/0.3967, allocations: 174.7 kB / 0.5684 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.3968, allocations: 35.75 kB / 0.5684 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007052/0.3975, allocations: 328.3 kB / 0.5687 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3975, allocations: 4 kB / 0.5687 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3975, allocations: 0 / 0.5687 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3975, allocations: 0 / 0.5687 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009582/0.3985, allocations: 0.6111 MB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3985, allocations: 0 / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.3987, allocations: 51.89 kB / 0.5693 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3987, allocations: 0 / 0.5693 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.3988, allocations: 16 kB / 0.5694 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3988, allocations: 0 / 0.5694 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3988, allocations: 7.984 kB / 0.5694 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3998, allocations: 0.5194 MB / 0.5699 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.335e-05/0.3998, allocations: 35.8 kB / 0.5699 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.56e-05/0.3999, allocations: 8 kB / 0.5699 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.4, allocations: 15.98 kB / 0.5699 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.4001, allocations: 27.95 kB / 0.57 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.4002, allocations: 15.98 kB / 0.57 GB, free: 10.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.4004, allocations: 187 kB / 0.5702 GB, free: 10.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4004, allocations: 96 / 0.5702 GB, free: 10.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.4008, allocations: 79.77 kB / 0.5702 GB, free: 10.72 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.0001413/0.4009, allocations: 113 kB / 0.5703 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005776/0.4015, allocations: 251.6 kB / 0.5706 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4015, allocations: 0 / 0.5706 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.4018, allocations: 123.8 kB / 0.5707 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.4022, allocations: 51.8 kB / 0.5707 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.4034, allocations: 0.6593 MB / 0.5714 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.4036, allocations: 185.9 kB / 0.5716 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.4037, allocations: 39.42 kB / 0.5716 GB, free: 9.258 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4037, allocations: 0 / 0.5716 GB, free: 9.258 MB / 414.1 MB Notification: Performance of Templates: time 0.007364/0.4111, allocations: 4.043 MB / 0.5756 GB, free: 5.223 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.05137291830033]