Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001832/0.001832, allocations: 112.4 kB / 21.17 MB, free: 0.6172 MB / 14.72 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.001989/0.001989, allocations: 205.6 kB / 24.46 MB, free: 4.023 MB / 14.72 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.449/1.449, allocations: 230.2 MB / 257.8 MB, free: 8.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2187/0.2187, allocations: 46.91 MB / 361.1 MB, free: 4.613 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002447/0.002447, allocations: 75.88 kB / 0.4968 GB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2828, allocations: 65.99 MB / 0.5612 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003939/0.2867, allocations: 2.322 MB / 0.5635 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.2886, allocations: 0.9202 MB / 0.5644 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.2888, allocations: 7.938 kB / 0.5644 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.2889, allocations: 35.55 kB / 0.5644 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.2892, allocations: 63.39 kB / 0.5645 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.2897, allocations: 191.6 kB / 0.5646 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000495/0.2902, allocations: 386.9 kB / 0.565 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.2904, allocations: 100 kB / 0.5651 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/0.2907, allocations: 159.3 kB / 0.5653 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.291, allocations: 163.2 kB / 0.5654 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.978e-05/0.291, allocations: 39.94 kB / 0.5655 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.2911, allocations: 48 kB / 0.5655 GB, free: 0.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.2913, allocations: 87.67 kB / 0.5656 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.2915, allocations: 171 kB / 0.5657 GB, free: 336 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005511/0.292, allocations: 413.3 kB / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.292, allocations: 0 / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.292, allocations: 3.938 kB / 0.5661 GB, free: 15.92 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.292, allocations: 0 / 0.5661 GB, free: 15.92 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.001454/0.2935, allocations: 0.8058 MB / 0.5669 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.2935, allocations: 8.031 kB / 0.5669 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005044/0.294, allocations: 80.61 kB / 0.567 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006305/0.2946, allocations: 364.1 kB / 0.5674 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/0.2947, allocations: 24.92 kB / 0.5674 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/0.2948, allocations: 44.31 kB / 0.5674 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.2953, allocations: 268.9 kB / 0.5677 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.2953, allocations: 4 kB / 0.5677 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.2954, allocations: 15.98 kB / 0.5677 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2954, allocations: 4 kB / 0.5677 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000461/0.2959, allocations: 194.1 kB / 0.5679 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.2974, allocations: 0.819 MB / 0.5687 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004512/0.2978, allocations: 190.8 kB / 0.5689 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.298, allocations: 88.81 kB / 0.569 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.2981, allocations: 11.92 kB / 0.569 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.2985, allocations: 235.1 kB / 0.5692 GB, free: 12.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.863e-06/0.2985, allocations: 0 / 0.5692 GB, free: 12.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008826/0.2994, allocations: 373.8 kB / 0.5696 GB, free: 12.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.2995, allocations: 59.41 kB / 0.5696 GB, free: 12.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.2997, allocations: 263 kB / 0.5699 GB, free: 11.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.2998, allocations: 45.69 kB / 0.5699 GB, free: 11.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.2999, allocations: 180.7 kB / 0.5701 GB, free: 11.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.777e-05/0.3, allocations: 107.1 kB / 0.5702 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.3001, allocations: 70.06 kB / 0.5702 GB, free: 11.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3003, allocations: 346.8 kB / 0.5706 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.3005, allocations: 84.7 kB / 0.5707 GB, free: 11.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.3009, allocations: 231.1 kB / 0.5709 GB, free: 10.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005802/0.3015, allocations: 352.7 kB / 0.5712 GB, free: 10.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3015, allocations: 0 / 0.5712 GB, free: 10.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007313/0.3022, allocations: 388.9 kB / 0.5716 GB, free: 9.977 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3022, allocations: 4 kB / 0.5716 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.3022, allocations: 8 kB / 0.5716 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3022, allocations: 4 kB / 0.5716 GB, free: 9.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.3026, allocations: 79.83 kB / 0.5717 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3026, allocations: 8 kB / 0.5717 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.3028, allocations: 36.02 kB / 0.5717 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.3028, allocations: 20 kB / 0.5717 GB, free: 9.82 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.0001937/0.303, allocations: 165.7 kB / 0.5719 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.303, allocations: 35.75 kB / 0.5719 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006945/0.3037, allocations: 320.3 kB / 0.5722 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3037, allocations: 4 kB / 0.5722 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3037, allocations: 0 / 0.5722 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3038, allocations: 144 / 0.5722 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.3048, allocations: 0.7245 MB / 0.5729 GB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3048, allocations: 3.984 kB / 0.5729 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.3051, allocations: 51.91 kB / 0.573 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3051, allocations: 4 kB / 0.573 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.3051, allocations: 11.98 kB / 0.573 GB, free: 8.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.3051, allocations: 4 kB / 0.573 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3051, allocations: 0 / 0.573 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009364/0.306, allocations: 0.5302 MB / 0.5735 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.04e-05/0.3061, allocations: 108.9 kB / 0.5736 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.863e-05/0.3062, allocations: 12 kB / 0.5737 GB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.3064, allocations: 11.98 kB / 0.5737 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.3064, allocations: 23.97 kB / 0.5737 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.3065, allocations: 15.98 kB / 0.5737 GB, free: 7.695 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001908/0.3067, allocations: 186 kB / 0.5739 GB, free: 7.516 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3067, allocations: 0 / 0.5739 GB, free: 7.516 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.307, allocations: 75.78 kB / 0.574 GB, free: 7.441 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.0001546/0.3072, allocations: 120.2 kB / 0.5741 GB, free: 7.312 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005707/0.3077, allocations: 255.5 kB / 0.5743 GB, free: 7.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3078, allocations: 0.9375 kB / 0.5743 GB, free: 7.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.308, allocations: 119.8 kB / 0.5744 GB, free: 6.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.3084, allocations: 45 kB / 0.5745 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.3095, allocations: 0.6248 MB / 0.5751 GB, free: 6.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.3099, allocations: 0.7959 MB / 0.5759 GB, free: 5.422 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.3101, allocations: 43.23 kB / 0.5759 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.983e-05/0.3102, allocations: 31.42 kB / 0.5759 GB, free: 5.348 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3102, allocations: 0 / 0.5759 GB, free: 5.348 MB / 414.1 MB Notification: Performance of Templates: time 0.007063/0.3172, allocations: 2.854 MB / 0.5787 GB, free: 2.504 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 4.962559508159757]