Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003644, allocations: 15.98 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07733/0.07772, allocations: 44.5 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3274/0.4052, allocations: 76.73 MB / 385.2 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4054, allocations: 74.38 kB / 385.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05637/0.4618, allocations: 13.93 MB / 399.2 MB, free: 17.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.266e-06/0.4619, allocations: 0 / 399.2 MB, free: 17.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.543e-05/0.4619, allocations: 19.56 kB / 399.2 MB, free: 17.53 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.003897/0.4658, allocations: 1.408 MB / 400.6 MB, free: 16.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.4659, allocations: 7.625 kB / 400.6 MB, free: 16.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.4661, allocations: 92.08 kB / 400.7 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.4676, allocations: 0.5842 MB / 401.3 MB, free: 16.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.474e-05/0.4677, allocations: 44.28 kB / 401.3 MB, free: 16.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.4678, allocations: 65.34 kB / 401.4 MB, free: 16.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/0.4704, allocations: 0.8604 MB / 402.3 MB, free: 16.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/0.4704, allocations: 0 / 402.3 MB, free: 16.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.843e-05/0.4705, allocations: 28.91 kB / 402.3 MB, free: 16.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.4705, allocations: 15.62 kB / 402.3 MB, free: 16.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003604/0.4742, allocations: 1.103 MB / 403.4 MB, free: 16.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004951/0.4791, allocations: 2.345 MB / 405.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/0.4817, allocations: 0.8691 MB / 406.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.476e-05/0.4818, allocations: 4.281 kB / 406.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001924/0.4837, allocations: 0.6236 MB / 407.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.779e-06/0.4837, allocations: 4 kB / 407.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.07819/0.5619, allocations: 15.33 MB / 422.6 MB, free: 9.398 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.562, allocations: 146.5 kB / 422.7 MB, free: 9.238 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000675/0.5627, allocations: 448.6 kB / 423.2 MB, free: 9.066 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001912/0.5629, allocations: 43.14 kB / 423.2 MB, free: 9.035 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.5632, allocations: 406.9 kB / 423.6 MB, free: 8.746 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002794/0.5634, allocations: 313.3 kB / 423.9 MB, free: 8.523 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.5636, allocations: 17.91 kB / 423.9 MB, free: 8.523 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.648e-05/0.5637, allocations: 351.8 kB / 424.3 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003283/0.567, allocations: 1.007 MB / 425.3 MB, free: 7.988 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003335/0.5703, allocations: 1.226 MB / 426.5 MB, free: 7.543 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/0.574, allocations: 1.087 MB / 427.6 MB, free: 7.289 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.168e-06/0.574, allocations: 0 / 427.6 MB, free: 7.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03574/0.6097, allocations: 7.345 MB / 434.9 MB, free: 1.965 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.027e-05/0.6098, allocations: 68.02 kB / 435 MB, free: 1.887 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.6099, allocations: 4 kB / 435 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03893/0.6488, allocations: 6.705 MB / 441.7 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009208/0.6498, allocations: 175.2 kB / 441.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.66, allocations: 3.706 MB / 445.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002398/0.6625, allocations: 294.9 kB / 445.9 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.6627, allocations: 43.61 kB / 445.9 MB, free: 8.121 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.0006133/0.6633, allocations: 226.9 kB / 446.1 MB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.6635, allocations: 83.05 kB / 446.2 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03029/0.6938, allocations: 5.951 MB / 452.2 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.248e-05/0.6939, allocations: 8 kB / 452.2 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.217e-06/0.6939, allocations: 0 / 452.2 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.431e-05/0.694, allocations: 3.984 kB / 452.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.6962, allocations: 1.247 MB / 453.4 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.114e-06/0.6962, allocations: 3.953 kB / 453.4 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006957/0.697, allocations: 131.8 kB / 453.6 MB, free: 1.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.039/0.736, allocations: 6.664 MB / 460.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000249/0.7363, allocations: 23.98 kB / 460.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04039/0.7767, allocations: 10.81 MB / 471.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.912e-06/0.7767, allocations: 4.25 kB / 471.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03489/0.8116, allocations: 7.118 MB / 478.2 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000796/0.8125, allocations: 283.9 kB / 478.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.8127, allocations: 27.95 kB / 478.5 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002097/0.8148, allocations: 279.8 kB / 478.8 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005899/0.8154, allocations: 148.8 kB / 478.9 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001549/0.8156, allocations: 31.92 kB / 478.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005989/0.8162, allocations: 338.9 kB / 479.3 MB, free: 7.574 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.98e-07/0.8162, allocations: 0 / 479.3 MB, free: 7.574 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001335/0.8176, allocations: 328 kB / 479.6 MB, free: 7.254 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.000333/0.8179, allocations: 139.2 kB / 479.7 MB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009335/0.8273, allocations: 2.606 MB / 482.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.409e-06/0.8273, allocations: 0 / 482.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007095/0.8344, allocations: 1.748 MB / 484.1 MB, free: 2.719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008805/0.8354, allocations: 114.2 kB / 484.2 MB, free: 2.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009514/0.8449, allocations: 2.929 MB / 487.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007295/0.8457, allocations: 0.9704 MB / 488.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.8459, allocations: 35.44 kB / 488.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.66e-06/0.8459, allocations: 3.938 kB / 488.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of Templates: time 0.03017/0.8761, allocations: 17.87 MB / 0.4941 GB, free: 12.71 MB / 394.7 MB