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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003079/0.003084, allocations: 362.5 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.039/4.039, allocations: 388.9 MB / 405.6 MB, free: 10.24 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.005042/0.005041, allocations: 226 kB / 451 MB, free: 145.1 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.529/0.529, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006415/0.0006422, allocations: 12 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1428, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5522/0.695, allocations: 80.21 MB / 0.7584 GB, free: 5.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.6953, allocations: 64.8 kB / 0.7585 GB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003344/0.6987, allocations: 0.9275 MB / 0.7594 GB, free: 4.227 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.6987, allocations: 0 / 0.7594 GB, free: 4.227 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.6987, allocations: 0 / 0.7594 GB, free: 4.227 MB / 346.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.0003788/0.6991, allocations: 350.2 kB / 0.7597 GB, free: 3.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.6992, allocations: 8.031 kB / 0.7597 GB, free: 3.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.678e-05/0.6992, allocations: 7.953 kB / 0.7597 GB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.954e-05/0.6993, allocations: 167 kB / 0.7599 GB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.6993, allocations: 8 kB / 0.7599 GB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.6994, allocations: 0 / 0.7599 GB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.6996, allocations: 61.91 kB / 0.76 GB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.6996, allocations: 0 / 0.76 GB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.6996, allocations: 0 / 0.76 GB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.6996, allocations: 3.984 kB / 0.76 GB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.6998, allocations: 31.62 kB / 0.76 GB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004182/0.7002, allocations: 262.3 kB / 0.7602 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.7003, allocations: 37.5 kB / 0.7603 GB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.379e-05/0.7004, allocations: 20.8 kB / 0.7603 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.7004, allocations: 0 / 0.7603 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.7005, allocations: 38.55 kB / 0.7603 GB, free: 3.117 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.7005, allocations: 0 / 0.7603 GB, free: 3.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003108/0.7008, allocations: 61.64 kB / 0.7604 GB, free: 3.055 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.7009, allocations: 85.09 kB / 0.7605 GB, free: 2.953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.856e-05/0.7009, allocations: 112.7 kB / 0.7606 GB, free: 2.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.701, allocations: 25.7 kB / 0.7606 GB, free: 2.809 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.89e-05/0.701, allocations: 83.58 kB / 0.7607 GB, free: 2.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.701, allocations: 7.906 kB / 0.7607 GB, free: 2.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-06/0.7011, allocations: 7.125 kB / 0.7607 GB, free: 2.715 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.084e-05/0.7011, allocations: 314.8 kB / 0.761 GB, free: 2.398 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.528e-05/0.7012, allocations: 23.42 kB / 0.761 GB, free: 2.379 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.195e-05/0.7013, allocations: 29.08 kB / 0.761 GB, free: 2.348 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.535e-05/0.7014, allocations: 11.62 kB / 0.7611 GB, free: 2.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7014, allocations: 0 / 0.7611 GB, free: 2.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001941/0.7016, allocations: 64.05 kB / 0.7611 GB, free: 2.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.7017, allocations: 8.031 kB / 0.7611 GB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.7017, allocations: 0 / 0.7611 GB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.7017, allocations: 0 / 0.7611 GB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.392e-05/0.7018, allocations: 7.953 kB / 0.7611 GB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.7018, allocations: 3.984 kB / 0.7611 GB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.7019, allocations: 11.94 kB / 0.7612 GB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.7019, allocations: 4 kB / 0.7612 GB, free: 2.242 MB / 346.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.021e-05/0.702, allocations: 117.8 kB / 0.7613 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.419e-05/0.7021, allocations: 7.906 kB / 0.7613 GB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.7021, allocations: 3.531 kB / 0.7613 GB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.7021, allocations: 144 / 0.7613 GB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.7021, allocations: 7.938 kB / 0.7613 GB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.7022, allocations: 4 kB / 0.7613 GB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.7023, allocations: 167.5 kB / 0.7614 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.7024, allocations: 0 / 0.7614 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-05/0.7024, allocations: 4 kB / 0.7615 GB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.7024, allocations: 0 / 0.7615 GB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.7025, allocations: 7.984 kB / 0.7615 GB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.7025, allocations: 0 / 0.7615 GB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.7025, allocations: 4 kB / 0.7615 GB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002106/0.7027, allocations: 149.2 kB / 0.7616 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.7027, allocations: 84.95 kB / 0.7617 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.7028, allocations: 7.109 kB / 0.7617 GB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.7029, allocations: 12.03 kB / 0.7617 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.703, allocations: 7.984 kB / 0.7617 GB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.703, allocations: 0 / 0.7617 GB, free: 1.594 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.088e-05/0.703, allocations: 90.08 kB / 0.7618 GB, free: 1.508 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7031, allocations: 0 / 0.7618 GB, free: 1.508 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002699/0.7033, allocations: 7.953 kB / 0.7618 GB, free: 1.5 MB / 346.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 8.846e-05/0.7034, allocations: 102.4 kB / 0.7619 GB, free: 1.391 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002113/0.7037, allocations: 31.11 kB / 0.7619 GB, free: 1.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.7037, allocations: 0 / 0.7619 GB, free: 1.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.202e-05/0.7038, allocations: 15.11 kB / 0.7619 GB, free: 1.352 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.7041, allocations: 9.906 kB / 0.762 GB, free: 1.348 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.7044, allocations: 140.2 kB / 0.7621 GB, free: 1.188 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.7045, allocations: 0.6848 MB / 0.7628 GB, free: 488 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.875e-05/0.7046, allocations: 0 / 0.7628 GB, free: 488 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.7047, allocations: 7.438 kB / 0.7628 GB, free: 480 kB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.7047, allocations: 0 / 0.7628 GB, free: 480 kB / 346.7 MB Notification: Performance of Templates: time 0.00307/0.7077, allocations: 494.1 kB / 0.7632 GB, free: 0 / 346.7 MB