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.0009098/0.0009097, allocations: 178.5 kB / 16.38 MB, free: 5.766 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.142/1.142, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001486/0.001486, allocations: 115.7 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003117, allocations: 11.98 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07604/0.07637, allocations: 44.5 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2361/0.3125, allocations: 97.93 MB / 453 MB, free: 7.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.3128, allocations: 79.95 kB / 453.1 MB, free: 7.797 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3641/0.6769, allocations: 124.1 MB / 0.5636 GB, free: 84.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6769, allocations: 0 / 0.5636 GB, free: 84.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.274e-05/0.677, allocations: 39.44 kB / 0.5636 GB, free: 84.86 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.004563/0.6815, allocations: 3.322 MB / 0.5669 GB, free: 82.76 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.6816, allocations: 12.84 kB / 0.5669 GB, free: 82.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.6819, allocations: 386.3 kB / 0.5673 GB, free: 82.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003146/0.6851, allocations: 2.273 MB / 0.5695 GB, free: 81.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.6851, allocations: 40.38 kB / 0.5695 GB, free: 81.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.6852, allocations: 54.3 kB / 0.5696 GB, free: 81.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.6865, allocations: 0.9077 MB / 0.5705 GB, free: 81.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.6865, allocations: 0 / 0.5705 GB, free: 81.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.567e-05/0.6866, allocations: 15.97 kB / 0.5705 GB, free: 81.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.6866, allocations: 22.7 kB / 0.5705 GB, free: 81.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.688, allocations: 0.9247 MB / 0.5714 GB, free: 80.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.6918, allocations: 3.037 MB / 0.5744 GB, free: 79.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.6932, allocations: 0.8586 MB / 0.5752 GB, free: 79.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0254/0.7186, allocations: 35.88 MB / 0.6103 GB, free: 45.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009844/0.7197, allocations: 0.6191 MB / 0.6109 GB, free: 44.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.405e-06/0.7197, allocations: 4 kB / 0.6109 GB, free: 44.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.00996/0.7296, allocations: 6.07 MB / 0.6168 GB, free: 38.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.7297, allocations: 278 kB / 0.6171 GB, free: 37.81 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.732, allocations: 2.263 MB / 0.6193 GB, free: 35.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.032e-05/0.732, allocations: 49.69 kB / 0.6193 GB, free: 35.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007864/0.7328, allocations: 1.304 MB / 0.6206 GB, free: 34.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.733, allocations: 334.2 kB / 0.6209 GB, free: 33.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.7331, allocations: 20 kB / 0.6209 GB, free: 33.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.214e-05/0.7331, allocations: 345.9 kB / 0.6213 GB, free: 33.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.7342, allocations: 0.5254 MB / 0.6218 GB, free: 32.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.7352, allocations: 0.7474 MB / 0.6225 GB, free: 32.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.7363, allocations: 0.5808 MB / 0.6231 GB, free: 31.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.7363, allocations: 0 / 0.6231 GB, free: 31.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003006/0.7393, allocations: 2.096 MB / 0.6251 GB, free: 29.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.7393, allocations: 4.531 kB / 0.6251 GB, free: 29.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.7395, allocations: 120 kB / 0.6252 GB, free: 29.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000536/0.74, allocations: 264.4 kB / 0.6255 GB, free: 28.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007959/0.7408, allocations: 240.7 kB / 0.6257 GB, free: 28.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.7465, allocations: 13.32 MB / 0.6387 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.7478, allocations: 124 kB / 0.6388 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-05/0.7479, allocations: 56 kB / 0.6389 GB, free: 13.91 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 () * 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.000923/0.7488, allocations: 427.2 kB / 0.6393 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/0.7491, allocations: 387.4 kB / 0.6397 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004424/0.7536, allocations: 2.362 MB / 0.642 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.7536, allocations: 8 kB / 0.642 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.7536, allocations: 4 kB / 0.642 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.7536, allocations: 15.92 kB / 0.642 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.755, allocations: 1.539 MB / 0.6435 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001118/0.7552, allocations: 116 kB / 0.6436 GB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006289/0.7558, allocations: 167.8 kB / 0.6438 GB, free: 8.789 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005496/0.7564, allocations: 272.3 kB / 0.644 GB, free: 8.492 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.864e-05/0.7565, allocations: 45.67 kB / 0.6441 GB, free: 8.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007533/0.764, allocations: 13.33 MB / 0.6571 GB, free: 9.793 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.764, allocations: 0 / 0.6571 GB, free: 9.793 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005401/0.7694, allocations: 2.722 MB / 0.6597 GB, free: 6.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.7707, allocations: 0.4965 MB / 0.6602 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006516/0.7714, allocations: 16 kB / 0.6602 GB, free: 6.445 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.7726, allocations: 123.9 kB / 0.6604 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.7729, allocations: 140.8 kB / 0.6605 GB, free: 6.188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.773, allocations: 51.98 kB / 0.6606 GB, free: 6.137 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002993/0.776, allocations: 1.747 MB / 0.6623 GB, free: 4.383 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7761, allocations: 0 / 0.6623 GB, free: 4.383 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00205/0.7781, allocations: 0.7144 MB / 0.663 GB, free: 3.668 MB / 410.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.001632/0.7798, allocations: 0.9064 MB / 0.6638 GB, free: 2.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00419/0.784, allocations: 2.631 MB / 0.6664 GB, free: 148 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.784, allocations: 0 / 0.6664 GB, free: 148 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1514/0.9354, allocations: 2.013 MB / 0.6684 GB, free: 95.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.9374, allocations: 471 kB / 0.6688 GB, free: 95.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005816/0.9432, allocations: 5.326 MB / 0.674 GB, free: 92.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008537/0.9441, allocations: 1.72 MB / 0.6757 GB, free: 92.08 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001146/0.9452, allocations: 339 kB / 0.676 GB, free: 92.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.9455, allocations: 145.9 kB / 0.6762 GB, free: 92.06 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.9455, allocations: 3.406 kB / 0.6762 GB, free: 92.06 MB / 410.7 MB Notification: Performance of Templates: time 0.05233/0.9978, allocations: 35.15 MB / 0.7105 GB, free: 88.18 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)