Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 112.6 kB / 17.09 MB, free: 5.984 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.001143/0.001143, allocations: 198.1 kB / 18.02 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.213/1.213, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2005/0.2005, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 73.45 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09162, allocations: 57.78 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003132/0.09478, allocations: 2.232 MB / 0.4907 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.0961, allocations: 0.811 MB / 0.4915 GB, free: 8.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.09628, allocations: 4 kB / 0.4915 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.09644, allocations: 35.55 kB / 0.4916 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.09669, allocations: 55.45 kB / 0.4916 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.09701, allocations: 139.7 kB / 0.4917 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.0974, allocations: 363 kB / 0.4921 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.09764, allocations: 120.2 kB / 0.4922 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.09785, allocations: 143.4 kB / 0.4923 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.09808, allocations: 155.2 kB / 0.4925 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.09814, allocations: 36 kB / 0.4925 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.804e-05/0.09819, allocations: 32 kB / 0.4925 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.838e-05/0.09828, allocations: 83.73 kB / 0.4926 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.09842, allocations: 159.1 kB / 0.4928 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003202/0.09875, allocations: 354.7 kB / 0.4931 GB, free: 7.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.09876, allocations: 0 / 0.4931 GB, free: 7.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09877, allocations: 0 / 0.4931 GB, free: 7.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.09878, allocations: 0 / 0.4931 GB, free: 7.086 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001012/0.0998, allocations: 0.6144 MB / 0.4937 GB, free: 6.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.09984, allocations: 11.89 kB / 0.4937 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.928e-05/0.09994, allocations: 36.56 kB / 0.4938 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004726/0.1004, allocations: 339.1 kB / 0.4941 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.1005, allocations: 20.94 kB / 0.4941 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.1005, allocations: 36.28 kB / 0.4941 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.101, allocations: 260.9 kB / 0.4944 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.101, allocations: 0 / 0.4944 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.101, allocations: 12 kB / 0.4944 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1011, allocations: 4 kB / 0.4944 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003729/0.1014, allocations: 186.1 kB / 0.4946 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1026, allocations: 0.7677 MB / 0.4953 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/0.103, allocations: 214.6 kB / 0.4955 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.1032, allocations: 104.7 kB / 0.4956 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.1033, allocations: 4 kB / 0.4956 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.1036, allocations: 231 kB / 0.4959 GB, free: 4.105 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.1036, allocations: 4 kB / 0.4959 GB, free: 4.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007258/0.1044, allocations: 370 kB / 0.4962 GB, free: 3.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.1044, allocations: 59.39 kB / 0.4963 GB, free: 3.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.1046, allocations: 233 kB / 0.4965 GB, free: 3.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1047, allocations: 33.7 kB / 0.4965 GB, free: 3.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.1048, allocations: 168.6 kB / 0.4967 GB, free: 3.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.558e-05/0.1049, allocations: 102.5 kB / 0.4968 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.657e-05/0.105, allocations: 70.06 kB / 0.4969 GB, free: 3.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1051, allocations: 346.8 kB / 0.4972 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.1053, allocations: 88.7 kB / 0.4973 GB, free: 2.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.1055, allocations: 225.7 kB / 0.4975 GB, free: 2.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.106, allocations: 344.8 kB / 0.4978 GB, free: 1.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.106, allocations: 4 kB / 0.4978 GB, free: 1.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005816/0.1066, allocations: 368.7 kB / 0.4982 GB, free: 1.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1066, allocations: 11.94 kB / 0.4982 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.1066, allocations: 4.469 kB / 0.4982 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.1067, allocations: 15.94 kB / 0.4982 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.1069, allocations: 71.89 kB / 0.4983 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.107, allocations: 12.03 kB / 0.4983 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.1071, allocations: 31.72 kB / 0.4983 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.1072, allocations: 23.98 kB / 0.4983 GB, free: 1.395 MB / 382.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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.0001468/0.1073, allocations: 161.8 kB / 0.4985 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.1074, allocations: 31.61 kB / 0.4985 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005878/0.108, allocations: 331.2 kB / 0.4988 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.108, allocations: 3.984 kB / 0.4988 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.108, allocations: 0 / 0.4988 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.108, allocations: 100.8 kB / 0.4989 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.731e-05/0.1081, allocations: 12 kB / 0.4989 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.1082, allocations: 15.98 kB / 0.499 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.1083, allocations: 23.97 kB / 0.499 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007081/0.109, allocations: 400.6 kB / 0.4994 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008444/0.1099, allocations: 0.6194 MB / 0.5 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002098/0.1101, allocations: 124 kB / 0.5001 GB, free: 15.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.1102, allocations: 164.5 kB / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of Backend: time 3.91e-07/0.1103, allocations: 0 / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.1109, allocations: 254.1 kB / 0.5005 GB, free: 15.12 MB / 398.1 MB Notification: Performance of SimCode: time 0.000965/0.1119, allocations: 0.9851 MB / 0.5014 GB, free: 14.09 MB / 398.1 MB Notification: Performance of Templates: time 0.006528/0.1184, allocations: 3.152 MB / 0.5045 GB, free: 10.94 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches