Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 112.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 185.2 kB / 19.38 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 222.9 MB / 243.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1902/0.1902, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3058, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003135/0.309, allocations: 2.253 MB / 0.5218 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3101, allocations: 0.7725 MB / 0.5225 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.3103, allocations: 4.344 kB / 0.5225 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.3104, allocations: 34.88 kB / 0.5225 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.3106, allocations: 56.78 kB / 0.5226 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.3109, allocations: 152.5 kB / 0.5227 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.3113, allocations: 377 kB / 0.5231 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.3115, allocations: 123.9 kB / 0.5232 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.3117, allocations: 142.2 kB / 0.5234 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.3119, allocations: 153.7 kB / 0.5235 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.312, allocations: 35.41 kB / 0.5235 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.887e-05/0.312, allocations: 33.66 kB / 0.5236 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.3121, allocations: 88.41 kB / 0.5237 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.3123, allocations: 161.6 kB / 0.5238 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.3126, allocations: 376.7 kB / 0.5242 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3126, allocations: 4.641 kB / 0.5242 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3126, allocations: 1.062 kB / 0.5242 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.3127, allocations: 4 kB / 0.5242 GB, free: 0.543 MB / 382.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.0009541/0.3136, allocations: 0.6183 MB / 0.5248 GB, free: 36 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.3137, allocations: 10.78 kB / 0.5248 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.253e-05/0.3137, allocations: 39.41 kB / 0.5248 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.3142, allocations: 341.1 kB / 0.5252 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.3143, allocations: 25.53 kB / 0.5252 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-05/0.3144, allocations: 30.64 kB / 0.5252 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.3149, allocations: 280.7 kB / 0.5255 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.3149, allocations: 5.25 kB / 0.5255 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.3149, allocations: 12 kB / 0.5255 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.315, allocations: 10.69 kB / 0.5255 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004061/0.3154, allocations: 186.4 kB / 0.5257 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.3166, allocations: 0.7974 MB / 0.5265 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.3171, allocations: 203.5 kB / 0.5267 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.3173, allocations: 97 kB / 0.5267 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.3173, allocations: 15.7 kB / 0.5268 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.3177, allocations: 228.5 kB / 0.527 GB, free: 14.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.954e-06/0.3177, allocations: 4 kB / 0.527 GB, free: 14.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007341/0.3185, allocations: 359.8 kB / 0.5273 GB, free: 14.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.3185, allocations: 56.91 kB / 0.5274 GB, free: 14.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.3187, allocations: 237.6 kB / 0.5276 GB, free: 14.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.3188, allocations: 36.45 kB / 0.5276 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3189, allocations: 169.1 kB / 0.5278 GB, free: 14.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.773e-05/0.319, allocations: 105.5 kB / 0.5279 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.59e-05/0.3191, allocations: 74.94 kB / 0.528 GB, free: 13.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3192, allocations: 341.7 kB / 0.5283 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.3194, allocations: 87.44 kB / 0.5284 GB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.3196, allocations: 229.6 kB / 0.5286 GB, free: 13.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/0.3201, allocations: 343.7 kB / 0.5289 GB, free: 13.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.3201, allocations: 1.188 kB / 0.5289 GB, free: 13.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006141/0.3207, allocations: 379.9 kB / 0.5293 GB, free: 12.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3208, allocations: 6.75 kB / 0.5293 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.3208, allocations: 4.875 kB / 0.5293 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3208, allocations: 6.562 kB / 0.5293 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.3211, allocations: 74.08 kB / 0.5294 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.3211, allocations: 10.75 kB / 0.5294 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.3213, allocations: 32.8 kB / 0.5294 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.3213, allocations: 21.83 kB / 0.5294 GB, free: 12.86 MB / 398.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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.000156/0.3215, allocations: 172.8 kB / 0.5296 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.3215, allocations: 32 kB / 0.5296 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006211/0.3222, allocations: 323.9 kB / 0.5299 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3222, allocations: 3.781 kB / 0.53 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3222, allocations: 0 / 0.53 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.3222, allocations: 4 kB / 0.53 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009052/0.3231, allocations: 0.7122 MB / 0.5306 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3231, allocations: 0 / 0.5306 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.3234, allocations: 43.78 kB / 0.5307 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3234, allocations: 1.188 kB / 0.5307 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.3234, allocations: 15.5 kB / 0.5307 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3234, allocations: 1.25 kB / 0.5307 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3234, allocations: 5.125 kB / 0.5307 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008412/0.3243, allocations: 0.5255 MB / 0.5312 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.3244, allocations: 104.9 kB / 0.5313 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.96e-05/0.3244, allocations: 6.969 kB / 0.5313 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.3246, allocations: 14.08 kB / 0.5313 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.354e-05/0.3247, allocations: 26.34 kB / 0.5314 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.3247, allocations: 16.7 kB / 0.5314 GB, free: 11.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.3249, allocations: 164.7 kB / 0.5315 GB, free: 11.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3249, allocations: 0 / 0.5315 GB, free: 11.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003639/0.3252, allocations: 72.66 kB / 0.5316 GB, free: 11.29 MB / 398.1 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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.0001363/0.3254, allocations: 118 kB / 0.5317 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005519/0.3259, allocations: 266.2 kB / 0.532 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.326, allocations: 1.594 kB / 0.532 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.3262, allocations: 131.8 kB / 0.5321 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.3265, allocations: 39.41 kB / 0.5321 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.3276, allocations: 0.6242 MB / 0.5328 GB, free: 10.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3279, allocations: 0.7826 MB / 0.5335 GB, free: 9.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.835e-05/0.328, allocations: 35.55 kB / 0.5336 GB, free: 9.793 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.328, allocations: 0 / 0.5336 GB, free: 9.793 MB / 398.1 MB Notification: Performance of Templates: time 0.006566/0.3346, allocations: 3.625 MB / 0.5371 GB, free: 7.898 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches