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.603/1.603, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.6e-05, allocations: 4 kB / 228.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2043, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1126/0.317, allocations: 71.52 MB / 339.1 MB, free: 1.824 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.3172, allocations: 63.97 kB / 339.2 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06471/0.382, allocations: 13.99 MB / 353.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.319e-06/0.382, allocations: 4 kB / 353.2 MB, free: 3.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.872e-05/0.3821, allocations: 12 kB / 353.2 MB, free: 3.695 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.004541/0.3866, allocations: 1.323 MB / 354.5 MB, free: 2.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.3867, allocations: 12.03 kB / 354.5 MB, free: 2.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003147/0.387, allocations: 90.95 kB / 354.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.3888, allocations: 0.5835 MB / 355.2 MB, free: 1.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.632e-05/0.3889, allocations: 41.31 kB / 355.2 MB, free: 1.543 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000183/0.3891, allocations: 68 kB / 355.3 MB, free: 1.477 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.3909, allocations: 0.6234 MB / 355.9 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/0.3909, allocations: 0 / 355.9 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.3911, allocations: 27.94 kB / 355.9 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.3911, allocations: 16 kB / 356 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.3929, allocations: 0.6339 MB / 356.6 MB, free: 172 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1815/0.5744, allocations: 2.344 MB / 358.9 MB, free: 74.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.5758, allocations: 0.501 MB / 359.4 MB, free: 74.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007198/0.5765, allocations: 307 kB / 359.7 MB, free: 74.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-05/0.5766, allocations: 12.83 kB / 359.7 MB, free: 74.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008921/0.5775, allocations: 402.5 kB / 360.1 MB, free: 74.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 4.104e-06/0.5775, allocations: 0 / 360.1 MB, free: 74.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06012/0.6377, allocations: 10.57 MB / 370.7 MB, free: 72.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.6378, allocations: 142 kB / 370.8 MB, free: 72.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007178/0.6385, allocations: 450.6 kB / 371.3 MB, free: 72.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001926/0.6387, allocations: 43.39 kB / 371.3 MB, free: 72.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.639, allocations: 411.4 kB / 371.7 MB, free: 71.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.6393, allocations: 318.1 kB / 372 MB, free: 71.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.6394, allocations: 16 kB / 372.1 MB, free: 71.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.6395, allocations: 356.2 kB / 372.4 MB, free: 71.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.641, allocations: 0.548 MB / 373 MB, free: 70.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.6426, allocations: 0.75 MB / 373.7 MB, free: 69.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.6441, allocations: 0.6195 MB / 374.3 MB, free: 69.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.428e-06/0.6442, allocations: 0 / 374.3 MB, free: 69.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03681/0.681, allocations: 6.168 MB / 380.5 MB, free: 63.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.276e-05/0.6811, allocations: 64.48 kB / 380.6 MB, free: 63.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.6811, allocations: 4 kB / 380.6 MB, free: 63.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03568/0.7168, allocations: 6.092 MB / 386.7 MB, free: 56.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009059/0.7178, allocations: 187.7 kB / 386.8 MB, free: 56.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006139/0.7239, allocations: 2.931 MB / 389.8 MB, free: 53.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002372/0.7263, allocations: 291.8 kB / 390 MB, free: 53.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.7265, allocations: 47.97 kB / 390.1 MB, free: 53.45 MB / 298.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 () * 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.0003424/0.7269, allocations: 171.5 kB / 390.3 MB, free: 53.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.7271, allocations: 83 kB / 390.3 MB, free: 53.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02397/0.7511, allocations: 4.759 MB / 395.1 MB, free: 48.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/0.7511, allocations: 12 kB / 395.1 MB, free: 48.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.33e-06/0.7512, allocations: 6.312 kB / 395.1 MB, free: 48.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.7512, allocations: 3.984 kB / 395.1 MB, free: 48.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.7532, allocations: 1.264 MB / 396.4 MB, free: 47.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.803e-06/0.7533, allocations: 0 / 396.4 MB, free: 47.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/0.7541, allocations: 131.8 kB / 396.5 MB, free: 46.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03464/0.7887, allocations: 6.044 MB / 402.6 MB, free: 40.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002242/0.789, allocations: 27.97 kB / 402.6 MB, free: 40.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02881/0.8178, allocations: 8.693 MB / 411.3 MB, free: 32.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.789e-06/0.8179, allocations: 0 / 411.3 MB, free: 32.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02582/0.8437, allocations: 5.486 MB / 416.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/0.844, allocations: 140.2 kB / 416.9 MB, free: 26.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.8442, allocations: 24.05 kB / 416.9 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002069/0.8463, allocations: 283.7 kB / 417.2 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000524/0.8468, allocations: 136.6 kB / 417.3 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.847, allocations: 27.98 kB / 417.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005068/0.8475, allocations: 341.6 kB / 417.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.8475, allocations: 0 / 417.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001222/0.8488, allocations: 338.4 kB / 418 MB, free: 25.26 MB / 298.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) * 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.000293/0.8491, allocations: 139.1 kB / 418.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00481/0.8539, allocations: 1.669 MB / 419.8 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.535e-06/0.8539, allocations: 0.5625 kB / 419.8 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004657/0.8586, allocations: 1.285 MB / 421.1 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008172/0.8595, allocations: 121.3 kB / 421.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00678/0.8663, allocations: 1.934 MB / 423.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.8667, allocations: 0.9782 MB / 424.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.867, allocations: 35.44 kB / 424.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of SimCode: time 1.649e-06/0.867, allocations: 0 / 424.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of Templates: time 0.02667/0.8937, allocations: 18.14 MB / 442.3 MB, free: 0.9297 MB / 298.7 MB