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.002111/0.002111, allocations: 111.8 kB / 17.06 MB, free: 6.004 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.002132/0.002132, allocations: 198.9 kB / 18 MB, free: 5.082 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.359/1.359, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001249/0.001249, allocations: 55.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09243/0.09369, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1873/0.281, allocations: 13.52 MB / 388 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02207/0.3031, allocations: 19.37 MB / 407.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002759/0.3059, allocations: 132.3 kB / 407.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003198/0.3092, allocations: 1.092 MB / 408.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008594/0.3178, allocations: 2.251 MB / 410.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005084/0.3229, allocations: 1.382 MB / 412.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01156/0.3345, allocations: 6.285 MB / 418.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008888/0.3354, allocations: 430.4 kB / 418.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/0.3376, allocations: 1.003 MB / 419.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.3392, allocations: 1.057 MB / 421 MB, free: 132 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001885/0.3394, allocations: 75.62 kB / 421.1 MB, free: 132 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00428/0.3437, allocations: 1.161 MB / 422.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004486/0.3442, allocations: 325.6 kB / 422.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001948/0.3461, allocations: 1.331 MB / 423.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005527/0.3517, allocations: 3.706 MB / 427.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3517, allocations: 0 / 427.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3517, allocations: 0 / 427.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.033e-05/0.3517, allocations: 7.938 kB / 427.6 MB, free: 10.35 MB / 350.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.005167/0.3569, allocations: 3.584 MB / 431.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.357, allocations: 8.031 kB / 431.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003928/0.3574, allocations: 383.4 kB / 431.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003479/0.3609, allocations: 2.536 MB / 434.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.3609, allocations: 40.88 kB / 434.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.361, allocations: 55.89 kB / 434.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.3625, allocations: 0.7538 MB / 434.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3625, allocations: 0 / 434.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.868e-05/0.3626, allocations: 24 kB / 435 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.3626, allocations: 23.92 kB / 435 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.3643, allocations: 0.8514 MB / 435.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.3691, allocations: 2.982 MB / 438.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.371, allocations: 0.791 MB / 439.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.3725, allocations: 0.9564 MB / 440.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03129/0.4038, allocations: 30.12 MB / 470.7 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.4051, allocations: 0.5965 MB / 471.3 MB, free: 10.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.116e-06/0.4051, allocations: 4 kB / 471.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.0126/0.4177, allocations: 5.228 MB / 476.5 MB, free: 4.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.4178, allocations: 72.39 kB / 476.6 MB, free: 4.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.4208, allocations: 2.709 MB / 479.3 MB, free: 1.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.161e-05/0.4209, allocations: 41.7 kB / 479.3 MB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.422, allocations: 1.299 MB / 480.6 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/0.4223, allocations: 339.1 kB / 481 MB, free: 316 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003429/0.4227, allocations: 234.3 kB / 481.2 MB, free: 76 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4228, allocations: 345.9 kB / 481.5 MB, free: 15.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.424, allocations: 474 kB / 482 MB, free: 15.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.4254, allocations: 0.6547 MB / 482.6 MB, free: 14.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/0.428, allocations: 1.13 MB / 483.8 MB, free: 13.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.428, allocations: 0 / 483.8 MB, free: 13.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003995/0.432, allocations: 1.98 MB / 485.8 MB, free: 11.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.432, allocations: 12.47 kB / 485.8 MB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/0.4322, allocations: 128 kB / 485.9 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006782/0.4329, allocations: 264.4 kB / 486.1 MB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008769/0.4338, allocations: 199.7 kB / 486.3 MB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009493/0.4433, allocations: 14.25 MB / 0.4889 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.4447, allocations: 83.91 kB / 0.4889 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.4449, allocations: 59.98 kB / 0.489 GB, free: 10.9 MB / 430.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.000854/0.4457, allocations: 429.7 kB / 0.4894 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005154/0.4462, allocations: 371.5 kB / 0.4898 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004758/0.451, allocations: 2.228 MB / 0.4919 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.451, allocations: 8 kB / 0.4919 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.451, allocations: 4 kB / 0.4919 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.4511, allocations: 3.984 kB / 0.4919 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.4529, allocations: 1.555 MB / 0.4935 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001366/0.453, allocations: 116 kB / 0.4936 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.4538, allocations: 135.8 kB / 0.4937 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006848/0.4545, allocations: 264.3 kB / 0.494 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.209e-05/0.4546, allocations: 47.98 kB / 0.494 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00972/0.4643, allocations: 14.23 MB / 0.5079 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4644, allocations: 192 / 0.5079 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005646/0.47, allocations: 2.555 MB / 0.5104 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.4712, allocations: 0.4927 MB / 0.5109 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004152/0.4716, allocations: 20 kB / 0.5109 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.4727, allocations: 83.89 kB / 0.511 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003574/0.473, allocations: 132.8 kB / 0.5111 GB, free: 2.562 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.4731, allocations: 51.98 kB / 0.5112 GB, free: 2.512 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002857/0.476, allocations: 1.786 MB / 0.5129 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.476, allocations: 0 / 0.5129 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001682/0.4777, allocations: 0.66 MB / 0.5135 GB, free: 60 kB / 446.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.001333/0.479, allocations: 0.8141 MB / 0.5143 GB, free: 15.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.4835, allocations: 2.522 MB / 0.5168 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4835, allocations: 0 / 0.5168 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002632/0.4861, allocations: 1.964 MB / 0.5187 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.4881, allocations: 0.5083 MB / 0.5192 GB, free: 9.934 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006957/0.495, allocations: 4.685 MB / 0.5238 GB, free: 5.215 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001287/0.4963, allocations: 1.666 MB / 0.5254 GB, free: 3.523 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4975, allocations: 387.4 kB / 0.5258 GB, free: 3.141 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.4979, allocations: 175.4 kB / 0.526 GB, free: 2.969 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4979, allocations: 0 / 0.526 GB, free: 2.969 MB / 462.1 MB Notification: Performance of Templates: time 0.2364/0.7343, allocations: 38.15 MB / 0.5632 GB, free: 149.6 MB / 478.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)