Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadModel(ModelicaTest): time 2.135/2.135, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.913e-05/1.924e-05, allocations: 0 / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2817, allocations: 54.86 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.152/0.4338, allocations: 79.45 MB / 437.5 MB, free: 15.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.4341, allocations: 63.97 kB / 437.5 MB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003331/0.4374, allocations: 0.9074 MB / 438.5 MB, free: 14.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.002e-06/0.4374, allocations: 0 / 438.5 MB, free: 14.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.597e-06/0.4375, allocations: 0 / 438.5 MB, free: 14.43 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.0003994/0.4379, allocations: 342.4 kB / 438.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.4379, allocations: 12.03 kB / 438.8 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.367e-05/0.438, allocations: 3.953 kB / 438.8 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.4381, allocations: 167 kB / 439 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.4382, allocations: 0 / 439 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.4382, allocations: 0 / 439 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.316e-05/0.4383, allocations: 19.94 kB / 439 MB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.4384, allocations: 59.38 kB / 439 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.472e-06/0.4384, allocations: 3.938 kB / 439 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.4384, allocations: 4 kB / 439.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.585e-06/0.4385, allocations: 3.953 kB / 439.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004011/0.4389, allocations: 237.5 kB / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.165e-05/0.439, allocations: 30.52 kB / 439.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.508e-05/0.439, allocations: 20.86 kB / 439.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.439, allocations: 3.984 kB / 439.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.4391, allocations: 30.56 kB / 439.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 2.12e-06/0.4391, allocations: 0 / 439.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.00016/0.4392, allocations: 37.7 kB / 439.4 MB, free: 13.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.4393, allocations: 85.06 kB / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.921e-05/0.4394, allocations: 96.98 kB / 439.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.4395, allocations: 29.7 kB / 439.6 MB, free: 13.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.264e-05/0.4396, allocations: 162.5 kB / 439.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.4396, allocations: 3.906 kB / 439.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-06/0.4396, allocations: 0 / 439.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.4398, allocations: 310.8 kB / 440.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.753e-05/0.4398, allocations: 8 kB / 440.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.224e-05/0.4399, allocations: 29.64 kB / 440.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.815e-05/0.4399, allocations: 4 kB / 440.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.273e-06/0.4399, allocations: 0 / 440.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001145/0.4401, allocations: 49.72 kB / 440.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.4401, allocations: 4 kB / 440.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.4401, allocations: 0 / 440.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.4401, allocations: 0 / 440.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.253e-05/0.4402, allocations: 4 kB / 440.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.879e-06/0.4402, allocations: 0 / 440.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.717e-05/0.4403, allocations: 15.94 kB / 440.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.4404, allocations: 4 kB / 440.2 MB, free: 12.46 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 () * 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 0.0001049/0.4405, allocations: 109 kB / 440.3 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/0.4405, allocations: 7.906 kB / 440.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.437e-05/0.4406, allocations: 7.953 kB / 440.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.708e-06/0.4406, allocations: 0 / 440.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.49e-06/0.4406, allocations: 0 / 440.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.855e-06/0.4406, allocations: 0 / 440.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.4408, allocations: 146.1 kB / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-06/0.4408, allocations: 0 / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.768e-05/0.4409, allocations: 7.984 kB / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.384e-06/0.4409, allocations: 4 kB / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.162e-06/0.4409, allocations: 0 / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.59e-06/0.4409, allocations: 0 / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.252e-06/0.4409, allocations: 3.938 kB / 440.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.4411, allocations: 147.4 kB / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.163e-05/0.4412, allocations: 77.11 kB / 440.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.4412, allocations: 4 kB / 440.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.4414, allocations: 16.02 kB / 440.7 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.4414, allocations: 4.125 kB / 440.7 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.4414, allocations: 11.98 kB / 440.7 MB, free: 11.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.526e-05/0.4415, allocations: 91.56 kB / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.4415, allocations: 0 / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002912/0.4418, allocations: 4 kB / 440.8 MB, free: 11.76 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) * 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.0001204/0.442, allocations: 95.25 kB / 440.9 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001006/0.4421, allocations: 23.94 kB / 440.9 MB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.517e-06/0.4421, allocations: 0 / 440.9 MB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.293e-05/0.4421, allocations: 8 kB / 440.9 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.4423, allocations: 3.953 kB / 441 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002437/0.4426, allocations: 89.64 kB / 441 MB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.443, allocations: 0.6846 MB / 441.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.443, allocations: 7.438 kB / 441.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.452e-06/0.443, allocations: 4.062 kB / 441.7 MB, free: 10.78 MB / 378.7 MB Notification: Performance of Templates: time 0.002139/0.4452, allocations: 0.6159 MB / 442.4 MB, free: 10.16 MB / 378.7 MB