Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01028/0.01028, allocations: 166.2 kB / 15.11 MB, free: 6.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.434/1.434, allocations: 170.8 MB / 186.6 MB, free: 1.133 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001568/0.001568, allocations: 103.4 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.00033, allocations: 12 kB / 274.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2269, allocations: 38.77 MB / 312.9 MB, free: 38.73 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1206/0.3475, allocations: 94.14 MB / 407 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.3478, allocations: 75.97 kB / 407.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3948/0.7426, allocations: 126.1 MB / 0.5207 GB, free: 5.715 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.7427, allocations: 0 / 0.5207 GB, free: 5.715 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.756e-05/0.7427, allocations: 44 kB / 0.5208 GB, free: 5.672 MB / 330.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.006742/0.7495, allocations: 3.318 MB / 0.524 GB, free: 2.285 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.7496, allocations: 12.03 kB / 0.524 GB, free: 2.273 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004865/0.75, allocations: 383.4 kB / 0.5244 GB, free: 1.895 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004338/0.7544, allocations: 2.28 MB / 0.5266 GB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.7545, allocations: 33 kB / 0.5266 GB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.7546, allocations: 51.98 kB / 0.5267 GB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001765/0.7564, allocations: 0.9079 MB / 0.5276 GB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.7564, allocations: 0 / 0.5276 GB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.392e-05/0.7565, allocations: 16 kB / 0.5276 GB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-05/0.7566, allocations: 23.98 kB / 0.5276 GB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.7584, allocations: 0.9139 MB / 0.5285 GB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005797/0.7642, allocations: 3.036 MB / 0.5315 GB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.766, allocations: 0.8612 MB / 0.5323 GB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2791/1.045, allocations: 35.87 MB / 0.5674 GB, free: 39.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/1.046, allocations: 0.6214 MB / 0.568 GB, free: 39.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 3.246e-06/1.046, allocations: 0 / 0.568 GB, free: 39.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01608/1.063, allocations: 6.08 MB / 0.5739 GB, free: 36.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/1.063, allocations: 283.1 kB / 0.5742 GB, free: 36.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00498/1.068, allocations: 2.254 MB / 0.5764 GB, free: 36.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/1.068, allocations: 49.55 kB / 0.5764 GB, free: 36.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001637/1.069, allocations: 1.298 MB / 0.5777 GB, free: 36.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003841/1.07, allocations: 337.6 kB / 0.578 GB, free: 35.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.477e-05/1.07, allocations: 17.62 kB / 0.578 GB, free: 35.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.907e-05/1.07, allocations: 343.1 kB / 0.5784 GB, free: 35.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/1.072, allocations: 0.5234 MB / 0.5789 GB, free: 35.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/1.074, allocations: 0.7517 MB / 0.5796 GB, free: 35.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/1.076, allocations: 0.5779 MB / 0.5802 GB, free: 35.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/1.076, allocations: 0 / 0.5802 GB, free: 35.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00555/1.081, allocations: 2.092 MB / 0.5822 GB, free: 34.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/1.081, allocations: 7.281 kB / 0.5822 GB, free: 34.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001928/1.081, allocations: 120.1 kB / 0.5823 GB, free: 34.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008372/1.082, allocations: 267.1 kB / 0.5826 GB, free: 34.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.083, allocations: 229.5 kB / 0.5828 GB, free: 34.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008312/1.092, allocations: 13.35 MB / 0.5958 GB, free: 22.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/1.094, allocations: 125.9 kB / 0.596 GB, free: 22.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/1.094, allocations: 56.75 kB / 0.596 GB, free: 22.27 MB / 346.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.001447/1.095, allocations: 429.1 kB / 0.5964 GB, free: 22.15 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008061/1.096, allocations: 377.7 kB / 0.5968 GB, free: 21.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006686/1.103, allocations: 2.368 MB / 0.5991 GB, free: 21.58 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/1.103, allocations: 11.09 kB / 0.5991 GB, free: 21.58 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.022e-05/1.103, allocations: 7.141 kB / 0.5991 GB, free: 21.58 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/1.103, allocations: 6.984 kB / 0.5991 GB, free: 21.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003174/1.106, allocations: 1.545 MB / 0.6006 GB, free: 21.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001639/1.106, allocations: 111 kB / 0.6007 GB, free: 21.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007295/1.107, allocations: 176.9 kB / 0.6009 GB, free: 21.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005751/1.108, allocations: 265.7 kB / 0.6011 GB, free: 21.26 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/1.108, allocations: 45.73 kB / 0.6012 GB, free: 21.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007883/1.116, allocations: 13.32 MB / 0.6142 GB, free: 24.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.116, allocations: 3.234 kB / 0.6142 GB, free: 24.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005863/1.122, allocations: 2.716 MB / 0.6169 GB, free: 24.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/1.123, allocations: 0.4964 MB / 0.6173 GB, free: 23.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009166/1.124, allocations: 23.25 kB / 0.6174 GB, free: 23.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/1.126, allocations: 118.9 kB / 0.6175 GB, free: 23.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003349/1.126, allocations: 146 kB / 0.6176 GB, free: 23.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/1.126, allocations: 49.81 kB / 0.6177 GB, free: 23.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002892/1.129, allocations: 1.75 MB / 0.6194 GB, free: 23.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.129, allocations: 0 / 0.6194 GB, free: 23.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002342/1.131, allocations: 0.7137 MB / 0.6201 GB, free: 23.69 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.001657/1.133, allocations: 0.9031 MB / 0.621 GB, free: 23.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003997/1.137, allocations: 2.64 MB / 0.6235 GB, free: 22.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.137, allocations: 3.5 kB / 0.6235 GB, free: 22.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002482/1.139, allocations: 2.006 MB / 0.6255 GB, free: 21.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/1.142, allocations: 476 kB / 0.6259 GB, free: 21.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007218/1.149, allocations: 5.316 MB / 0.6311 GB, free: 18.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/1.15, allocations: 1.725 MB / 0.6328 GB, free: 17.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001537/1.152, allocations: 340.3 kB / 0.6331 GB, free: 17.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/1.152, allocations: 145.8 kB / 0.6333 GB, free: 17.54 MB / 362.7 MB Notification: Performance of SimCode: time 1.784e-06/1.152, allocations: 0 / 0.6333 GB, free: 17.54 MB / 362.7 MB Notification: Performance of Templates: time 0.06357/1.216, allocations: 35.15 MB / 0.6676 GB, free: 9.086 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)