Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003793, allocations: 12 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08592, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.377/0.463, allocations: 71.6 MB / 344.2 MB, free: 1.863 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.4633, allocations: 71.09 kB / 344.3 MB, free: 1.828 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1023/0.5657, allocations: 14 MB / 358.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.569e-06/0.5657, allocations: 0 / 358.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.478e-05/0.5659, allocations: 12 kB / 358.3 MB, free: 5.598 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.01069/0.5766, allocations: 1.422 MB / 359.7 MB, free: 4.164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.705e-05/0.5767, allocations: 12.03 kB / 359.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000662/0.5774, allocations: 94.91 kB / 359.8 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/0.581, allocations: 0.5755 MB / 360.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.5812, allocations: 48.69 kB / 360.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004343/0.5816, allocations: 69.36 kB / 360.5 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005912/0.5876, allocations: 0.8619 MB / 361.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.2e-05/0.5877, allocations: 0 / 361.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001858/0.5879, allocations: 28.75 kB / 361.4 MB, free: 2.785 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.588, allocations: 16 kB / 361.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00896/0.5969, allocations: 1.102 MB / 362.5 MB, free: 1.914 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01185/0.6088, allocations: 2.362 MB / 364.9 MB, free: 36 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006697/0.6156, allocations: 0.868 MB / 365.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.6158, allocations: 8.438 kB / 365.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004478/0.6203, allocations: 0.632 MB / 366.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 6.392e-06/0.6204, allocations: 0 / 366.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1816/0.8019, allocations: 15.4 MB / 381.8 MB, free: 1.012 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.8022, allocations: 149.4 kB / 381.9 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.8036, allocations: 0.4985 MB / 382.4 MB, free: 448 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004485/0.804, allocations: 47 kB / 382.5 MB, free: 408 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/0.8046, allocations: 376.2 kB / 382.8 MB, free: 128 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000665/0.8053, allocations: 317.2 kB / 383.2 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/0.8055, allocations: 22.69 kB / 383.2 MB, free: 15.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003106/0.8058, allocations: 388.8 kB / 383.6 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007883/0.8138, allocations: 1.009 MB / 384.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008222/0.822, allocations: 1.223 MB / 385.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007997/0.8301, allocations: 1.079 MB / 386.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-05/0.8302, allocations: 4 kB / 386.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.09046/0.9207, allocations: 7.406 MB / 394.3 MB, free: 5.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.9209, allocations: 63.41 kB / 394.3 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.369e-05/0.9209, allocations: 4 kB / 394.3 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09676/1.018, allocations: 6.731 MB / 401.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002108/1.02, allocations: 179.7 kB / 401.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02245/1.042, allocations: 3.735 MB / 405 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005757/1.048, allocations: 295.8 kB / 405.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005121/1.049, allocations: 43.98 kB / 405.3 MB, free: 10.24 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.001212/1.05, allocations: 225.8 kB / 405.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005277/1.051, allocations: 75.06 kB / 405.6 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07257/1.123, allocations: 5.958 MB / 411.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.168e-05/1.123, allocations: 15.98 kB / 411.6 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.123, allocations: 0 / 411.6 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.619e-05/1.123, allocations: 7.969 kB / 411.6 MB, free: 3.938 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/1.127, allocations: 1.264 MB / 412.9 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/1.128, allocations: 0 / 412.9 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/1.129, allocations: 127.8 kB / 413 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.09004/1.219, allocations: 6.68 MB / 419.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004402/1.22, allocations: 27.94 kB / 419.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08738/1.307, allocations: 10.87 MB / 430.6 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.307, allocations: 0 / 430.6 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3464/1.654, allocations: 7.132 MB / 437.7 MB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/1.654, allocations: 147.4 kB / 437.8 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004442/1.654, allocations: 22.77 kB / 437.9 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00342/1.658, allocations: 287.4 kB / 438.1 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007852/1.659, allocations: 143.3 kB / 438.3 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/1.659, allocations: 25.28 kB / 438.3 MB, free: 111.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006156/1.659, allocations: 348.3 kB / 438.6 MB, free: 111.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.659, allocations: 1.375 kB / 438.6 MB, free: 111.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001644/1.661, allocations: 324.8 kB / 439 MB, free: 111.6 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.0004045/1.662, allocations: 138.1 kB / 439.1 MB, free: 111.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01329/1.675, allocations: 2.603 MB / 441.7 MB, free: 111.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.675, allocations: 3.906 kB / 441.7 MB, free: 111.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01019/1.685, allocations: 1.765 MB / 443.5 MB, free: 111.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/1.686, allocations: 115.1 kB / 443.6 MB, free: 111.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/1.699, allocations: 2.88 MB / 446.5 MB, free: 110.4 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/1.699, allocations: 0.971 MB / 447.4 MB, free: 109.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005114/1.7, allocations: 57.95 kB / 447.5 MB, free: 109.7 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/1.7, allocations: 34.53 kB / 447.5 MB, free: 109.7 MB / 346.7 MB Notification: Performance of SimCode: time 1.042e-06/1.7, allocations: 0 / 447.5 MB, free: 109.7 MB / 346.7 MB Notification: Performance of Templates: time 0.06438/1.764, allocations: 28.28 MB / 475.8 MB, free: 89.43 MB / 346.7 MB