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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01028/0.01028, allocations: 166.5 kB / 15.11 MB, free: 5.93 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 1.612/1.612, allocations: 170.8 MB / 186.6 MB, free: 1.125 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001999/0.001999, allocations: 103 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4499/0.4499, allocations: 38.05 MB / 303.7 MB, free: 42.34 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004657/0.0004657, allocations: 15.98 kB / 363 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1174, allocations: 48.71 MB / 411.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.5368, allocations: 73.96 MB / 485.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.537, allocations: 61.17 kB / 485.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003633/0.5407, allocations: 0.9397 MB / 486.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5407, allocations: 0 / 486.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.5408, allocations: 4 kB / 486.6 MB, free: 12.95 MB / 330.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.0004094/0.5412, allocations: 356.5 kB / 487 MB, free: 12.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.5412, allocations: 12.03 kB / 487 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.5413, allocations: 32.97 kB / 487 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.5413, allocations: 4.625 kB / 487 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.5415, allocations: 186.1 kB / 487.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.5415, allocations: 4 kB / 487.2 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.298e-05/0.5416, allocations: 4 kB / 487.2 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.5417, allocations: 53.3 kB / 487.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.5418, allocations: 0 / 487.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.5418, allocations: 0 / 487.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.5418, allocations: 4 kB / 487.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.5419, allocations: 24.55 kB / 487.3 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004481/0.5424, allocations: 280.9 kB / 487.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.5425, allocations: 38.48 kB / 487.6 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.5425, allocations: 0 / 487.6 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.5428, allocations: 79.03 kB / 487.7 MB, free: 11.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.814e-06/0.5428, allocations: 0 / 487.7 MB, free: 11.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003478/0.5431, allocations: 81.33 kB / 487.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.5432, allocations: 51.41 kB / 487.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.563e-05/0.5433, allocations: 109.5 kB / 487.9 MB, free: 11.53 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.5433, allocations: 32.7 kB / 488 MB, free: 11.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.449e-05/0.5433, allocations: 88 kB / 488.1 MB, free: 11.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.5434, allocations: 15.75 kB / 488.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-06/0.5434, allocations: 3.391 kB / 488.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.5434, allocations: 318.5 kB / 488.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.599e-05/0.5435, allocations: 19.8 kB / 488.4 MB, free: 11.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.022e-05/0.5436, allocations: 52.16 kB / 488.5 MB, free: 11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.809e-05/0.5437, allocations: 19.92 kB / 488.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5437, allocations: 0 / 488.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002384/0.544, allocations: 93.11 kB / 488.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.544, allocations: 5.875 kB / 488.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.544, allocations: 4 kB / 488.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.5441, allocations: 2.75 kB / 488.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.5442, allocations: 12 kB / 488.6 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.5442, allocations: 0 / 488.6 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.193e-05/0.5443, allocations: 12.05 kB / 488.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.5443, allocations: 8 kB / 488.6 MB, free: 10.86 MB / 330.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 7.423e-05/0.5444, allocations: 122.4 kB / 488.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.5444, allocations: 0 / 488.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.5445, allocations: 11.78 kB / 488.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.5445, allocations: 0 / 488.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5445, allocations: 0 / 488.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.5445, allocations: 0 / 488.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.5446, allocations: 172.7 kB / 488.9 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5446, allocations: 0 / 488.9 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.337e-05/0.5447, allocations: 12 kB / 488.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.5448, allocations: 0 / 488.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.5448, allocations: 0 / 488.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5448, allocations: 0 / 488.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5448, allocations: 3.984 kB / 488.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003356/0.5451, allocations: 120.3 kB / 489 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-05/0.5452, allocations: 85.12 kB / 489.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.5452, allocations: 4.25 kB / 489.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.806e-05/0.5453, allocations: 7.875 kB / 489.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.5454, allocations: 11.86 kB / 489.1 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.006e-06/0.5454, allocations: 0 / 489.1 MB, free: 10.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.317e-05/0.5454, allocations: 91.2 kB / 489.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5455, allocations: 0 / 489.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.5457, allocations: 8 kB / 489.2 MB, free: 10.16 MB / 330.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.0005809/0.5463, allocations: 0.6577 MB / 489.9 MB, free: 9.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.5465, allocations: 47.59 kB / 489.9 MB, free: 9.457 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5466, allocations: 0 / 489.9 MB, free: 9.457 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.819e-05/0.5467, allocations: 27.72 kB / 490 MB, free: 9.434 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001356/0.5468, allocations: 6.188 kB / 490 MB, free: 9.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.5475, allocations: 1.001 MB / 491 MB, free: 8.387 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.5477, allocations: 0.6887 MB / 491.7 MB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.032e-05/0.5477, allocations: 0 / 491.7 MB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.671e-05/0.5478, allocations: 19.3 kB / 491.7 MB, free: 7.656 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5478, allocations: 0 / 491.7 MB, free: 7.656 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05614/0.604, allocations: 1.202 MB / 492.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.6042, allocations: 160.1 kB / 493 MB, free: 6.305 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.481/3.085, allocations: 0 / 493 MB, free: 6.305 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat