Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 109.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 206.8 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 46.11 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 79.86 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2689, allocations: 62.44 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003259/0.2722, allocations: 2.317 MB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2736, allocations: 0.9065 MB / 0.5348 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.2738, allocations: 8.062 kB / 0.5348 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.2739, allocations: 40.91 kB / 0.5348 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.2742, allocations: 62.2 kB / 0.5349 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.2745, allocations: 180.5 kB / 0.5351 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003671/0.2749, allocations: 393.9 kB / 0.5354 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.2751, allocations: 125.7 kB / 0.5356 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.2754, allocations: 157.1 kB / 0.5357 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.2756, allocations: 165.5 kB / 0.5359 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.587e-05/0.2757, allocations: 36.16 kB / 0.5359 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-05/0.2758, allocations: 51.64 kB / 0.536 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.525e-05/0.2758, allocations: 81.97 kB / 0.536 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.276, allocations: 184.9 kB / 0.5362 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.2764, allocations: 410.6 kB / 0.5366 GB, free: 9.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2764, allocations: 0 / 0.5366 GB, free: 9.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2764, allocations: 0 / 0.5366 GB, free: 9.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.2765, allocations: 0 / 0.5366 GB, free: 9.77 MB / 398.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.001138/0.2776, allocations: 0.6578 MB / 0.5372 GB, free: 9.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2776, allocations: 10.06 kB / 0.5373 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004836/0.2781, allocations: 76.17 kB / 0.5373 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.2787, allocations: 364.2 kB / 0.5377 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.2787, allocations: 21.88 kB / 0.5377 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.839e-05/0.2788, allocations: 33.94 kB / 0.5377 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005257/0.2793, allocations: 272.7 kB / 0.538 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.2793, allocations: 5.281 kB / 0.538 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.447e-05/0.2794, allocations: 14.52 kB / 0.538 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2794, allocations: 6.312 kB / 0.538 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.2798, allocations: 188.4 kB / 0.5382 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.2811, allocations: 0.8271 MB / 0.539 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004203/0.2816, allocations: 205.7 kB / 0.5392 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.2818, allocations: 98.14 kB / 0.5393 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.2818, allocations: 11 kB / 0.5393 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004051/0.2822, allocations: 237.2 kB / 0.5395 GB, free: 7.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.2823, allocations: 0 / 0.5395 GB, free: 7.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007839/0.283, allocations: 365.3 kB / 0.5399 GB, free: 7.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.2831, allocations: 63.92 kB / 0.5399 GB, free: 7.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.2834, allocations: 261.4 kB / 0.5402 GB, free: 7.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.643e-05/0.2834, allocations: 40.95 kB / 0.5402 GB, free: 7.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.2835, allocations: 185.1 kB / 0.5404 GB, free: 6.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.466e-05/0.2836, allocations: 97.92 kB / 0.5405 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-05/0.2837, allocations: 74.34 kB / 0.5406 GB, free: 6.738 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.2838, allocations: 342.2 kB / 0.5409 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.2841, allocations: 90.36 kB / 0.541 GB, free: 6.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.2843, allocations: 229.4 kB / 0.5412 GB, free: 6.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004958/0.2849, allocations: 344.9 kB / 0.5415 GB, free: 5.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2849, allocations: 1.312 kB / 0.5415 GB, free: 5.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006465/0.2855, allocations: 379.2 kB / 0.5419 GB, free: 5.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2855, allocations: 6.375 kB / 0.5419 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2856, allocations: 4.062 kB / 0.5419 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2856, allocations: 6.906 kB / 0.5419 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.2859, allocations: 78.64 kB / 0.542 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.2859, allocations: 6.25 kB / 0.542 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.2861, allocations: 36.48 kB / 0.542 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.2861, allocations: 18.44 kB / 0.542 GB, free: 5.609 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.0001626/0.2863, allocations: 171.1 kB / 0.5422 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.892e-05/0.2864, allocations: 34.06 kB / 0.5422 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006495/0.287, allocations: 325.8 kB / 0.5425 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.287, allocations: 3.656 kB / 0.5426 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.287, allocations: 96 / 0.5426 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.2871, allocations: 7.922 kB / 0.5426 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009649/0.288, allocations: 0.7202 MB / 0.5433 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.288, allocations: 0 / 0.5433 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.2883, allocations: 52.27 kB / 0.5433 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2883, allocations: 5.234 kB / 0.5433 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.2884, allocations: 7.219 kB / 0.5433 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.2884, allocations: 2.125 kB / 0.5433 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2884, allocations: 0 / 0.5433 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008851/0.2893, allocations: 0.527 MB / 0.5438 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.583e-05/0.2894, allocations: 113.4 kB / 0.5439 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.2894, allocations: 11.31 kB / 0.544 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.2896, allocations: 13.52 kB / 0.544 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.2897, allocations: 26.69 kB / 0.544 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.2897, allocations: 16.58 kB / 0.544 GB, free: 4.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001775/0.2899, allocations: 184.8 kB / 0.5442 GB, free: 4.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2899, allocations: 1.125 kB / 0.5442 GB, free: 4.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003831/0.2903, allocations: 72.97 kB / 0.5443 GB, free: 4.016 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.0001221/0.2904, allocations: 125.2 kB / 0.5444 GB, free: 3.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000544/0.291, allocations: 268.2 kB / 0.5446 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.291, allocations: 0.9375 kB / 0.5446 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.2913, allocations: 137.2 kB / 0.5448 GB, free: 3.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.2917, allocations: 40.09 kB / 0.5448 GB, free: 3.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2927, allocations: 0.6465 MB / 0.5454 GB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.293, allocations: 0.7919 MB / 0.5462 GB, free: 2.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.785e-05/0.2931, allocations: 31.44 kB / 0.5462 GB, free: 2.281 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2931, allocations: 0 / 0.5462 GB, free: 2.281 MB / 398.1 MB Notification: Performance of Templates: time 0.006014/0.2992, allocations: 3.9 MB / 0.55 GB, free: 14.39 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches