Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.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: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01336/0.01336, allocations: 174.2 kB / 15.12 MB, free: 5.93 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 2.016/2.016, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002028/0.002028, allocations: 116.7 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2717/0.2717, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000663/0.000663, allocations: 14.16 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09663, allocations: 54.87 MB / 461.1 MB, free: 3.227 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.238, allocations: 80.21 MB / 0.5287 GB, free: 2.902 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.2383, allocations: 59.98 kB / 0.5287 GB, free: 2.844 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003755/0.2421, allocations: 0.9225 MB / 0.5296 GB, free: 1.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2421, allocations: 0 / 0.5296 GB, free: 1.918 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2422, allocations: 0 / 0.5296 GB, free: 1.918 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004601/0.2426, allocations: 351.2 kB / 0.53 GB, free: 1.527 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.2427, allocations: 15.97 kB / 0.53 GB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.153e-05/0.2427, allocations: 34.5 kB / 0.53 GB, free: 1.469 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.2428, allocations: 7.953 kB / 0.53 GB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.2429, allocations: 175 kB / 0.5302 GB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.243, allocations: 0 / 0.5302 GB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.243, allocations: 4 kB / 0.5302 GB, free: 1.246 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.2432, allocations: 63.39 kB / 0.5302 GB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2432, allocations: 0 / 0.5302 GB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.2432, allocations: 0 / 0.5302 GB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.2432, allocations: 3.984 kB / 0.5302 GB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.2434, allocations: 35.88 kB / 0.5303 GB, free: 1.133 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.2439, allocations: 260.9 kB / 0.5305 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.2441, allocations: 38.56 kB / 0.5306 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.2441, allocations: 0 / 0.5306 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.2441, allocations: 30.56 kB / 0.5306 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.2441, allocations: 0 / 0.5306 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003485/0.2445, allocations: 73.62 kB / 0.5307 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.2446, allocations: 81.23 kB / 0.5307 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.959e-05/0.2447, allocations: 101 kB / 0.5308 GB, free: 472 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.2447, allocations: 29.7 kB / 0.5309 GB, free: 436 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.2448, allocations: 88.14 kB / 0.5309 GB, free: 344 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.2448, allocations: 7.891 kB / 0.531 GB, free: 336 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-06/0.2448, allocations: 0 / 0.531 GB, free: 336 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2449, allocations: 310.8 kB / 0.5313 GB, free: 16 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2952/0.5402, allocations: 16.06 kB / 0.5313 GB, free: 83.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.5404, allocations: 26.2 kB / 0.5313 GB, free: 83.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.715e-05/0.5405, allocations: 16.12 kB / 0.5313 GB, free: 83.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.5406, allocations: 0 / 0.5313 GB, free: 83.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002369/0.5408, allocations: 66.69 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.5408, allocations: 5.438 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.5409, allocations: 0.7969 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.5409, allocations: 0 / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.541, allocations: 5.391 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.541, allocations: 4.328 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.5411, allocations: 14.88 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-06/0.5412, allocations: 0.9375 kB / 0.5314 GB, free: 83.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.18e-05/0.5413, allocations: 115.6 kB / 0.5315 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.5413, allocations: 8.422 kB / 0.5315 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.195e-05/0.5413, allocations: 8.812 kB / 0.5315 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.5414, allocations: 1.875 kB / 0.5315 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5414, allocations: 0 / 0.5315 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.5414, allocations: 4.406 kB / 0.5315 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.5416, allocations: 164.8 kB / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.5416, allocations: 2.812 kB / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.058e-05/0.5417, allocations: 7.422 kB / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.5417, allocations: 0 / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.5417, allocations: 6.719 kB / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.5417, allocations: 0 / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5417, allocations: 2.25 kB / 0.5317 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.5419, allocations: 149.5 kB / 0.5319 GB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.589e-05/0.542, allocations: 81.23 kB / 0.5319 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.542, allocations: 6.562 kB / 0.5319 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.5422, allocations: 12.03 kB / 0.5319 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.5422, allocations: 10.16 kB / 0.532 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-06/0.5423, allocations: 1.062 kB / 0.532 GB, free: 82.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.546e-05/0.5423, allocations: 85.8 kB / 0.532 GB, free: 82.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.322e-06/0.5423, allocations: 1.062 kB / 0.532 GB, free: 82.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002995/0.5426, allocations: 14.25 kB / 0.5321 GB, free: 82.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0004104/0.5431, allocations: 0.6909 MB / 0.5327 GB, free: 81.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002089/0.5433, allocations: 30.56 kB / 0.5328 GB, free: 81.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5433, allocations: 0 / 0.5328 GB, free: 81.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.468e-05/0.5434, allocations: 16.77 kB / 0.5328 GB, free: 81.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/0.5436, allocations: 12.02 kB / 0.5328 GB, free: 81.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005031/0.5441, allocations: 162.5 kB / 0.5329 GB, free: 81.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.5443, allocations: 0.679 MB / 0.5336 GB, free: 80.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.504e-05/0.5443, allocations: 4.234 kB / 0.5336 GB, free: 80.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.095e-05/0.5444, allocations: 16.92 kB / 0.5336 GB, free: 80.94 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5444, allocations: 4.156 kB / 0.5336 GB, free: 80.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.5663, allocations: 1.191 MB / 0.5348 GB, free: 80.75 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.5666, allocations: 161.8 kB / 0.5349 GB, free: 80.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.784, allocations: 0 / 0.5349 GB, free: 80.51 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat