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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00184/0.00184, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.356/1.356, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001791/0.001791, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2295, allocations: 46.63 MB / 324.8 MB, free: 1.906 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0111/0.2406, allocations: 13.42 MB / 338.3 MB, free: 6.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.2598, allocations: 19.12 MB / 357.4 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.2616, allocations: 67.44 kB / 357.4 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.2648, allocations: 0.9556 MB / 358.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00629/0.2711, allocations: 1.942 MB / 360.3 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004329/0.2755, allocations: 1.207 MB / 361.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009346/0.2848, allocations: 6.343 MB / 367.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007529/0.2856, allocations: 428.5 kB / 368.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.2871, allocations: 0.968 MB / 369.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009247/0.288, allocations: 1.056 MB / 370.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001488/0.2882, allocations: 76 kB / 370.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003529/0.2917, allocations: 1.163 MB / 371.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.292, allocations: 329.6 kB / 371.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.293, allocations: 1.331 MB / 373.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003604/0.2966, allocations: 3.67 MB / 376.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2966, allocations: 4 kB / 376.9 MB, free: 15.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2967, allocations: 0 / 376.9 MB, free: 15.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.2967, allocations: 0 / 376.9 MB, free: 15.81 MB / 318.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.004489/0.3012, allocations: 3.596 MB / 380.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3012, allocations: 8.031 kB / 380.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003993/0.3016, allocations: 379.4 kB / 380.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003242/0.3049, allocations: 2.556 MB / 383.4 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.3049, allocations: 36.94 kB / 383.5 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3051, allocations: 55.92 kB / 383.5 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.3065, allocations: 0.7616 MB / 384.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3065, allocations: 0 / 384.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.008e-05/0.3066, allocations: 19.98 kB / 384.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.3066, allocations: 19.98 kB / 384.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.3083, allocations: 0.8514 MB / 385.2 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00431/0.3126, allocations: 2.995 MB / 388.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.3142, allocations: 0.791 MB / 389 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.3155, allocations: 0.9488 MB / 389.9 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02692/0.3424, allocations: 30.13 MB / 420 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.3436, allocations: 0.5918 MB / 420.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 4.598e-06/0.3437, allocations: 0 / 420.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01127/0.3549, allocations: 5.232 MB / 425.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.355, allocations: 64.41 kB / 425.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/0.3579, allocations: 2.717 MB / 428.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/0.3579, allocations: 41.7 kB / 428.7 MB, free: 7.379 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000919/0.3589, allocations: 1.303 MB / 430 MB, free: 6.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.3591, allocations: 331.2 kB / 430.3 MB, free: 5.742 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003154/0.3594, allocations: 238.2 kB / 430.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.3595, allocations: 341.9 kB / 430.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.3606, allocations: 482 kB / 431.4 MB, free: 4.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.3618, allocations: 0.6392 MB / 432 MB, free: 3.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/0.3641, allocations: 1.145 MB / 433.1 MB, free: 2.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3641, allocations: 4 kB / 433.1 MB, free: 2.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003473/0.3676, allocations: 1.971 MB / 435.1 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3676, allocations: 12.47 kB / 435.1 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.3678, allocations: 124 kB / 435.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006315/0.3684, allocations: 268.4 kB / 435.5 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008096/0.3692, allocations: 199.7 kB / 435.7 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008583/0.3778, allocations: 14.25 MB / 449.9 MB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.3791, allocations: 91.95 kB / 450 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.3792, allocations: 56 kB / 450.1 MB, free: 320 kB / 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.1484/0.5276, allocations: 425.5 kB / 450.5 MB, free: 116 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007151/0.5283, allocations: 369 kB / 450.9 MB, free: 116 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005182/0.5335, allocations: 2.218 MB / 453.1 MB, free: 115.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.5335, allocations: 8.969 kB / 453.1 MB, free: 115.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.5335, allocations: 6.344 kB / 453.1 MB, free: 115.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.5336, allocations: 4.719 kB / 453.1 MB, free: 115.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.5351, allocations: 1.554 MB / 454.7 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001402/0.5353, allocations: 118.7 kB / 454.8 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000679/0.536, allocations: 137.4 kB / 454.9 MB, free: 115.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005771/0.5366, allocations: 259.2 kB / 455.2 MB, free: 115.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-05/0.5367, allocations: 46.03 kB / 455.2 MB, free: 115.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006225/0.5429, allocations: 14.25 MB / 469.5 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5429, allocations: 3.938 kB / 469.5 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004305/0.5472, allocations: 2.546 MB / 472 MB, free: 100.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005754/0.5478, allocations: 0.4966 MB / 472.5 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/0.5481, allocations: 18.91 kB / 472.5 MB, free: 99.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008866/0.549, allocations: 77.58 kB / 472.6 MB, free: 99.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002957/0.5493, allocations: 144.9 kB / 472.7 MB, free: 99.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.78e-05/0.5494, allocations: 53.67 kB / 472.8 MB, free: 99.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001999/0.5514, allocations: 1.779 MB / 474.6 MB, free: 98.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5514, allocations: 0 / 474.6 MB, free: 98.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001269/0.5527, allocations: 0.6578 MB / 475.2 MB, free: 98.88 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.0009565/0.5537, allocations: 0.8177 MB / 476 MB, free: 98.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003395/0.5571, allocations: 2.55 MB / 478.6 MB, free: 95.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.5571, allocations: 5.938 kB / 478.6 MB, free: 95.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.559, allocations: 1.951 MB / 480.6 MB, free: 93.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.5604, allocations: 0.5238 MB / 481.1 MB, free: 93.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005199/0.5656, allocations: 5.527 MB / 486.6 MB, free: 87.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006753/0.5663, allocations: 1.666 MB / 488.3 MB, free: 85.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001223/0.5676, allocations: 395.4 kB / 488.7 MB, free: 85.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.5678, allocations: 163.4 kB / 488.8 MB, free: 85.29 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.5678, allocations: 0 / 488.8 MB, free: 85.29 MB / 382.1 MB Notification: Performance of Templates: time 0.04923/0.6171, allocations: 36.78 MB / 0.5133 GB, free: 48.46 MB / 382.1 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)