Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008724/0.008724, allocations: 100.8 kB / 15.73 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002443/0.002444, allocations: 186.3 kB / 16.67 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 222.6 MB, free: 4.477 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 53.77 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08291/0.084, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01241/0.09644, allocations: 13.52 MB / 386.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02058/0.117, allocations: 19.37 MB / 406 MB, free: 300 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00204/0.1191, allocations: 126.9 kB / 406.2 MB, free: 172 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002634/0.1218, allocations: 1.092 MB / 407.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00623/0.1281, allocations: 2.262 MB / 409.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003948/0.132, allocations: 1.381 MB / 410.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009801/0.1418, allocations: 6.277 MB / 417.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006957/0.1426, allocations: 432.5 kB / 417.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.144, allocations: 0.9797 MB / 418.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.1453, allocations: 1.064 MB / 419.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.1455, allocations: 76 kB / 419.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00394/0.1494, allocations: 1.152 MB / 420.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003416/0.1498, allocations: 325.7 kB / 421.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.1512, allocations: 1.327 MB / 422.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004711/0.1559, allocations: 3.733 MB / 426.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.156, allocations: 4 kB / 426.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.156, allocations: 4 kB / 426.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.611e-05/0.156, allocations: 0 / 426.3 MB, free: 11.95 MB / 366.1 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.004951/0.161, allocations: 3.704 MB / 430 MB, free: 8.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.161, allocations: 15.97 kB / 430 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003971/0.1614, allocations: 401.5 kB / 430.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.1649, allocations: 2.571 MB / 432.9 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.1649, allocations: 36.94 kB / 433 MB, free: 5.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.1651, allocations: 52 kB / 433 MB, free: 5.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1666, allocations: 0.7615 MB / 433.8 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1666, allocations: 0 / 433.8 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-05/0.1667, allocations: 23.98 kB / 433.8 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.1667, allocations: 16 kB / 433.8 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.1685, allocations: 0.8592 MB / 434.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004879/0.1734, allocations: 2.987 MB / 437.7 MB, free: 320 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.1752, allocations: 0.7872 MB / 438.5 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.1768, allocations: 0.9526 MB / 439.4 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2105/0.3873, allocations: 30.12 MB / 469.5 MB, free: 61.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.3885, allocations: 0.5988 MB / 470.1 MB, free: 60.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.036e-06/0.3885, allocations: 0 / 470.1 MB, free: 60.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01144/0.3999, allocations: 5.288 MB / 475.4 MB, free: 57.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.4, allocations: 65.17 kB / 475.5 MB, free: 57.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/0.4029, allocations: 2.724 MB / 478.2 MB, free: 56.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.584e-05/0.403, allocations: 41.67 kB / 478.3 MB, free: 56.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007903/0.4038, allocations: 1.304 MB / 479.6 MB, free: 55.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.404, allocations: 348.9 kB / 479.9 MB, free: 54.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.4043, allocations: 240.5 kB / 480.1 MB, free: 54.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.4044, allocations: 345.8 kB / 480.5 MB, free: 54.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.4055, allocations: 480 kB / 480.9 MB, free: 54.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.4067, allocations: 0.6449 MB / 481.6 MB, free: 53.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002343/0.4091, allocations: 1.131 MB / 482.7 MB, free: 52.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4091, allocations: 0 / 482.7 MB, free: 52.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003604/0.4127, allocations: 2.003 MB / 484.7 MB, free: 51.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.4127, allocations: 6.5 kB / 484.7 MB, free: 51.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/0.4129, allocations: 121.4 kB / 484.8 MB, free: 51.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006241/0.4135, allocations: 267.2 kB / 485.1 MB, free: 51.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008351/0.4144, allocations: 189.8 kB / 485.3 MB, free: 51.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006769/0.4211, allocations: 14.26 MB / 499.5 MB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.4231, allocations: 83.91 kB / 499.6 MB, free: 36.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.4232, allocations: 59.98 kB / 499.7 MB, free: 36 MB / 382.1 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 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000814/0.424, allocations: 421.7 kB / 0.4884 GB, free: 35.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003617/0.4244, allocations: 396.7 kB / 0.4888 GB, free: 35.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/0.4287, allocations: 2.221 MB / 0.4909 GB, free: 32.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.4287, allocations: 8.766 kB / 0.4909 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4287, allocations: 4 kB / 0.4909 GB, free: 32.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4288, allocations: 3.984 kB / 0.4909 GB, free: 32.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001465/0.4302, allocations: 1.547 MB / 0.4925 GB, free: 31.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001255/0.4304, allocations: 123 kB / 0.4926 GB, free: 31.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006847/0.4311, allocations: 143.2 kB / 0.4927 GB, free: 31.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005542/0.4316, allocations: 256.3 kB / 0.493 GB, free: 30.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/0.4317, allocations: 47.92 kB / 0.493 GB, free: 30.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006036/0.4378, allocations: 14.25 MB / 0.5069 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4378, allocations: 0 / 0.5069 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004832/0.4426, allocations: 2.565 MB / 0.5094 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008221/0.4435, allocations: 0.5102 MB / 0.5099 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003058/0.4438, allocations: 16 kB / 0.5099 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009308/0.4447, allocations: 75.89 kB / 0.51 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/0.4451, allocations: 148.8 kB / 0.5102 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.601e-05/0.4452, allocations: 51.98 kB / 0.5102 GB, free: 11.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001913/0.4471, allocations: 1.774 MB / 0.5119 GB, free: 9.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4471, allocations: 0 / 0.5119 GB, free: 9.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001439/0.4486, allocations: 0.6635 MB / 0.5126 GB, free: 9.176 MB / 382.1 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001072/0.4496, allocations: 0.8199 MB / 0.5134 GB, free: 8.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003392/0.453, allocations: 2.514 MB / 0.5158 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4531, allocations: 3.938 kB / 0.5158 GB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/0.4551, allocations: 1.964 MB / 0.5178 GB, free: 3.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.4568, allocations: 0.5246 MB / 0.5183 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005564/0.4624, allocations: 4.779 MB / 0.5229 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.4635, allocations: 1.666 MB / 0.5246 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.4646, allocations: 395.4 kB / 0.5249 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.465, allocations: 163.4 kB / 0.5251 GB, free: 12.08 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.465, allocations: 0 / 0.5251 GB, free: 12.08 MB / 398.1 MB Notification: Performance of Templates: time 0.06271/0.5277, allocations: 37.29 MB / 0.5615 GB, free: 6.73 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)