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.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.617/1.617, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003534, allocations: 8 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06643/0.06681, allocations: 38.78 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2874/0.3543, allocations: 71.59 MB / 343.6 MB, free: 2.441 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.3545, allocations: 75.27 kB / 343.7 MB, free: 2.402 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06063/0.4152, allocations: 13.99 MB / 357.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.288e-06/0.4152, allocations: 0 / 357.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.988e-05/0.4153, allocations: 16 kB / 357.7 MB, free: 6.156 MB / 282.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.004385/0.4197, allocations: 1.417 MB / 359.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4197, allocations: 12.03 kB / 359.1 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000246/0.42, allocations: 90.97 kB / 359.2 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.4216, allocations: 0.5871 MB / 359.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.42e-05/0.4217, allocations: 43.31 kB / 359.8 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.4219, allocations: 64.81 kB / 359.9 MB, free: 4.012 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/0.4245, allocations: 0.86 MB / 360.8 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.4245, allocations: 0 / 360.8 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.4247, allocations: 25.88 kB / 360.8 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.4247, allocations: 12 kB / 360.8 MB, free: 3.34 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003761/0.4285, allocations: 1.11 MB / 361.9 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005367/0.4338, allocations: 2.362 MB / 364.3 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003002/0.4369, allocations: 0.8672 MB / 365.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-05/0.437, allocations: 12.42 kB / 365.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001995/0.439, allocations: 0.6216 MB / 365.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 4.021e-06/0.439, allocations: 4 kB / 365.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1185/0.5575, allocations: 15.41 MB / 381.2 MB, free: 1.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.5577, allocations: 145.5 kB / 381.3 MB, free: 1.398 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.5589, allocations: 451.9 kB / 381.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002905/0.5592, allocations: 43.39 kB / 381.8 MB, free: 1.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004378/0.5596, allocations: 407.5 kB / 382.2 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005536/0.5602, allocations: 315.4 kB / 382.5 MB, free: 432 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.5604, allocations: 18.56 kB / 382.5 MB, free: 428 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.5607, allocations: 353.2 kB / 382.9 MB, free: 84 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005342/0.566, allocations: 1.01 MB / 383.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005855/0.5719, allocations: 1.224 MB / 385.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006448/0.5784, allocations: 1.083 MB / 386.2 MB, free: 13.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.68e-05/0.5785, allocations: 8 kB / 386.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06798/0.6465, allocations: 7.352 MB / 393.6 MB, free: 6.043 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.6467, allocations: 67.48 kB / 393.6 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.905e-05/0.6468, allocations: 15.98 kB / 393.6 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04513/0.6919, allocations: 6.727 MB / 400.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009294/0.6929, allocations: 179.7 kB / 400.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/0.7038, allocations: 3.727 MB / 404.3 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.7063, allocations: 296 kB / 404.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/0.7065, allocations: 47.97 kB / 404.6 MB, free: 10.91 MB / 330.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.0006567/0.7072, allocations: 221.7 kB / 404.8 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.7075, allocations: 87.06 kB / 404.9 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03121/0.7387, allocations: 5.954 MB / 410.9 MB, free: 4.629 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.7388, allocations: 11.98 kB / 410.9 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.259e-06/0.7388, allocations: 0 / 410.9 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-05/0.7388, allocations: 3.984 kB / 410.9 MB, free: 4.613 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002338/0.7412, allocations: 1.264 MB / 412.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.411e-06/0.7412, allocations: 0 / 412.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000723/0.7419, allocations: 119.9 kB / 412.2 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04002/0.782, allocations: 6.684 MB / 418.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002478/0.7823, allocations: 27.97 kB / 419 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0416/0.8239, allocations: 10.87 MB / 429.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.298e-06/0.8239, allocations: 0 / 429.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2575/1.081, allocations: 7.131 MB / 437 MB, free: 111.9 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/1.082, allocations: 146.6 kB / 437.1 MB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/1.082, allocations: 19.34 kB / 437.1 MB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002014/1.084, allocations: 289.5 kB / 437.4 MB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005174/1.085, allocations: 146.2 kB / 437.5 MB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/1.085, allocations: 31.62 kB / 437.6 MB, free: 111.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005168/1.085, allocations: 341.6 kB / 437.9 MB, free: 111.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.085, allocations: 0 / 437.9 MB, free: 111.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001246/1.086, allocations: 329.6 kB / 438.2 MB, free: 111.7 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.0002877/1.087, allocations: 136.1 kB / 438.4 MB, free: 111.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008719/1.096, allocations: 2.605 MB / 441 MB, free: 111.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.409e-06/1.096, allocations: 4.703 kB / 441 MB, free: 111.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006616/1.102, allocations: 1.764 MB / 442.7 MB, free: 111.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000803/1.103, allocations: 109.7 kB / 442.8 MB, free: 111.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00959/1.113, allocations: 2.925 MB / 445.8 MB, free: 110.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/1.113, allocations: 0.9687 MB / 446.7 MB, free: 109.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/1.113, allocations: 34.66 kB / 446.8 MB, free: 109.8 MB / 346.7 MB Notification: Performance of SimCode: time 1.53e-06/1.113, allocations: 0 / 446.8 MB, free: 109.8 MB / 346.7 MB Notification: Performance of Templates: time 0.02383/1.137, allocations: 18.01 MB / 464.8 MB, free: 100.4 MB / 346.7 MB