Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 2.291/2.291, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003522, allocations: 12 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09438, allocations: 44.5 MB / 309 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4319/0.5264, allocations: 97.74 MB / 406.8 MB, free: 16.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.5267, allocations: 85.33 kB / 406.9 MB, free: 16.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4114/0.9381, allocations: 123.2 MB / 0.5176 GB, free: 6.883 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.9382, allocations: 4 kB / 0.5176 GB, free: 6.879 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.547e-05/0.9383, allocations: 40 kB / 0.5177 GB, free: 6.84 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.009124/0.9474, allocations: 3.246 MB / 0.5209 GB, free: 3.523 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.9475, allocations: 8.031 kB / 0.5209 GB, free: 3.516 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008235/0.9483, allocations: 379.4 kB / 0.5212 GB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006327/0.9546, allocations: 2.263 MB / 0.5234 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.09e-05/0.9547, allocations: 37 kB / 0.5235 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.955, allocations: 51.91 kB / 0.5235 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3376/1.293, allocations: 0.8254 MB / 0.5243 GB, free: 82.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/1.293, allocations: 3.656 kB / 0.5243 GB, free: 82.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001843/1.293, allocations: 18.5 kB / 0.5243 GB, free: 82.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.334e-05/1.293, allocations: 22.08 kB / 0.5244 GB, free: 82.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003634/1.297, allocations: 0.8266 MB / 0.5252 GB, free: 82.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.011/1.308, allocations: 2.935 MB / 0.528 GB, free: 81.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/1.311, allocations: 0.7285 MB / 0.5287 GB, free: 81.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06675/1.378, allocations: 35.91 MB / 0.5638 GB, free: 55.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/1.379, allocations: 390.8 kB / 0.5642 GB, free: 55.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.519e-06/1.379, allocations: 0 / 0.5642 GB, free: 55.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.005293/1.384, allocations: 1.468 MB / 0.5656 GB, free: 54.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/1.384, allocations: 264.4 kB / 0.5659 GB, free: 54.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004979/1.389, allocations: 2.789 MB / 0.5686 GB, free: 54.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001643/1.389, allocations: 32.45 kB / 0.5686 GB, free: 54.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/1.391, allocations: 1.394 MB / 0.57 GB, free: 54.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/1.391, allocations: 167.9 kB / 0.5701 GB, free: 54.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.865e-05/1.391, allocations: 16.09 kB / 0.5702 GB, free: 54.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.091e-05/1.392, allocations: 341.7 kB / 0.5705 GB, free: 53.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009626/1.392, allocations: 257.5 kB / 0.5707 GB, free: 53.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/1.394, allocations: 0.6509 MB / 0.5714 GB, free: 53.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/1.395, allocations: 341.1 kB / 0.5717 GB, free: 53.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/1.395, allocations: 7.125 kB / 0.5717 GB, free: 53.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003423/1.398, allocations: 1.321 MB / 0.573 GB, free: 53.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/1.398, allocations: 11.44 kB / 0.573 GB, free: 53.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/1.398, allocations: 81.55 kB / 0.5731 GB, free: 53.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000795/1.399, allocations: 275.8 kB / 0.5733 GB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009932/1.4, allocations: 187.1 kB / 0.5735 GB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/1.401, allocations: 0.8745 MB / 0.5744 GB, free: 52.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/1.403, allocations: 128.1 kB / 0.5745 GB, free: 52.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/1.403, allocations: 65.06 kB / 0.5746 GB, free: 52.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.001235/1.405, allocations: 427.2 kB / 0.575 GB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004758/1.405, allocations: 378 kB / 0.5753 GB, free: 52.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/1.41, allocations: 1.354 MB / 0.5767 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/1.41, allocations: 7.328 kB / 0.5767 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/1.41, allocations: 3.953 kB / 0.5767 GB, free: 52.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/1.41, allocations: 0 / 0.5767 GB, free: 52.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005632/1.416, allocations: 2.262 MB / 0.5789 GB, free: 51.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001398/1.416, allocations: 68.41 kB / 0.5789 GB, free: 51.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005569/1.417, allocations: 74.77 kB / 0.579 GB, free: 51.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006871/1.417, allocations: 263.3 kB / 0.5793 GB, free: 51.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.958e-05/1.418, allocations: 27.12 kB / 0.5793 GB, free: 51.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/1.419, allocations: 0.8636 MB / 0.5801 GB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.419, allocations: 0 / 0.5801 GB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/1.422, allocations: 1.164 MB / 0.5813 GB, free: 50.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/1.423, allocations: 486.9 kB / 0.5817 GB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005696/1.423, allocations: 14.64 kB / 0.5817 GB, free: 50.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/1.425, allocations: 42.55 kB / 0.5818 GB, free: 50.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/1.425, allocations: 67.23 kB / 0.5818 GB, free: 50.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-05/1.425, allocations: 41.92 kB / 0.5819 GB, free: 50.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00381/1.429, allocations: 1.797 MB / 0.5836 GB, free: 50.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.429, allocations: 0 / 0.5836 GB, free: 50.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002553/1.431, allocations: 0.623 MB / 0.5843 GB, free: 50.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001801/1.433, allocations: 0.8531 MB / 0.5851 GB, free: 50.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002836/1.436, allocations: 0.8825 MB / 0.5859 GB, free: 50.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/1.436, allocations: 5.219 kB / 0.586 GB, free: 50.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/1.438, allocations: 0.5035 MB / 0.5864 GB, free: 49.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002561/1.44, allocations: 476.2 kB / 0.5869 GB, free: 49.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008142/1.448, allocations: 4.432 MB / 0.5912 GB, free: 47.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/1.45, allocations: 1.672 MB / 0.5929 GB, free: 46.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001899/1.451, allocations: 340.3 kB / 0.5932 GB, free: 46.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/1.452, allocations: 139.5 kB / 0.5933 GB, free: 46.92 MB / 410.7 MB Notification: Performance of SimCode: time 9.11e-07/1.452, allocations: 0 / 0.5933 GB, free: 46.92 MB / 410.7 MB Notification: Performance of Templates: time 0.08434/1.536, allocations: 31.55 MB / 0.6241 GB, free: 39.44 MB / 410.7 MB