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.001424/0.001424, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001735/0.001736, allocations: 194 kB / 18.77 MB, free: 4.742 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.38/1.381, allocations: 222.9 MB / 242.5 MB, free: 13.78 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.2044/0.2044, allocations: 44.18 MB / 336.8 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 62.95 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09156/0.09317, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003446/0.09665, allocations: 2.281 MB / 471.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.09801, allocations: 0.7558 MB / 472.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.09823, allocations: 7.938 kB / 472.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.0984, allocations: 19.78 kB / 472.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.09866, allocations: 43.64 kB / 472.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.09899, allocations: 131.8 kB / 472.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003658/0.09937, allocations: 343.1 kB / 472.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.09962, allocations: 128.2 kB / 472.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.09983, allocations: 127.4 kB / 473 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.1001, allocations: 143.2 kB / 473.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.385e-05/0.1001, allocations: 20 kB / 473.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.304e-05/0.1002, allocations: 16 kB / 473.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.082e-05/0.1003, allocations: 63.69 kB / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.1004, allocations: 151.1 kB / 473.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.1007, allocations: 267.7 kB / 473.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1007, allocations: 0 / 473.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1007, allocations: 0 / 473.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1007, allocations: 4 kB / 473.6 MB, free: 10.34 MB / 350.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.001126/0.1018, allocations: 0.6265 MB / 474.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1019, allocations: 8.031 kB / 474.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.102, allocations: 36.56 kB / 474.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.1024, allocations: 339.1 kB / 474.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.848e-05/0.1025, allocations: 20.94 kB / 474.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.784e-05/0.1025, allocations: 36.38 kB / 474.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.1031, allocations: 268.9 kB / 475 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.1031, allocations: 3.906 kB / 475 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.1031, allocations: 12 kB / 475 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.1031, allocations: 7.984 kB / 475 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.1036, allocations: 198.1 kB / 475.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.1049, allocations: 0.8108 MB / 476 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.1053, allocations: 202.8 kB / 476.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.1055, allocations: 96.81 kB / 476.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.1056, allocations: 7.938 kB / 476.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004021/0.106, allocations: 223.7 kB / 476.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.874e-06/0.106, allocations: 0 / 476.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007854/0.1068, allocations: 377.2 kB / 476.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.1068, allocations: 59.39 kB / 476.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.1071, allocations: 236.9 kB / 477.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.1071, allocations: 33.69 kB / 477.2 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1072, allocations: 176.4 kB / 477.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.141e-05/0.1073, allocations: 94.7 kB / 477.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.1074, allocations: 70.06 kB / 477.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1075, allocations: 346.8 kB / 477.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.1077, allocations: 92.69 kB / 478 MB, free: 5.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.108, allocations: 226.3 kB / 478.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005129/0.1086, allocations: 344.8 kB / 478.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.1086, allocations: 8 kB / 478.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006458/0.1092, allocations: 368.6 kB / 478.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1093, allocations: 12.45 kB / 478.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1093, allocations: 8 kB / 478.9 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1093, allocations: 8 kB / 478.9 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.1096, allocations: 71.84 kB / 479 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.1096, allocations: 11.98 kB / 479 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.1098, allocations: 35.69 kB / 479 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.1099, allocations: 23.92 kB / 479.1 MB, free: 4.57 MB / 350.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.0001639/0.11, allocations: 158.8 kB / 479.2 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.1101, allocations: 31.66 kB / 479.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006359/0.1107, allocations: 328.1 kB / 479.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.1108, allocations: 4 kB / 479.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1108, allocations: 0 / 479.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1108, allocations: 0 / 479.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008985/0.1117, allocations: 0.7129 MB / 480.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1117, allocations: 0 / 480.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.112, allocations: 51.91 kB / 480.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.112, allocations: 0 / 480.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.112, allocations: 11.98 kB / 480.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.112, allocations: 0 / 480.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.112, allocations: 4 kB / 480.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008382/0.1129, allocations: 0.5228 MB / 480.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.994e-05/0.113, allocations: 104.7 kB / 481 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.113, allocations: 12.05 kB / 481 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.1132, allocations: 12 kB / 481 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.1133, allocations: 27.95 kB / 481 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.1133, allocations: 19.92 kB / 481 MB, free: 2.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1135, allocations: 164.5 kB / 481.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1135, allocations: 0 / 481.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000368/0.1138, allocations: 75.73 kB / 481.3 MB, free: 2.246 MB / 350.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.0001218/0.114, allocations: 109.1 kB / 481.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005307/0.1145, allocations: 267.6 kB / 481.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1145, allocations: 0 / 481.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.1148, allocations: 127.8 kB / 481.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.1152, allocations: 45.09 kB / 481.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.1163, allocations: 0.7451 MB / 482.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.1166, allocations: 0.7841 MB / 483.3 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-05/0.1167, allocations: 35.36 kB / 483.4 MB, free: 76 kB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1167, allocations: 0 / 483.4 MB, free: 76 kB / 350.1 MB Notification: Performance of Templates: time 0.005878/0.1226, allocations: 3.6 MB / 487 MB, free: 12.48 MB / 366.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