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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007823/0.0007824, allocations: 92.8 kB / 16.65 MB, free: 6.59 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.000836/0.0008365, allocations: 184.9 kB / 17.56 MB, free: 6.203 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.296/1.296, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0004347/0.0004348, allocations: 16.52 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07619/0.07664, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01064/0.08731, allocations: 12.87 MB / 341.2 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02239/0.1097, allocations: 19.24 MB / 360.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.1114, allocations: 63.5 kB / 360.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002885/0.1143, allocations: 0.9787 MB / 361.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006791/0.1211, allocations: 1.883 MB / 363.4 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003978/0.1251, allocations: 1.153 MB / 364.5 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009263/0.1344, allocations: 6.171 MB / 370.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006231/0.135, allocations: 409 kB / 371.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.1362, allocations: 0.9132 MB / 372 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009877/0.1372, allocations: 1.036 MB / 373 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.1373, allocations: 44 kB / 373.1 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.1405, allocations: 1.132 MB / 374.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002509/0.1408, allocations: 285.7 kB / 374.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.1419, allocations: 1.317 MB / 375.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003534/0.1454, allocations: 3.563 MB / 379.4 MB, free: 484 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1454, allocations: 0 / 379.4 MB, free: 484 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1454, allocations: 0 / 379.4 MB, free: 484 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.1455, allocations: 0 / 379.4 MB, free: 484 kB / 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.1456/0.291, allocations: 3.143 MB / 382.5 MB, free: 53.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.2911, allocations: 10.47 kB / 382.5 MB, free: 53.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004355/0.2915, allocations: 382.7 kB / 382.9 MB, free: 52.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003727/0.2953, allocations: 2.552 MB / 385.4 MB, free: 52.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.706e-05/0.2953, allocations: 37.72 kB / 385.5 MB, free: 52.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.2955, allocations: 56.5 kB / 385.5 MB, free: 52.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.2971, allocations: 0.7895 MB / 386.3 MB, free: 51.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.2971, allocations: 0 / 386.3 MB, free: 51.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.08e-05/0.2972, allocations: 23.14 kB / 386.3 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.2972, allocations: 23.28 kB / 386.4 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.2992, allocations: 0.922 MB / 387.3 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004699/0.3039, allocations: 3.018 MB / 390.3 MB, free: 50.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001689/0.3056, allocations: 0.8585 MB / 391.2 MB, free: 49.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001517/0.3071, allocations: 0.987 MB / 392.2 MB, free: 49.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0217/0.3288, allocations: 30.19 MB / 422.3 MB, free: 19.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3299, allocations: 0.6345 MB / 423 MB, free: 18.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 2.555e-06/0.3299, allocations: 0 / 423 MB, free: 18.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01084/0.3408, allocations: 5.702 MB / 428.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.3408, allocations: 69.64 kB / 428.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002505/0.3434, allocations: 2.709 MB / 431.5 MB, free: 9.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.094e-05/0.3434, allocations: 45.69 kB / 431.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00077/0.3442, allocations: 1.297 MB / 432.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.3444, allocations: 335.2 kB / 433.1 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.3445, allocations: 81.67 kB / 433.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.717e-05/0.3446, allocations: 345.9 kB / 433.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.3458, allocations: 0.5332 MB / 434.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.3471, allocations: 0.7211 MB / 434.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00238/0.3495, allocations: 1.254 MB / 436 MB, free: 5.113 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3495, allocations: 4 kB / 436.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003487/0.353, allocations: 2.108 MB / 438.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.353, allocations: 10.66 kB / 438.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/0.3531, allocations: 116 kB / 438.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005795/0.3537, allocations: 272.9 kB / 438.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008632/0.3546, allocations: 219.7 kB / 438.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008808/0.3634, allocations: 13.26 MB / 452 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.3651, allocations: 123.9 kB / 452.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.3652, allocations: 56 kB / 452.2 MB, free: 3.551 MB / 334.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.000868/0.3661, allocations: 430.1 kB / 452.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000397/0.3665, allocations: 371.5 kB / 453 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005468/0.3719, allocations: 2.35 MB / 455.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.372, allocations: 8 kB / 455.3 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.372, allocations: 4.875 kB / 455.3 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.372, allocations: 7.984 kB / 455.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.3744, allocations: 1.55 MB / 456.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001508/0.3746, allocations: 116 kB / 457 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007821/0.3754, allocations: 167.8 kB / 457.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006409/0.376, allocations: 269.6 kB / 457.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.041e-05/0.3761, allocations: 47.98 kB / 457.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00916/0.3853, allocations: 13.25 MB / 470.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3853, allocations: 128 / 470.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005783/0.3911, allocations: 2.748 MB / 473.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.3922, allocations: 488.5 kB / 474 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003349/0.3925, allocations: 27.92 kB / 474 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.3936, allocations: 115.9 kB / 474.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003592/0.3939, allocations: 132.8 kB / 474.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.394, allocations: 55.92 kB / 474.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002223/0.3963, allocations: 1.782 MB / 476.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3963, allocations: 4 kB / 476.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001504/0.3978, allocations: 0.66 MB / 476.7 MB, free: 9.418 MB / 366.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.001241/0.399, allocations: 0.8143 MB / 477.6 MB, free: 8.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004211/0.4033, allocations: 2.639 MB / 480.2 MB, free: 5.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4033, allocations: 4.188 kB / 480.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002637/0.4059, allocations: 2.016 MB / 482.2 MB, free: 3.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.4078, allocations: 499.3 kB / 482.7 MB, free: 3.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007059/0.4149, allocations: 5.686 MB / 488.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.416, allocations: 1.662 MB / 490 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001381/0.4174, allocations: 395.4 kB / 490.4 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/0.4177, allocations: 163.4 kB / 490.6 MB, free: 11.33 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4177, allocations: 0 / 490.6 MB, free: 11.33 MB / 382.1 MB Notification: Performance of Templates: time 0.05806/0.4757, allocations: 35.46 MB / 0.5137 GB, free: 7.836 MB / 414.1 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)