Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001021/0.00102, allocations: 186.6 kB / 13.65 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.305/1.305, allocations: 194.3 MB / 208.4 MB, free: 6.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001596/0.001596, allocations: 118.2 kB / 253.5 MB, free: 9.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.864e-05/2.866e-05, allocations: 4 kB / 304.9 MB, free: 29.8 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0762/0.07625, allocations: 44.51 MB / 349.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3059/0.3822, allocations: 97.86 MB / 447.3 MB, free: 13.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.3824, allocations: 74.27 kB / 447.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4519/0.8343, allocations: 124 MB / 0.5579 GB, free: 81.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.8344, allocations: 0 / 0.5579 GB, free: 81.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.17e-05/0.8345, allocations: 45.59 kB / 0.558 GB, free: 81.82 MB / 394.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.004678/0.8391, allocations: 2.647 MB / 0.5606 GB, free: 80.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.8392, allocations: 7.562 kB / 0.5606 GB, free: 80.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005487/0.8398, allocations: 384.5 kB / 0.5609 GB, free: 80.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003598/0.8434, allocations: 2.257 MB / 0.5631 GB, free: 79.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.8434, allocations: 33.19 kB / 0.5632 GB, free: 79.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.8436, allocations: 54.09 kB / 0.5632 GB, free: 79.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.8447, allocations: 0.7957 MB / 0.564 GB, free: 79.47 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.8447, allocations: 0 / 0.564 GB, free: 79.47 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.8448, allocations: 20.06 kB / 0.564 GB, free: 79.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.8448, allocations: 22.2 kB / 0.564 GB, free: 79.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009051/0.8457, allocations: 0.7123 MB / 0.5647 GB, free: 79.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005082/0.8508, allocations: 3.045 MB / 0.5677 GB, free: 78.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008397/0.8517, allocations: 0.6448 MB / 0.5683 GB, free: 78.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009406/0.8526, allocations: 0.8783 MB / 0.5692 GB, free: 78.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02745/0.8801, allocations: 35.98 MB / 0.6043 GB, free: 52.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007382/0.8809, allocations: 0.5211 MB / 0.6048 GB, free: 52.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.414e-06/0.8809, allocations: 3.25 kB / 0.6049 GB, free: 52.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.006073/0.887, allocations: 3.475 MB / 0.6082 GB, free: 50.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.841e-05/0.8871, allocations: 272 kB / 0.6085 GB, free: 50.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/0.8898, allocations: 2.231 MB / 0.6107 GB, free: 49.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.806e-05/0.8899, allocations: 45.61 kB / 0.6107 GB, free: 49.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008587/0.8908, allocations: 1.298 MB / 0.612 GB, free: 48.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.891, allocations: 337.4 kB / 0.6123 GB, free: 48.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.415e-05/0.891, allocations: 15.5 kB / 0.6123 GB, free: 48.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.8911, allocations: 355.7 kB / 0.6127 GB, free: 47.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.8916, allocations: 325.7 kB / 0.613 GB, free: 47.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005737/0.8922, allocations: 0.5419 MB / 0.6135 GB, free: 47.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005319/0.8927, allocations: 387.1 kB / 0.6139 GB, free: 47.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.8927, allocations: 3.906 kB / 0.6139 GB, free: 47.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002341/0.8951, allocations: 1.693 MB / 0.6155 GB, free: 46.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.8951, allocations: 6.688 kB / 0.6155 GB, free: 46.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/0.8952, allocations: 116.6 kB / 0.6157 GB, free: 46.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000598/0.8958, allocations: 264.6 kB / 0.6159 GB, free: 46.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008409/0.8967, allocations: 230.7 kB / 0.6161 GB, free: 46.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006051/0.9028, allocations: 13.25 MB / 0.6291 GB, free: 32.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00198/0.9048, allocations: 127.3 kB / 0.6292 GB, free: 32.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.9049, allocations: 60.72 kB / 0.6292 GB, free: 32.76 MB / 394.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 () * 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.0002463/0.9052, allocations: 161.6 kB / 0.6294 GB, free: 32.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.9055, allocations: 376.9 kB / 0.6298 GB, free: 32.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004/0.9095, allocations: 1.957 MB / 0.6317 GB, free: 31.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.9095, allocations: 10.16 kB / 0.6317 GB, free: 31.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.9095, allocations: 3.25 kB / 0.6317 GB, free: 31.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.9096, allocations: 7.797 kB / 0.6317 GB, free: 31.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.9117, allocations: 1.545 MB / 0.6332 GB, free: 30.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001219/0.9118, allocations: 116 kB / 0.6333 GB, free: 30.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.9125, allocations: 170.7 kB / 0.6335 GB, free: 30.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005455/0.9131, allocations: 264.6 kB / 0.6337 GB, free: 30.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-05/0.9132, allocations: 48.59 kB / 0.6338 GB, free: 30.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005909/0.9191, allocations: 13.22 MB / 0.6467 GB, free: 16.35 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9191, allocations: 0 / 0.6467 GB, free: 16.35 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003226/0.9224, allocations: 2.113 MB / 0.6488 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/0.9235, allocations: 0.4963 MB / 0.6492 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003311/0.9238, allocations: 23.52 kB / 0.6493 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.9249, allocations: 120.8 kB / 0.6494 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003142/0.9252, allocations: 141.9 kB / 0.6495 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.078e-05/0.9253, allocations: 43.47 kB / 0.6496 GB, free: 13.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002092/0.9274, allocations: 1.718 MB / 0.6512 GB, free: 11.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9274, allocations: 4 kB / 0.6512 GB, free: 11.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001597/0.929, allocations: 0.7164 MB / 0.6519 GB, free: 11.26 MB / 394.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) * 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.001212/0.9302, allocations: 0.9078 MB / 0.6528 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.9324, allocations: 2.217 MB / 0.655 GB, free: 8.289 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.9324, allocations: 0 / 0.655 GB, free: 8.289 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.9338, allocations: 1.791 MB / 0.6567 GB, free: 6.406 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.9354, allocations: 479.1 kB / 0.6572 GB, free: 5.988 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005047/0.9405, allocations: 3.538 MB / 0.6606 GB, free: 2.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008205/0.9413, allocations: 1.726 MB / 0.6623 GB, free: 1.391 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001248/0.9426, allocations: 345.8 kB / 0.6627 GB, free: 1.145 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.9429, allocations: 147.4 kB / 0.6628 GB, free: 1 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/0.9429, allocations: 0 / 0.6628 GB, free: 1 MB / 394.7 MB Notification: Performance of Templates: time 0.274/1.217, allocations: 36.55 MB / 0.6985 GB, free: 87.01 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)