Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002805/0.002809, allocations: 362.7 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.284/4.284, allocations: 388.9 MB / 405.6 MB, free: 9.648 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003543/0.003543, allocations: 229.1 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5308/0.5308, allocations: 80.02 MB / 0.5627 GB, free: 19.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.0004623, allocations: 8 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 54.87 MB / 0.6801 GB, free: 41.69 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4772/0.5827, allocations: 82.32 MB / 0.7605 GB, free: 3.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.5831, allocations: 64.03 kB / 0.7605 GB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01993/0.603, allocations: 4.146 MB / 0.7646 GB, free: 15.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.6031, allocations: 0 / 0.7646 GB, free: 15.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.6031, allocations: 8 kB / 0.7646 GB, free: 15.46 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001531/0.6047, allocations: 0.5576 MB / 0.7651 GB, free: 14.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.6047, allocations: 12.03 kB / 0.7651 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.6049, allocations: 35.62 kB / 0.7652 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006935/0.6056, allocations: 303.8 kB / 0.7655 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.6057, allocations: 23.88 kB / 0.7655 GB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.6058, allocations: 31.67 kB / 0.7655 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008519/0.6067, allocations: 260.8 kB / 0.7658 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.054e-05/0.6067, allocations: 8 kB / 0.7658 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/0.6068, allocations: 14.8 kB / 0.7658 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.6068, allocations: 8 kB / 0.7658 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007317/0.6076, allocations: 192.6 kB / 0.766 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.6098, allocations: 0.7694 MB / 0.7667 GB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007246/0.6106, allocations: 221 kB / 0.7669 GB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003759/0.611, allocations: 109.8 kB / 0.767 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.776e-05/0.6111, allocations: 7.938 kB / 0.7671 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007171/0.6118, allocations: 234.1 kB / 0.7673 GB, free: 13.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 3.616e-06/0.6118, allocations: 0 / 0.7673 GB, free: 13.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001395/0.6132, allocations: 390.3 kB / 0.7676 GB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.6133, allocations: 63.28 kB / 0.7677 GB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.6137, allocations: 225.8 kB / 0.7679 GB, free: 12.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.477e-05/0.6138, allocations: 35.52 kB / 0.768 GB, free: 12.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.614, allocations: 173.6 kB / 0.7681 GB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.6141, allocations: 88.28 kB / 0.7682 GB, free: 12.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.6142, allocations: 10.94 kB / 0.7682 GB, free: 12.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.6144, allocations: 341.5 kB / 0.7685 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.6147, allocations: 94.88 kB / 0.7686 GB, free: 11.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004764/0.6152, allocations: 226.3 kB / 0.7689 GB, free: 11.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.6157, allocations: 128.5 kB / 0.769 GB, free: 11.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.6157, allocations: 0 / 0.769 GB, free: 11.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001134/0.6169, allocations: 392.8 kB / 0.7693 GB, free: 11.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.6169, allocations: 8 kB / 0.7694 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.6169, allocations: 8.469 kB / 0.7694 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.617, allocations: 12 kB / 0.7694 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/0.6175, allocations: 75.27 kB / 0.7694 GB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.261e-05/0.6176, allocations: 11.94 kB / 0.7695 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.6179, allocations: 35.02 kB / 0.7695 GB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.618, allocations: 23.61 kB / 0.7695 GB, free: 10.99 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002954/0.6183, allocations: 161.8 kB / 0.7697 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.041e-05/0.6184, allocations: 27.7 kB / 0.7697 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.6195, allocations: 340.2 kB / 0.77 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.6195, allocations: 0 / 0.77 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.6195, allocations: 0 / 0.77 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.6195, allocations: 7.984 kB / 0.77 GB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.6211, allocations: 0.7199 MB / 0.7707 GB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.6211, allocations: 0 / 0.7707 GB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.6216, allocations: 50.84 kB / 0.7708 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.6216, allocations: 0 / 0.7708 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.286e-05/0.6217, allocations: 11.98 kB / 0.7708 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.6217, allocations: 0 / 0.7708 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6217, allocations: 0 / 0.7708 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.6232, allocations: 0.55 MB / 0.7713 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.723e-05/0.6233, allocations: 104.8 kB / 0.7714 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.641e-05/0.6234, allocations: 14.81 kB / 0.7714 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.6237, allocations: 15.23 kB / 0.7715 GB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.6239, allocations: 27.33 kB / 0.7715 GB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.6239, allocations: 11.88 kB / 0.7715 GB, free: 9.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002415/0.6242, allocations: 166.7 kB / 0.7717 GB, free: 9.109 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6242, allocations: 0 / 0.7717 GB, free: 9.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005751/0.6248, allocations: 82.39 kB / 0.7717 GB, free: 9.039 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002109/0.625, allocations: 110.1 kB / 0.7718 GB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009364/0.6259, allocations: 275.4 kB / 0.7721 GB, free: 8.715 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.626, allocations: 0 / 0.7721 GB, free: 8.715 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004303/0.6264, allocations: 130.5 kB / 0.7722 GB, free: 8.617 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.6269, allocations: 33.72 kB / 0.7723 GB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.6284, allocations: 0.6795 MB / 0.7729 GB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.6289, allocations: 0.7833 MB / 0.7737 GB, free: 7.141 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002769/0.6292, allocations: 46.53 kB / 0.7737 GB, free: 7.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.6293, allocations: 23.44 kB / 0.7737 GB, free: 7.074 MB / 362.7 MB Notification: Performance of SimCode: time 1.163e-06/0.6293, allocations: 0 / 0.7737 GB, free: 7.074 MB / 362.7 MB Notification: Performance of Templates: time 0.008826/0.6382, allocations: 2.218 MB / 0.7759 GB, free: 4.879 MB / 362.7 MB