Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 2.53/2.53, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005479/0.0005482, allocations: 15.92 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1048, allocations: 44.5 MB / 309 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4674/0.5723, allocations: 76.73 MB / 385.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003814/0.5728, allocations: 74.84 kB / 385.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09826/0.6711, allocations: 13.94 MB / 399.8 MB, free: 13.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.6711, allocations: 4 kB / 399.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.42e-05/0.6712, allocations: 15.62 kB / 399.8 MB, free: 13.8 MB / 314.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.009803/0.681, allocations: 1.408 MB / 401.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.6811, allocations: 7.75 kB / 401.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006328/0.6818, allocations: 93.55 kB / 401.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00337/0.6852, allocations: 0.5832 MB / 401.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.6854, allocations: 49.31 kB / 401.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004571/0.6858, allocations: 59.03 kB / 402 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005853/0.6917, allocations: 0.8636 MB / 402.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/0.6919, allocations: 0 / 402.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/0.6921, allocations: 25.59 kB / 402.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.6921, allocations: 15.38 kB / 402.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008384/0.7005, allocations: 1.104 MB / 404 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.7116, allocations: 2.342 MB / 406.4 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00608/0.7178, allocations: 0.8712 MB / 407.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.718, allocations: 8.25 kB / 407.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00417/0.7222, allocations: 0.6272 MB / 407.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 5.49e-06/0.7222, allocations: 4 kB / 407.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.1332/0.8555, allocations: 15.33 MB / 423.2 MB, free: 5.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.8556, allocations: 144.7 kB / 423.3 MB, free: 4.953 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008157/0.8565, allocations: 0.502 MB / 423.8 MB, free: 4.758 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003073/0.8568, allocations: 43.45 kB / 423.9 MB, free: 4.727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.8571, allocations: 375.6 kB / 424.2 MB, free: 4.496 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003977/0.8575, allocations: 314.5 kB / 424.6 MB, free: 4.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.8577, allocations: 22.47 kB / 424.6 MB, free: 4.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.8578, allocations: 386.9 kB / 425 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004856/0.8627, allocations: 1.012 MB / 426 MB, free: 3.711 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00504/0.8678, allocations: 1.222 MB / 427.2 MB, free: 3.277 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004951/0.8728, allocations: 1.081 MB / 428.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.8728, allocations: 0 / 428.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06165/0.9345, allocations: 7.382 MB / 435.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.9347, allocations: 60.97 kB / 435.7 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.9347, allocations: 4 kB / 435.7 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06435/0.9991, allocations: 6.705 MB / 442.4 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/1.001, allocations: 181.5 kB / 442.6 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01743/1.018, allocations: 3.703 MB / 446.3 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006059/1.024, allocations: 294.9 kB / 446.6 MB, free: 2.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003797/1.025, allocations: 43.84 kB / 446.6 MB, free: 2.879 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.0007407/1.025, allocations: 222.5 kB / 446.8 MB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/1.026, allocations: 79.06 kB / 446.9 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04973/1.075, allocations: 5.945 MB / 452.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.535e-05/1.076, allocations: 12 kB / 452.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/1.076, allocations: 3.984 kB / 452.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/1.076, allocations: 3.984 kB / 452.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/1.078, allocations: 1.256 MB / 454.1 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.078, allocations: 4 kB / 454.1 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/1.08, allocations: 131.8 kB / 454.3 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06808/1.148, allocations: 6.657 MB / 460.9 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003531/1.148, allocations: 23.97 kB / 461 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06639/1.214, allocations: 10.81 MB / 471.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.214, allocations: 3.984 kB / 471.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05548/1.27, allocations: 7.119 MB / 478.9 MB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009439/1.271, allocations: 283.9 kB / 479.2 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003161/1.271, allocations: 23.95 kB / 479.2 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00339/1.275, allocations: 287.7 kB / 479.5 MB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007224/1.275, allocations: 140.8 kB / 479.6 MB, free: 2.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/1.276, allocations: 31.97 kB / 479.6 MB, free: 2.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006493/1.276, allocations: 342.9 kB / 480 MB, free: 1.945 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.276, allocations: 0 / 480 MB, free: 1.945 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001477/1.278, allocations: 324 kB / 480.3 MB, free: 1.629 MB / 362.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.0003686/1.278, allocations: 139.2 kB / 480.4 MB, free: 1.484 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01382/1.292, allocations: 2.598 MB / 483 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.292, allocations: 0 / 483 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01085/1.303, allocations: 1.76 MB / 484.8 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/1.304, allocations: 106.2 kB / 484.9 MB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/1.318, allocations: 2.897 MB / 487.8 MB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007236/1.319, allocations: 0.9704 MB / 488.8 MB, free: 9.066 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005548/1.319, allocations: 62.2 kB / 488.8 MB, free: 9.004 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/1.319, allocations: 31.44 kB / 488.9 MB, free: 8.973 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/1.319, allocations: 0 / 488.9 MB, free: 8.973 MB / 378.7 MB Notification: Performance of Templates: time 0.08599/1.405, allocations: 28.15 MB / 0.5049 GB, free: 12.84 MB / 410.7 MB