Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001556/0.001556, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001608/0.001608, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.548/1.548, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2505/0.2505, allocations: 46.94 MB / 360.9 MB, free: 4.066 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_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_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 71.89 kB / 0.4966 GB, free: 7.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3732, allocations: 66.03 MB / 0.5611 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003924/0.3771, allocations: 2.182 MB / 0.5632 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.3788, allocations: 0.8657 MB / 0.564 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.379, allocations: 7.938 kB / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.3791, allocations: 39.47 kB / 0.5641 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002349/0.3794, allocations: 63.39 kB / 0.5642 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004113/0.3798, allocations: 191.6 kB / 0.5643 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004266/0.3802, allocations: 383 kB / 0.5647 GB, free: 456 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.3804, allocations: 96.56 kB / 0.5648 GB, free: 356 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.3807, allocations: 159.3 kB / 0.5649 GB, free: 196 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.381, allocations: 143.2 kB / 0.5651 GB, free: 52 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.046e-05/0.381, allocations: 36 kB / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.3812, allocations: 48.08 kB / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.993e-05/0.3813, allocations: 99.53 kB / 0.5653 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.3814, allocations: 135.3 kB / 0.5654 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004885/0.3819, allocations: 416.8 kB / 0.5658 GB, free: 15.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3819, allocations: 0 / 0.5658 GB, free: 15.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.3819, allocations: 4 kB / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.3819, allocations: 0 / 0.5658 GB, free: 15.33 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.001339/0.3833, allocations: 0.7266 MB / 0.5665 GB, free: 14.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3833, allocations: 16.03 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004667/0.3838, allocations: 80.61 kB / 0.5666 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00056/0.3843, allocations: 287.1 kB / 0.5669 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.3844, allocations: 28.97 kB / 0.5669 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.3844, allocations: 44.31 kB / 0.5669 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005521/0.385, allocations: 274.1 kB / 0.5672 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.385, allocations: 3.984 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.385, allocations: 15.98 kB / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.3851, allocations: 4 kB / 0.5672 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004537/0.3855, allocations: 190.5 kB / 0.5674 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.3869, allocations: 0.6721 MB / 0.5681 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004298/0.3873, allocations: 181.7 kB / 0.5682 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.3875, allocations: 88.81 kB / 0.5683 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.3876, allocations: 11.98 kB / 0.5683 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.388, allocations: 231.5 kB / 0.5685 GB, free: 12.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.814e-06/0.388, allocations: 0 / 0.5685 GB, free: 12.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008518/0.3888, allocations: 377.3 kB / 0.5689 GB, free: 12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.3889, allocations: 59.39 kB / 0.569 GB, free: 11.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.3892, allocations: 264.2 kB / 0.5692 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.3892, allocations: 37.7 kB / 0.5692 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.3894, allocations: 188.6 kB / 0.5694 GB, free: 11.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.611e-05/0.3895, allocations: 99.19 kB / 0.5695 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3896, allocations: 70.06 kB / 0.5696 GB, free: 11.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3898, allocations: 350.8 kB / 0.5699 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.39, allocations: 88.7 kB / 0.57 GB, free: 10.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.3903, allocations: 226.5 kB / 0.5702 GB, free: 10.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005519/0.3909, allocations: 344.8 kB / 0.5706 GB, free: 10.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3909, allocations: 0 / 0.5706 GB, free: 10.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007068/0.3916, allocations: 396.6 kB / 0.5709 GB, free: 9.746 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.3916, allocations: 4 kB / 0.5709 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3916, allocations: 4 kB / 0.5709 GB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3916, allocations: 8.469 kB / 0.5709 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003093/0.3919, allocations: 79.89 kB / 0.571 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.3919, allocations: 7.938 kB / 0.571 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.3921, allocations: 43.77 kB / 0.5711 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.3922, allocations: 16 kB / 0.5711 GB, free: 9.586 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.0001866/0.3923, allocations: 165.7 kB / 0.5712 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.057e-05/0.3924, allocations: 31.75 kB / 0.5713 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006875/0.3931, allocations: 328.3 kB / 0.5716 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3931, allocations: 4 kB / 0.5716 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3931, allocations: 0 / 0.5716 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.3931, allocations: 3.984 kB / 0.5716 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009092/0.394, allocations: 0.6149 MB / 0.5722 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.394, allocations: 0 / 0.5722 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.3943, allocations: 47.97 kB / 0.5722 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3943, allocations: 0 / 0.5722 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.3943, allocations: 11.98 kB / 0.5723 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3943, allocations: 0 / 0.5723 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3943, allocations: 0 / 0.5723 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009238/0.3952, allocations: 0.5351 MB / 0.5728 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.3953, allocations: 31.8 kB / 0.5728 GB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.3953, allocations: 19.98 kB / 0.5728 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.3955, allocations: 11.98 kB / 0.5728 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.862e-05/0.3956, allocations: 27.91 kB / 0.5729 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.3956, allocations: 15.98 kB / 0.5729 GB, free: 7.676 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001847/0.3958, allocations: 187.1 kB / 0.5731 GB, free: 7.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3958, allocations: 0 / 0.5731 GB, free: 7.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003746/0.3962, allocations: 71.84 kB / 0.5731 GB, free: 7.422 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.0001387/0.3963, allocations: 112.8 kB / 0.5732 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005602/0.3969, allocations: 255.6 kB / 0.5735 GB, free: 7.055 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3969, allocations: 0 / 0.5735 GB, free: 7.055 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.3971, allocations: 115.9 kB / 0.5736 GB, free: 6.941 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.3975, allocations: 38.06 kB / 0.5736 GB, free: 6.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.3986, allocations: 0.6341 MB / 0.5742 GB, free: 6.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.3988, allocations: 185.9 kB / 0.5744 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001469/0.399, allocations: 47.22 kB / 0.5745 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.455e-05/0.399, allocations: 31.44 kB / 0.5745 GB, free: 5.965 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.399, allocations: 0 / 0.5745 GB, free: 5.965 MB / 414.1 MB Notification: Performance of Templates: time 0.007877/0.4069, allocations: 3.02 MB / 0.5774 GB, free: 2.984 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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: 5.512090556323528]