Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002647/0.002652, allocations: 347.2 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.984/3.984, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003503/0.003503, allocations: 229.6 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.57/0.57, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007918/0.0007921, allocations: 8 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.1006, allocations: 48.69 MB / 0.6067 GB, free: 4.68 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.5353, allocations: 73.97 MB / 0.6789 GB, free: 38.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.5356, allocations: 71.03 kB / 0.679 GB, free: 38.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00371/0.5393, allocations: 0.9416 MB / 0.6799 GB, free: 37.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5394, allocations: 0 / 0.6799 GB, free: 37.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.5394, allocations: 0 / 0.6799 GB, free: 37.78 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004423/0.5398, allocations: 358.3 kB / 0.6803 GB, free: 37.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.5399, allocations: 8.031 kB / 0.6803 GB, free: 37.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.5399, allocations: 5.719 kB / 0.6803 GB, free: 37.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.5401, allocations: 182.9 kB / 0.6805 GB, free: 37.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.5402, allocations: 4 kB / 0.6805 GB, free: 37.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.5402, allocations: 0 / 0.6805 GB, free: 37.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.5404, allocations: 53.67 kB / 0.6805 GB, free: 37.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.5404, allocations: 5.141 kB / 0.6805 GB, free: 37.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.5404, allocations: 0 / 0.6805 GB, free: 37.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.5404, allocations: 0 / 0.6805 GB, free: 37.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.5406, allocations: 35.34 kB / 0.6806 GB, free: 37.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000455/0.5411, allocations: 268.9 kB / 0.6808 GB, free: 36.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.5412, allocations: 37.5 kB / 0.6809 GB, free: 36.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.991e-05/0.5413, allocations: 20.94 kB / 0.6809 GB, free: 36.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.5413, allocations: 0 / 0.6809 GB, free: 36.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.5415, allocations: 70.11 kB / 0.6809 GB, free: 36.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.834e-06/0.5416, allocations: 0 / 0.6809 GB, free: 36.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003508/0.5419, allocations: 89.56 kB / 0.681 GB, free: 36.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.542, allocations: 57.53 kB / 0.6811 GB, free: 36.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.5421, allocations: 111.6 kB / 0.6812 GB, free: 36.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.5421, allocations: 29.7 kB / 0.6812 GB, free: 36.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.007e-05/0.5421, allocations: 85.62 kB / 0.6813 GB, free: 36.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.5422, allocations: 19.75 kB / 0.6813 GB, free: 36.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-06/0.5422, allocations: 4.625 kB / 0.6813 GB, free: 36.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.48e-05/0.5423, allocations: 322 kB / 0.6816 GB, free: 35.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.692e-05/0.5424, allocations: 19.98 kB / 0.6816 GB, free: 35.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.759e-05/0.5425, allocations: 44.28 kB / 0.6817 GB, free: 35.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.862e-05/0.5426, allocations: 21.83 kB / 0.6817 GB, free: 35.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5426, allocations: 1.219 kB / 0.6817 GB, free: 35.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002303/0.5428, allocations: 88.83 kB / 0.6818 GB, free: 35.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.5429, allocations: 4 kB / 0.6818 GB, free: 35.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.5429, allocations: 4 kB / 0.6818 GB, free: 35.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.5429, allocations: 0 / 0.6818 GB, free: 35.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.543, allocations: 19.17 kB / 0.6818 GB, free: 35.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.5431, allocations: 0 / 0.6818 GB, free: 35.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.083e-05/0.5431, allocations: 10.67 kB / 0.6818 GB, free: 35.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.5432, allocations: 7.5 kB / 0.6818 GB, free: 35.64 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.076e-05/0.5433, allocations: 127.5 kB / 0.682 GB, free: 35.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.5433, allocations: 3.906 kB / 0.682 GB, free: 35.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.5433, allocations: 8.562 kB / 0.682 GB, free: 35.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5433, allocations: 0 / 0.682 GB, free: 35.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.5434, allocations: 2.812 kB / 0.682 GB, free: 35.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.5434, allocations: 0 / 0.682 GB, free: 35.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.5435, allocations: 177.6 kB / 0.6821 GB, free: 35.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5435, allocations: 0 / 0.6821 GB, free: 35.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.502e-05/0.5436, allocations: 8 kB / 0.6821 GB, free: 35.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.5436, allocations: 0 / 0.6821 GB, free: 35.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.5436, allocations: 0 / 0.6821 GB, free: 35.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5437, allocations: 0 / 0.6821 GB, free: 35.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5437, allocations: 4.734 kB / 0.6822 GB, free: 35.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.544, allocations: 126.4 kB / 0.6823 GB, free: 35.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.831e-05/0.5441, allocations: 85.12 kB / 0.6824 GB, free: 35.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.5441, allocations: 0 / 0.6824 GB, free: 35.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.679e-05/0.5442, allocations: 13.56 kB / 0.6824 GB, free: 35.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.5442, allocations: 3.984 kB / 0.6824 GB, free: 35.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.5442, allocations: 4 kB / 0.6824 GB, free: 35.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.33e-05/0.5443, allocations: 87.27 kB / 0.6825 GB, free: 34.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5443, allocations: 0 / 0.6825 GB, free: 34.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002691/0.5446, allocations: 8 kB / 0.6825 GB, free: 34.92 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001027/0.5447, allocations: 96.72 kB / 0.6826 GB, free: 34.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002199/0.5449, allocations: 51.56 kB / 0.6826 GB, free: 34.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5449, allocations: 3.828 kB / 0.6826 GB, free: 34.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.052e-05/0.545, allocations: 19.98 kB / 0.6826 GB, free: 34.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.5452, allocations: 4.578 kB / 0.6826 GB, free: 34.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003883/0.5456, allocations: 181.7 kB / 0.6828 GB, free: 34.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.5458, allocations: 0.6887 MB / 0.6835 GB, free: 33.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.869e-05/0.5458, allocations: 3.094 kB / 0.6835 GB, free: 33.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.5459, allocations: 11.44 kB / 0.6835 GB, free: 33.82 MB / 362.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5459, allocations: 0 / 0.6835 GB, free: 33.82 MB / 362.7 MB Notification: Performance of Templates: time 0.002862/0.5488, allocations: 414.4 kB / 0.6839 GB, free: 33.46 MB / 362.7 MB