Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor") Notification: Performance of loadModel(Modelica): time 1.665/1.665, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.242e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0705/0.07055, allocations: 38.77 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/0.348, allocations: 67.05 MB / 328.3 MB, free: 5.23 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.3483, allocations: 70.28 kB / 328.4 MB, free: 5.195 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01062/0.3589, allocations: 2.709 MB / 331.1 MB, free: 2.902 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.359, allocations: 0 / 331.1 MB, free: 2.902 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.359, allocations: 4 kB / 331.1 MB, free: 2.898 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005707/0.3596, allocations: 409.2 kB / 331.5 MB, free: 2.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.3596, allocations: 12.03 kB / 331.5 MB, free: 2.449 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.3598, allocations: 15.81 kB / 331.5 MB, free: 2.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.3601, allocations: 205.4 kB / 331.7 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.3601, allocations: 4 kB / 331.7 MB, free: 2.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.3602, allocations: 7.953 kB / 331.8 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001886/0.3604, allocations: 61.33 kB / 331.8 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.3606, allocations: 95.75 kB / 331.9 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3606, allocations: 0 / 331.9 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.3606, allocations: 0 / 331.9 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.986e-06/0.3607, allocations: 4 kB / 331.9 MB, free: 2.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009805/0.3617, allocations: 0.4996 MB / 332.4 MB, free: 1.586 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.362, allocations: 76.22 kB / 332.5 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.742e-05/0.3621, allocations: 23.05 kB / 332.5 MB, free: 1.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.3621, allocations: 4 kB / 332.5 MB, free: 1.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.3621, allocations: 34.56 kB / 332.5 MB, free: 1.453 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.472e-06/0.3622, allocations: 0 / 332.5 MB, free: 1.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003805/0.3625, allocations: 104.5 kB / 332.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.3626, allocations: 54.14 kB / 332.7 MB, free: 1.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.3628, allocations: 135.3 kB / 332.8 MB, free: 1.172 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.3628, allocations: 25.7 kB / 332.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.363, allocations: 192.7 kB / 333 MB, free: 0.957 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.363, allocations: 18.09 kB / 333.1 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-06/0.363, allocations: 0 / 333.1 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3632, allocations: 325.6 kB / 333.4 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.976e-05/0.3632, allocations: 14.38 kB / 333.4 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.617e-05/0.3633, allocations: 44.33 kB / 333.4 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.949e-05/0.3634, allocations: 17.73 kB / 333.5 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.522e-06/0.3634, allocations: 0 / 333.5 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003318/0.3638, allocations: 109.5 kB / 333.6 MB, free: 468 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3638, allocations: 6.969 kB / 333.6 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.743e-06/0.3638, allocations: 0 / 333.6 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/0.3641, allocations: 43.22 kB / 333.6 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.328e-05/0.3642, allocations: 16 kB / 333.6 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/0.3659, allocations: 1.436 MB / 335.1 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.3661, allocations: 8.094 kB / 335.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.3661, allocations: 4 kB / 335.1 MB, free: 14.93 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.3662, allocations: 112.9 kB / 335.2 MB, free: 14.81 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.247e-05/0.3663, allocations: 11.86 kB / 335.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.3663, allocations: 12.36 kB / 335.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.555e-06/0.3663, allocations: 4 kB / 335.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-06/0.3664, allocations: 0 / 335.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.588e-06/0.3664, allocations: 0 / 335.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000282/0.3667, allocations: 191 kB / 335.4 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.878e-06/0.3667, allocations: 4 kB / 335.4 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.852e-05/0.3667, allocations: 7.984 kB / 335.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001828/0.3669, allocations: 32.59 kB / 335.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.367, allocations: 3.953 kB / 335.4 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001664/0.3686, allocations: 1.449 MB / 336.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.558e-06/0.3687, allocations: 0 / 336.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.369, allocations: 200 kB / 337.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.729e-05/0.3692, allocations: 92.94 kB / 337.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.3692, allocations: 0 / 337.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.3694, allocations: 11.98 kB / 337.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.3694, allocations: 4 kB / 337.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3694, allocations: 7.422 kB / 337.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001064/0.3696, allocations: 101.8 kB / 337.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.45e-07/0.3696, allocations: 0 / 337.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005063/0.3701, allocations: 39.91 kB / 337.3 MB, free: 12.62 MB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001422/0.3703, allocations: 107.2 kB / 337.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003745/0.3706, allocations: 158.7 kB / 337.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.178e-06/0.3707, allocations: 0 / 337.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.3709, allocations: 136.7 kB / 337.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.3712, allocations: 27.73 kB / 337.8 MB, free: 12.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004195/0.3716, allocations: 165.7 kB / 337.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.3721, allocations: 0.708 MB / 338.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.602e-05/0.3721, allocations: 11.44 kB / 338.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of SimCode: time 1.6e-06/0.3721, allocations: 0 / 338.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of Templates: time 0.004349/0.3765, allocations: 1.825 MB / 340.5 MB, free: 9.469 MB / 282.7 MB