Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001337/0.001337, allocations: 175.4 kB / 16.08 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.266/1.266, allocations: 205.6 MB / 222.4 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000757/0.000757, allocations: 94.73 kB / 270.8 MB, free: 8.117 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2895/0.2895, allocations: 43.67 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002751, allocations: 8 kB / 432.3 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08787/0.08816, allocations: 58.84 MB / 491.2 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002032/0.09023, allocations: 1.841 MB / 493 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.09128, allocations: 0.7647 MB / 493.8 MB, free: 7.191 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.0914, allocations: 7.938 kB / 493.8 MB, free: 7.184 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.87e-05/0.09151, allocations: 23.72 kB / 493.8 MB, free: 7.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.0917, allocations: 43.64 kB / 493.8 MB, free: 7.117 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.09195, allocations: 127.8 kB / 494 MB, free: 6.992 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.09224, allocations: 331.1 kB / 494.3 MB, free: 6.668 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.09248, allocations: 124.5 kB / 494.4 MB, free: 6.551 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.09263, allocations: 99.5 kB / 494.5 MB, free: 6.453 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.0928, allocations: 131.2 kB / 494.6 MB, free: 6.324 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.247e-05/0.09284, allocations: 8 kB / 494.6 MB, free: 6.316 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.126e-05/0.09288, allocations: 12 kB / 494.6 MB, free: 6.305 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.982e-05/0.09294, allocations: 51.75 kB / 494.7 MB, free: 6.254 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.09307, allocations: 152.8 kB / 494.8 MB, free: 6.098 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.09335, allocations: 326.7 kB / 495.2 MB, free: 5.777 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.09336, allocations: 0 / 495.2 MB, free: 5.777 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09337, allocations: 0 / 495.2 MB, free: 5.777 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.09338, allocations: 0 / 495.2 MB, free: 5.777 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008659/0.09425, allocations: 0.5483 MB / 495.7 MB, free: 5.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.09429, allocations: 12.03 kB / 495.7 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.09437, allocations: 40.5 kB / 495.8 MB, free: 5.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.09481, allocations: 327.2 kB / 496.1 MB, free: 4.773 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.09485, allocations: 24.94 kB / 496.1 MB, free: 4.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.0949, allocations: 36.22 kB / 496.1 MB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.09537, allocations: 265 kB / 496.4 MB, free: 4.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.0954, allocations: 0 / 496.4 MB, free: 4.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.925e-05/0.09543, allocations: 15.98 kB / 496.4 MB, free: 4.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.09545, allocations: 4 kB / 496.4 MB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004035/0.09585, allocations: 194.1 kB / 496.6 MB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.09705, allocations: 0.7912 MB / 497.4 MB, free: 3.402 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.09746, allocations: 210.8 kB / 497.6 MB, free: 3.188 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.09767, allocations: 104.7 kB / 497.7 MB, free: 3.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.09771, allocations: 7.984 kB / 497.7 MB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004217/0.09813, allocations: 231.1 kB / 497.9 MB, free: 2.836 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.09815, allocations: 0 / 497.9 MB, free: 2.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.00077/0.09892, allocations: 393.1 kB / 498.3 MB, free: 2.445 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.09897, allocations: 55.41 kB / 498.4 MB, free: 2.379 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.09918, allocations: 237 kB / 498.6 MB, free: 2.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.09923, allocations: 41.69 kB / 498.7 MB, free: 2.094 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.09933, allocations: 164.5 kB / 498.8 MB, free: 1.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.757e-05/0.09941, allocations: 98.64 kB / 498.9 MB, free: 1.832 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.09944, allocations: 8 kB / 498.9 MB, free: 1.824 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.09954, allocations: 338.8 kB / 499.2 MB, free: 1.484 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.09974, allocations: 92.7 kB / 499.3 MB, free: 1.391 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.1, allocations: 234.3 kB / 499.6 MB, free: 1.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000476/0.1005, allocations: 348.9 kB / 499.9 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1005, allocations: 7.938 kB / 499.9 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000619/0.1011, allocations: 376.9 kB / 0.4886 GB, free: 324 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1012, allocations: 8 kB / 0.4886 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.1012, allocations: 7.938 kB / 0.4886 GB, free: 308 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1012, allocations: 8 kB / 0.4886 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.1015, allocations: 76.08 kB / 0.4887 GB, free: 224 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.1015, allocations: 15.94 kB / 0.4887 GB, free: 208 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.1017, allocations: 39.73 kB / 0.4887 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.1017, allocations: 12 kB / 0.4887 GB, free: 156 kB / 378.7 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * 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.1557/0.2574, allocations: 162.2 kB / 0.4889 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.823e-05/0.2575, allocations: 25.59 kB / 0.4889 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007952/0.2583, allocations: 336.4 kB / 0.4892 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.2583, allocations: 4.391 kB / 0.4892 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2584, allocations: 0.5156 kB / 0.4892 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2584, allocations: 3.891 kB / 0.4892 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009871/0.2594, allocations: 0.718 MB / 0.4899 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2594, allocations: 1.922 kB / 0.4899 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.2596, allocations: 49.03 kB / 0.49 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2597, allocations: 11.47 kB / 0.49 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.2597, allocations: 14.47 kB / 0.49 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.2597, allocations: 1.531 kB / 0.49 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2597, allocations: 2.594 kB / 0.49 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008167/0.2605, allocations: 0.5345 MB / 0.4905 GB, free: 42.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.408e-05/0.2606, allocations: 108.5 kB / 0.4906 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.289e-05/0.2607, allocations: 14.84 kB / 0.4906 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.2608, allocations: 15.78 kB / 0.4907 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.2609, allocations: 22.42 kB / 0.4907 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.261, allocations: 14.66 kB / 0.4907 GB, free: 42.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001409/0.2611, allocations: 164.8 kB / 0.4909 GB, free: 42.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2611, allocations: 0 / 0.4909 GB, free: 42.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003641/0.2615, allocations: 68.58 kB / 0.4909 GB, free: 42.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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.0001213/0.2616, allocations: 129 kB / 0.491 GB, free: 42.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005906/0.2622, allocations: 270.1 kB / 0.4913 GB, free: 42.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2622, allocations: 0 / 0.4913 GB, free: 42.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002645/0.2625, allocations: 137.6 kB / 0.4914 GB, free: 42.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.2628, allocations: 32.67 kB / 0.4915 GB, free: 42.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000962/0.2638, allocations: 0.7229 MB / 0.4922 GB, free: 41.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.264, allocations: 0.7794 MB / 0.4929 GB, free: 40.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000166/0.2642, allocations: 46.53 kB / 0.493 GB, free: 40.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.814e-05/0.2643, allocations: 31.55 kB / 0.493 GB, free: 40.96 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.2643, allocations: 1.125 kB / 0.493 GB, free: 40.96 MB / 378.7 MB Notification: Performance of Templates: time 0.005486/0.2698, allocations: 2.274 MB / 0.4952 GB, free: 40.86 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches