Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003718, allocations: 16 kB / 233.8 MB, free: 0.9727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08445, allocations: 38.76 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3528/0.4373, allocations: 71.59 MB / 344.1 MB, free: 11.51 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/0.4377, allocations: 75.97 kB / 344.2 MB, free: 11.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07629/0.514, allocations: 14.01 MB / 358.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5141, allocations: 0 / 358.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.306e-05/0.5141, allocations: 16 kB / 358.2 MB, free: 13.37 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.007253/0.5214, allocations: 1.412 MB / 359.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.5215, allocations: 8.031 kB / 359.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005038/0.522, allocations: 86.97 kB / 359.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.5244, allocations: 0.5874 MB / 360.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.21e-05/0.5245, allocations: 45.31 kB / 360.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002709/0.5248, allocations: 64 kB / 360.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/0.5287, allocations: 0.8652 MB / 361.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.5288, allocations: 0 / 361.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.5289, allocations: 28 kB / 361.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.208e-05/0.529, allocations: 15.98 kB / 361.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005805/0.5348, allocations: 1.11 MB / 362.4 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007877/0.5427, allocations: 2.358 MB / 364.8 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004298/0.5471, allocations: 0.8606 MB / 365.7 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.5472, allocations: 16.42 kB / 365.7 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00295/0.5502, allocations: 0.6301 MB / 366.3 MB, free: 5.047 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 6.712e-06/0.5503, allocations: 0 / 366.3 MB, free: 5.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1431/0.6934, allocations: 15.4 MB / 381.7 MB, free: 5.535 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.6936, allocations: 149.4 kB / 381.9 MB, free: 5.359 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.6949, allocations: 0.5029 MB / 382.4 MB, free: 4.844 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003596/0.6953, allocations: 49.7 kB / 382.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004981/0.6958, allocations: 402.3 kB / 382.8 MB, free: 4.391 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006302/0.6965, allocations: 319.4 kB / 383.1 MB, free: 4.074 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.6967, allocations: 20 kB / 383.1 MB, free: 4.055 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.697, allocations: 346.8 kB / 383.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007128/0.7041, allocations: 1.013 MB / 384.5 MB, free: 2.695 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005581/0.7097, allocations: 1.225 MB / 385.7 MB, free: 1.395 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005443/0.7152, allocations: 1.088 MB / 386.8 MB, free: 304 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.7153, allocations: 0 / 386.8 MB, free: 304 kB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06259/0.7779, allocations: 7.368 MB / 394.2 MB, free: 8.891 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.89e-05/0.778, allocations: 67.39 kB / 394.2 MB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.778, allocations: 4 kB / 394.2 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06542/0.8435, allocations: 6.731 MB / 401 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.8449, allocations: 175.7 kB / 401.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01466/0.8596, allocations: 3.731 MB / 404.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003888/0.8636, allocations: 295.7 kB / 405.2 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/0.8638, allocations: 44.22 kB / 405.2 MB, free: 13.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0007304/0.8646, allocations: 229.7 kB / 405.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002807/0.8649, allocations: 75.06 kB / 405.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04941/0.9143, allocations: 5.962 MB / 411.5 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.366e-05/0.9144, allocations: 12 kB / 411.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.9144, allocations: 0 / 411.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-05/0.9144, allocations: 7.984 kB / 411.5 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002733/0.9172, allocations: 1.264 MB / 412.7 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.9172, allocations: 0 / 412.7 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.9183, allocations: 119.9 kB / 412.9 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2877/1.206, allocations: 6.684 MB / 419.5 MB, free: 109.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000336/1.206, allocations: 25.11 kB / 419.6 MB, free: 109.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05899/1.265, allocations: 10.85 MB / 430.4 MB, free: 107.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/1.265, allocations: 1.188 kB / 430.4 MB, free: 107.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0535/1.319, allocations: 7.143 MB / 437.6 MB, free: 105.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/1.319, allocations: 144.8 kB / 437.7 MB, free: 105.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004247/1.32, allocations: 15.31 kB / 437.7 MB, free: 105.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/1.323, allocations: 283.8 kB / 438 MB, free: 105.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008904/1.324, allocations: 151.3 kB / 438.1 MB, free: 105.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.324, allocations: 32.45 kB / 438.2 MB, free: 105.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005952/1.325, allocations: 346.2 kB / 438.5 MB, free: 105.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.325, allocations: 0 / 438.5 MB, free: 105.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001659/1.327, allocations: 331.9 kB / 438.8 MB, free: 105.3 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003983/1.327, allocations: 130.9 kB / 439 MB, free: 105.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01289/1.34, allocations: 2.616 MB / 441.6 MB, free: 104.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.34, allocations: 0 / 441.6 MB, free: 104.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0102/1.35, allocations: 1.765 MB / 443.3 MB, free: 104 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/1.351, allocations: 110.3 kB / 443.5 MB, free: 103.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/1.364, allocations: 2.928 MB / 446.4 MB, free: 102.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/1.364, allocations: 0.9683 MB / 447.3 MB, free: 102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/1.365, allocations: 30.88 kB / 447.4 MB, free: 102 MB / 346.7 MB Notification: Performance of SimCode: time 1.062e-06/1.365, allocations: 0 / 447.4 MB, free: 102 MB / 346.7 MB Notification: Performance of Templates: time 0.03177/1.397, allocations: 18.01 MB / 465.4 MB, free: 88.24 MB / 346.7 MB