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.001506/0.001506, allocations: 109.1 kB / 21.84 MB, free: 88 kB / 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.00169/0.00169, allocations: 218 kB / 25.13 MB, free: 3.609 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.389/1.389, allocations: 230.4 MB / 258.7 MB, free: 8.047 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.2145/0.2145, allocations: 46.94 MB / 362.1 MB, free: 4.309 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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",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.002328/0.002328, allocations: 83.86 kB / 0.4978 GB, free: 7.398 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.269, allocations: 66.07 MB / 0.5623 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00351/0.2725, allocations: 2.334 MB / 0.5646 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.274, allocations: 0.9201 MB / 0.5655 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2742, allocations: 7.938 kB / 0.5655 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.2743, allocations: 39.53 kB / 0.5655 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.2745, allocations: 67.33 kB / 0.5656 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003809/0.2749, allocations: 187.7 kB / 0.5658 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.2753, allocations: 390.9 kB / 0.5662 GB, free: 324 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.2755, allocations: 100.6 kB / 0.5663 GB, free: 220 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.2758, allocations: 155.4 kB / 0.5664 GB, free: 64 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002321/0.276, allocations: 167.2 kB / 0.5666 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.13e-05/0.2761, allocations: 36 kB / 0.5666 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.643e-05/0.2762, allocations: 48 kB / 0.5666 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.69e-05/0.2762, allocations: 91.67 kB / 0.5667 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.2764, allocations: 175 kB / 0.5669 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.2769, allocations: 417 kB / 0.5673 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2769, allocations: 0 / 0.5673 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2769, allocations: 0 / 0.5673 GB, free: 15.15 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2769, allocations: 0 / 0.5673 GB, free: 15.15 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.0012/0.2781, allocations: 0.7305 MB / 0.568 GB, free: 14.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.2781, allocations: 8.031 kB / 0.568 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004454/0.2786, allocations: 80.61 kB / 0.5681 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.2791, allocations: 299 kB / 0.5684 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.2792, allocations: 33.02 kB / 0.5684 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.2792, allocations: 32.33 kB / 0.5684 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.2797, allocations: 274.2 kB / 0.5687 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.2798, allocations: 0 / 0.5687 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.2798, allocations: 12 kB / 0.5687 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2798, allocations: 8 kB / 0.5687 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.2802, allocations: 190.4 kB / 0.5689 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.2816, allocations: 0.7885 MB / 0.5697 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004308/0.2821, allocations: 190.8 kB / 0.5699 GB, free: 12.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/0.2823, allocations: 89.69 kB / 0.5699 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.2823, allocations: 7.922 kB / 0.5699 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.2827, allocations: 235.1 kB / 0.5702 GB, free: 12.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 3.587e-06/0.2827, allocations: 3.984 kB / 0.5702 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008509/0.2836, allocations: 377.3 kB / 0.5705 GB, free: 11.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.2836, allocations: 59.41 kB / 0.5706 GB, free: 11.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.2839, allocations: 268.2 kB / 0.5708 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.284, allocations: 37.7 kB / 0.5709 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.2841, allocations: 180.7 kB / 0.5711 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.2842, allocations: 103.2 kB / 0.5712 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.2843, allocations: 70.06 kB / 0.5712 GB, free: 10.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2845, allocations: 354.8 kB / 0.5716 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.2847, allocations: 88.69 kB / 0.5716 GB, free: 10.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.285, allocations: 222.6 kB / 0.5719 GB, free: 10.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005599/0.2856, allocations: 340.9 kB / 0.5722 GB, free: 9.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2856, allocations: 0 / 0.5722 GB, free: 9.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007089/0.2863, allocations: 388.8 kB / 0.5726 GB, free: 9.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2863, allocations: 4 kB / 0.5726 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2863, allocations: 8.469 kB / 0.5726 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2863, allocations: 8 kB / 0.5726 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.2866, allocations: 79.83 kB / 0.5726 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.2867, allocations: 8 kB / 0.5727 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.2868, allocations: 35.77 kB / 0.5727 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.2869, allocations: 16 kB / 0.5727 GB, free: 9.281 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.0001808/0.287, allocations: 169.6 kB / 0.5729 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.2871, allocations: 31.75 kB / 0.5729 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006781/0.2878, allocations: 328.4 kB / 0.5732 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.2878, allocations: 4 kB / 0.5732 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2878, allocations: 0 / 0.5732 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2878, allocations: 144 / 0.5732 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.2888, allocations: 0.7041 MB / 0.5739 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2888, allocations: 0 / 0.5739 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.2891, allocations: 48 kB / 0.5739 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2891, allocations: 3.938 kB / 0.5739 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.2891, allocations: 11.98 kB / 0.574 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.2891, allocations: 4 kB / 0.574 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2891, allocations: 0 / 0.574 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009166/0.29, allocations: 0.5311 MB / 0.5745 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.29, allocations: 27.75 kB / 0.5745 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.2901, allocations: 12.06 kB / 0.5745 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.2903, allocations: 15.98 kB / 0.5745 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.341e-05/0.2903, allocations: 31.83 kB / 0.5746 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.2904, allocations: 11.98 kB / 0.5746 GB, free: 7.273 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.2906, allocations: 195.1 kB / 0.5748 GB, free: 7.082 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2906, allocations: 0 / 0.5748 GB, free: 7.082 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000351/0.2909, allocations: 67.84 kB / 0.5748 GB, free: 7.016 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.0001235/0.291, allocations: 111.2 kB / 0.5749 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005447/0.2916, allocations: 255.9 kB / 0.5752 GB, free: 6.648 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2916, allocations: 4 kB / 0.5752 GB, free: 6.645 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002459/0.2918, allocations: 115.8 kB / 0.5753 GB, free: 6.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.2922, allocations: 37.42 kB / 0.5753 GB, free: 6.496 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.2932, allocations: 0.6339 MB / 0.5759 GB, free: 5.836 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.2937, allocations: 0.792 MB / 0.5767 GB, free: 5.012 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.2938, allocations: 47.22 kB / 0.5768 GB, free: 4.965 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.579e-05/0.2939, allocations: 35.42 kB / 0.5768 GB, free: 4.93 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2939, allocations: 0 / 0.5768 GB, free: 4.93 MB / 414.1 MB Notification: Performance of Templates: time 0.006905/0.3008, allocations: 2.924 MB / 0.5797 GB, free: 2.012 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.6779266151133925]