Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.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.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 1.872/1.872, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003484, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08627/0.08665, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.389/0.4758, allocations: 94.12 MB / 366.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.4762, allocations: 79.84 kB / 366.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8117/1.288, allocations: 126.1 MB / 493 MB, free: 68.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.288, allocations: 0 / 493 MB, free: 68.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.044e-05/1.288, allocations: 48 kB / 493 MB, free: 68.64 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.009038/1.297, allocations: 3.31 MB / 496.3 MB, free: 65.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/1.297, allocations: 8.031 kB / 496.3 MB, free: 65.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008668/1.298, allocations: 380.3 kB / 496.7 MB, free: 64.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006091/1.304, allocations: 2.283 MB / 499 MB, free: 62.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.481e-05/1.304, allocations: 40.98 kB / 499 MB, free: 62.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/1.304, allocations: 48 kB / 499.1 MB, free: 62.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002491/1.307, allocations: 0.9001 MB / 500 MB, free: 61.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/1.307, allocations: 3.938 kB / 500 MB, free: 61.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/1.307, allocations: 24 kB / 500 MB, free: 61.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.494e-05/1.307, allocations: 19.98 kB / 0.4883 GB, free: 61.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/1.31, allocations: 0.9178 MB / 0.4892 GB, free: 60.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008218/1.318, allocations: 3.05 MB / 0.4922 GB, free: 57.42 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/1.322, allocations: 0.8573 MB / 0.493 GB, free: 56.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04734/1.369, allocations: 35.88 MB / 0.5281 GB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00208/1.371, allocations: 0.6231 MB / 0.5287 GB, free: 14.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 6.121e-06/1.371, allocations: 0 / 0.5287 GB, free: 14.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.022/1.393, allocations: 6.078 MB / 0.5346 GB, free: 8.469 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/1.393, allocations: 278 kB / 0.5349 GB, free: 8.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005018/1.398, allocations: 2.674 MB / 0.5375 GB, free: 5.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002707/1.399, allocations: 45.7 kB / 0.5375 GB, free: 5.398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/1.4, allocations: 1.299 MB / 0.5388 GB, free: 4.094 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005315/1.401, allocations: 339.1 kB / 0.5391 GB, free: 3.758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/1.401, allocations: 20 kB / 0.5391 GB, free: 3.738 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.7e-05/1.401, allocations: 345.9 kB / 0.5395 GB, free: 3.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002277/1.403, allocations: 0.5254 MB / 0.54 GB, free: 2.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002473/1.406, allocations: 0.7553 MB / 0.5407 GB, free: 2.023 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/1.408, allocations: 0.573 MB / 0.5413 GB, free: 1.453 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/1.408, allocations: 0 / 0.5413 GB, free: 1.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.007255/1.416, allocations: 2.089 MB / 0.5433 GB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/1.416, allocations: 11.95 kB / 0.5433 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003313/1.416, allocations: 124 kB / 0.5434 GB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/1.417, allocations: 264.9 kB / 0.5437 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001782/1.419, allocations: 227.7 kB / 0.5439 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2712/1.69, allocations: 13.32 MB / 0.5569 GB, free: 83.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004072/1.694, allocations: 122.7 kB / 0.557 GB, free: 83.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006249/1.695, allocations: 58.52 kB / 0.5571 GB, free: 83.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003211/1.698, allocations: 435.8 kB / 0.5575 GB, free: 83.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00154/1.7, allocations: 371.4 kB / 0.5579 GB, free: 83.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/1.717, allocations: 2.375 MB / 0.5602 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-05/1.717, allocations: 15.88 kB / 0.5602 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.13e-05/1.717, allocations: 5.031 kB / 0.5602 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.188e-05/1.717, allocations: 4.266 kB / 0.5602 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006346/1.723, allocations: 1.546 MB / 0.5617 GB, free: 82.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004735/1.724, allocations: 115.6 kB / 0.5618 GB, free: 82.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002217/1.726, allocations: 173.4 kB / 0.562 GB, free: 82.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/1.728, allocations: 261.2 kB / 0.5622 GB, free: 82.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005018/1.729, allocations: 46 kB / 0.5623 GB, free: 82.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01639/1.745, allocations: 13.33 MB / 0.5753 GB, free: 70.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/1.745, allocations: 4.406 kB / 0.5753 GB, free: 70.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/1.761, allocations: 2.722 MB / 0.578 GB, free: 69.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00256/1.764, allocations: 0.4917 MB / 0.5784 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001481/1.765, allocations: 28.33 kB / 0.5785 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003797/1.769, allocations: 114.3 kB / 0.5786 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009442/1.77, allocations: 144.5 kB / 0.5787 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000253/1.77, allocations: 48.59 kB / 0.5788 GB, free: 69.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006755/1.777, allocations: 1.751 MB / 0.5805 GB, free: 69.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.703e-06/1.777, allocations: 0 / 0.5805 GB, free: 69.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004438/1.782, allocations: 0.7126 MB / 0.5812 GB, free: 69.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003168/1.785, allocations: 0.9099 MB / 0.5821 GB, free: 69.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01004/1.795, allocations: 2.632 MB / 0.5846 GB, free: 67.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.795, allocations: 7.75 kB / 0.5846 GB, free: 67.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004078/1.799, allocations: 2.018 MB / 0.5866 GB, free: 66.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002987/1.802, allocations: 467.4 kB / 0.587 GB, free: 66.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/1.814, allocations: 5.322 MB / 0.5922 GB, free: 64.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/1.815, allocations: 1.725 MB / 0.5939 GB, free: 63.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002176/1.817, allocations: 343 kB / 0.5943 GB, free: 63.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004534/1.818, allocations: 144.1 kB / 0.5944 GB, free: 63.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.513e-06/1.818, allocations: 0 / 0.5944 GB, free: 63.5 MB / 362.7 MB Notification: Performance of Templates: time 0.09622/1.914, allocations: 35.18 MB / 0.6288 GB, free: 48.91 MB / 362.7 MB