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.001458/0.001458, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001908/0.001908, allocations: 215.4 kB / 23.73 MB, free: 4.406 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.563/1.563, allocations: 230.5 MB / 257.4 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2688/0.2688, allocations: 46.95 MB / 360.8 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002556/0.002556, allocations: 75.88 kB / 0.4966 GB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5029/0.5055, allocations: 66.08 MB / 0.5612 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00418/0.5096, allocations: 2.174 MB / 0.5633 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.5116, allocations: 0.8657 MB / 0.5641 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.5118, allocations: 7.938 kB / 0.5641 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.512, allocations: 39.47 kB / 0.5642 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002649/0.5122, allocations: 67.39 kB / 0.5642 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004956/0.5127, allocations: 187.6 kB / 0.5644 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005028/0.5132, allocations: 387 kB / 0.5648 GB, free: 224 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.5135, allocations: 92.56 kB / 0.5649 GB, free: 128 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003191/0.5138, allocations: 163.4 kB / 0.565 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.5141, allocations: 151.1 kB / 0.5652 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.5142, allocations: 36 kB / 0.5652 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.5143, allocations: 44 kB / 0.5653 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.5144, allocations: 95.67 kB / 0.5653 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.5145, allocations: 131.3 kB / 0.5655 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005745/0.5151, allocations: 416.8 kB / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.5151, allocations: 0 / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5151, allocations: 0 / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.5151, allocations: 4 kB / 0.5659 GB, free: 15.11 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.001441/0.5166, allocations: 0.7267 MB / 0.5666 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.5166, allocations: 12.03 kB / 0.5666 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004578/0.5171, allocations: 80.61 kB / 0.5667 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005807/0.5177, allocations: 295 kB / 0.567 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.5177, allocations: 25.03 kB / 0.567 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.452e-05/0.5178, allocations: 44.25 kB / 0.567 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000553/0.5183, allocations: 270.2 kB / 0.5673 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.5183, allocations: 7.875 kB / 0.5673 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.5184, allocations: 15.98 kB / 0.5673 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.5184, allocations: 4 kB / 0.5673 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.5188, allocations: 198.5 kB / 0.5675 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.5202, allocations: 0.6643 MB / 0.5681 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/0.5206, allocations: 182.8 kB / 0.5683 GB, free: 12.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.5209, allocations: 92.81 kB / 0.5684 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.5209, allocations: 7.984 kB / 0.5684 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000458/0.5214, allocations: 231.1 kB / 0.5686 GB, free: 12.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.5214, allocations: 0 / 0.5686 GB, free: 12.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008851/0.5222, allocations: 377.3 kB / 0.569 GB, free: 11.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.5223, allocations: 59.39 kB / 0.5691 GB, free: 11.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003486/0.5227, allocations: 264.2 kB / 0.5693 GB, free: 11.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.5227, allocations: 37.7 kB / 0.5693 GB, free: 11.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.5229, allocations: 192.6 kB / 0.5695 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.523, allocations: 99.19 kB / 0.5696 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.5231, allocations: 70.06 kB / 0.5697 GB, free: 11.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.5233, allocations: 350.8 kB / 0.57 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.5235, allocations: 88.7 kB / 0.5701 GB, free: 10.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003875/0.5239, allocations: 226.5 kB / 0.5703 GB, free: 10.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005733/0.5245, allocations: 336.9 kB / 0.5706 GB, free: 9.918 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5245, allocations: 0 / 0.5706 GB, free: 9.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007261/0.5252, allocations: 393.2 kB / 0.571 GB, free: 9.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.5252, allocations: 6.031 kB / 0.571 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.5253, allocations: 7.984 kB / 0.571 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.5253, allocations: 8 kB / 0.571 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.5256, allocations: 79.83 kB / 0.5711 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.5256, allocations: 7.938 kB / 0.5711 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.5258, allocations: 39.77 kB / 0.5712 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.5258, allocations: 16 kB / 0.5712 GB, free: 9.367 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.0002389/0.5261, allocations: 173.8 kB / 0.5713 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.55e-05/0.5261, allocations: 31.75 kB / 0.5714 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007296/0.5269, allocations: 324.3 kB / 0.5717 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.5269, allocations: 4 kB / 0.5717 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5269, allocations: 0 / 0.5717 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.5269, allocations: 7.984 kB / 0.5717 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009926/0.5279, allocations: 0.6111 MB / 0.5723 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5279, allocations: 0 / 0.5723 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.5281, allocations: 51.91 kB / 0.5723 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.5281, allocations: 0 / 0.5723 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.5282, allocations: 11.98 kB / 0.5723 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.5282, allocations: 0 / 0.5723 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5282, allocations: 3.938 kB / 0.5724 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009186/0.5291, allocations: 0.5349 MB / 0.5729 GB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.5291, allocations: 31.81 kB / 0.5729 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.3e-05/0.5292, allocations: 11.98 kB / 0.5729 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.5294, allocations: 11.98 kB / 0.5729 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/0.5295, allocations: 23.97 kB / 0.573 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.5295, allocations: 20.11 kB / 0.573 GB, free: 7.453 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.5297, allocations: 187.1 kB / 0.5731 GB, free: 7.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5297, allocations: 0 / 0.5731 GB, free: 7.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004108/0.5301, allocations: 75.84 kB / 0.5732 GB, free: 7.195 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.0001581/0.5303, allocations: 119.2 kB / 0.5733 GB, free: 7.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005774/0.5308, allocations: 248.4 kB / 0.5736 GB, free: 6.828 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5308, allocations: 4.125 kB / 0.5736 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002462/0.5311, allocations: 119.9 kB / 0.5737 GB, free: 6.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.5315, allocations: 43.23 kB / 0.5737 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.5327, allocations: 0.6293 MB / 0.5743 GB, free: 6.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.5329, allocations: 189.9 kB / 0.5745 GB, free: 5.801 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001373/0.5331, allocations: 42.95 kB / 0.5746 GB, free: 5.762 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.188e-05/0.5332, allocations: 27.44 kB / 0.5746 GB, free: 5.734 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5332, allocations: 0 / 0.5746 GB, free: 5.734 MB / 414.1 MB Notification: Performance of Templates: time 0.00826/0.5414, allocations: 3.027 MB / 0.5775 GB, free: 2.742 MB / 414.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.573778040707111]