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.001459/0.001464, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001752/0.001752, allocations: 192.7 kB / 16.14 MB, free: 6.715 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.378/1.378, allocations: 205.1 MB / 222 MB, free: 5.004 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.001128/0.001128, allocations: 51.94 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2033, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01226/0.2156, allocations: 13.41 MB / 338.1 MB, free: 6.738 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0223/0.238, allocations: 19.52 MB / 357.6 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003132/0.2412, allocations: 67.44 kB / 357.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003194/0.2444, allocations: 0.9517 MB / 358.6 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007751/0.2521, allocations: 1.883 MB / 360.5 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00464/0.2568, allocations: 1.156 MB / 361.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.2688, allocations: 6.175 MB / 367.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008616/0.2697, allocations: 408.9 kB / 368.2 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001529/0.2712, allocations: 0.9366 MB / 369.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.2724, allocations: 1.04 MB / 370.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002719/0.2727, allocations: 52 kB / 370.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003756/0.2765, allocations: 1.12 MB / 371.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003601/0.2769, allocations: 301.6 kB / 371.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.2783, allocations: 1.304 MB / 373 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004278/0.2826, allocations: 3.619 MB / 376.6 MB, free: 28 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2826, allocations: 4 kB / 376.6 MB, free: 24 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2826, allocations: 0 / 376.6 MB, free: 24 kB / 302.1 MB Notification: Performance of Transformations before backend: time 5.517e-05/0.2827, allocations: 0 / 376.6 MB, free: 24 kB / 302.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.005544/0.2882, allocations: 3.592 MB / 380.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.2883, allocations: 8.031 kB / 380.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005237/0.2888, allocations: 379.4 kB / 380.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004176/0.293, allocations: 2.556 MB / 383.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.273e-05/0.2931, allocations: 44.92 kB / 383.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.2933, allocations: 51.94 kB / 383.2 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.2948, allocations: 0.7577 MB / 384 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.2948, allocations: 0 / 384 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.256e-05/0.2949, allocations: 23.98 kB / 384 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.2949, allocations: 16 kB / 384 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.2967, allocations: 0.8592 MB / 384.9 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005032/0.3017, allocations: 2.987 MB / 387.9 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.3035, allocations: 0.7833 MB / 388.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.305, allocations: 0.9527 MB / 389.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03041/0.3354, allocations: 30.13 MB / 419.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00119/0.3367, allocations: 0.5996 MB / 420.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.005e-06/0.3367, allocations: 0 / 420.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01162/0.3483, allocations: 5.236 MB / 425.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3484, allocations: 64.41 kB / 425.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003296/0.3517, allocations: 2.717 MB / 428.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.3518, allocations: 41.7 kB / 428.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.3531, allocations: 1.303 MB / 429.7 MB, free: 6.281 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.3535, allocations: 331.3 kB / 430 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/0.3539, allocations: 234.2 kB / 430.3 MB, free: 5.715 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.354, allocations: 345.9 kB / 430.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3553, allocations: 478 kB / 431.1 MB, free: 4.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.3566, allocations: 0.647 MB / 431.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.3592, allocations: 1.126 MB / 432.8 MB, free: 3.004 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3592, allocations: 4 kB / 432.8 MB, free: 3 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004345/0.3636, allocations: 1.983 MB / 434.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.3636, allocations: 15.88 kB / 434.8 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000167/0.3638, allocations: 124 kB / 435 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007299/0.3646, allocations: 268.8 kB / 435.2 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/0.3654, allocations: 191.7 kB / 435.4 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.3755, allocations: 13.24 MB / 448.6 MB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.377, allocations: 92.02 kB / 448.7 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002397/0.3772, allocations: 56 kB / 448.8 MB, free: 1.605 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.001063/0.3783, allocations: 433.4 kB / 449.2 MB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005816/0.3789, allocations: 371.5 kB / 449.6 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1528/0.5317, allocations: 2.219 MB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.5318, allocations: 9.062 kB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/0.5318, allocations: 3.969 kB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.5318, allocations: 4.281 kB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002625/0.5345, allocations: 1.548 MB / 453.4 MB, free: 116.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001691/0.5346, allocations: 119.4 kB / 453.5 MB, free: 116.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007022/0.5354, allocations: 135.1 kB / 453.6 MB, free: 116.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006185/0.536, allocations: 267.7 kB / 453.9 MB, free: 116.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.5361, allocations: 42.25 kB / 453.9 MB, free: 116.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006615/0.5427, allocations: 13.24 MB / 467.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5428, allocations: 3.125 kB / 467.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005001/0.5478, allocations: 2.553 MB / 469.7 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008857/0.5487, allocations: 495.5 kB / 470.2 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/0.5492, allocations: 22.03 kB / 470.2 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.5502, allocations: 81.83 kB / 470.3 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/0.5506, allocations: 136.3 kB / 470.4 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.5507, allocations: 51.2 kB / 470.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002461/0.5532, allocations: 1.779 MB / 472.3 MB, free: 101.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5532, allocations: 1.641 kB / 472.3 MB, free: 101.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001525/0.5547, allocations: 0.656 MB / 472.9 MB, free: 101.1 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.001151/0.5559, allocations: 0.827 MB / 473.7 MB, free: 100.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003467/0.5594, allocations: 2.521 MB / 476.3 MB, free: 98.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5594, allocations: 0 / 476.3 MB, free: 98.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/0.5614, allocations: 1.956 MB / 478.2 MB, free: 96.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.5635, allocations: 497.2 kB / 478.7 MB, free: 95.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/0.5696, allocations: 5.538 MB / 484.2 MB, free: 90.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008493/0.5705, allocations: 1.666 MB / 485.9 MB, free: 88.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001322/0.5718, allocations: 388.4 kB / 486.3 MB, free: 88.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.5722, allocations: 171.4 kB / 486.5 MB, free: 88.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5722, allocations: 0 / 486.5 MB, free: 88.14 MB / 382.1 MB Notification: Performance of Templates: time 0.05175/0.6239, allocations: 35.64 MB / 0.5099 GB, free: 52.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)