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.01/0.01, allocations: 101.2 kB / 15.73 MB, free: 6.035 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.002676/0.002676, allocations: 186.1 kB / 16.67 MB, free: 5.969 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.396/1.396, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001169/0.001169, allocations: 51.45 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08568, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01173/0.09744, allocations: 13.51 MB / 386.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02092/0.1184, allocations: 19.37 MB / 406 MB, free: 312 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002133/0.1206, allocations: 134.8 kB / 406.2 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.1233, allocations: 1.1 MB / 407.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00679/0.1301, allocations: 2.278 MB / 409.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004005/0.1341, allocations: 1.385 MB / 410.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008832/0.1429, allocations: 6.277 MB / 417.2 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006935/0.1437, allocations: 440.4 kB / 417.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.1449, allocations: 1.003 MB / 418.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.1459, allocations: 1.056 MB / 419.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.1461, allocations: 76 kB / 419.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003455/0.1496, allocations: 1.159 MB / 420.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003254/0.1499, allocations: 321.7 kB / 421.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.1511, allocations: 1.335 MB / 422.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004452/0.1556, allocations: 3.713 MB / 426.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1556, allocations: 0 / 426.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1556, allocations: 4 kB / 426.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.987e-05/0.1557, allocations: 0 / 426.3 MB, free: 11.92 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.004743/0.1604, allocations: 3.58 MB / 429.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1605, allocations: 8.031 kB / 429.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004581/0.1609, allocations: 379.4 kB / 430.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.1644, allocations: 2.54 MB / 432.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.1645, allocations: 44.88 kB / 432.8 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.1647, allocations: 51.91 kB / 432.9 MB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.1663, allocations: 0.7538 MB / 433.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.1663, allocations: 0 / 433.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.968e-05/0.1664, allocations: 31.92 kB / 433.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.804e-05/0.1664, allocations: 16 kB / 433.7 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.1683, allocations: 0.8553 MB / 434.6 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005154/0.1734, allocations: 2.978 MB / 437.5 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.1752, allocations: 0.791 MB / 438.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.1767, allocations: 0.9564 MB / 439.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1938/0.3705, allocations: 30.12 MB / 469.4 MB, free: 60.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.3717, allocations: 0.5915 MB / 470 MB, free: 60.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 2.775e-06/0.3717, allocations: 0 / 470 MB, free: 60.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01131/0.383, allocations: 5.238 MB / 475.2 MB, free: 57.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.3831, allocations: 64.08 kB / 475.3 MB, free: 57.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.3858, allocations: 2.718 MB / 478 MB, free: 55.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.297e-05/0.3859, allocations: 41.67 kB / 478 MB, free: 55.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007786/0.3867, allocations: 1.308 MB / 479.4 MB, free: 54.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.3869, allocations: 336.2 kB / 479.7 MB, free: 54.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/0.3872, allocations: 232.6 kB / 479.9 MB, free: 54.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.909e-05/0.3873, allocations: 345.8 kB / 480.2 MB, free: 53.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3884, allocations: 476.9 kB / 480.7 MB, free: 53.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.3897, allocations: 0.6476 MB / 481.4 MB, free: 53.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/0.392, allocations: 1.123 MB / 482.5 MB, free: 52.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.392, allocations: 2.938 kB / 482.5 MB, free: 52.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003659/0.3957, allocations: 1.981 MB / 484.5 MB, free: 51.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3957, allocations: 15.91 kB / 484.5 MB, free: 51.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/0.3959, allocations: 114.3 kB / 484.6 MB, free: 51.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006715/0.3965, allocations: 272.7 kB / 484.9 MB, free: 51.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008944/0.3974, allocations: 193.3 kB / 485 MB, free: 51.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00652/0.404, allocations: 14.25 MB / 499.3 MB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.4057, allocations: 83.91 kB / 499.4 MB, free: 35.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.4058, allocations: 68.05 kB / 499.4 MB, free: 35.46 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.0008384/0.4066, allocations: 417.7 kB / 499.9 MB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/0.407, allocations: 371.5 kB / 0.4885 GB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004262/0.4113, allocations: 2.229 MB / 0.4907 GB, free: 32.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.4113, allocations: 8 kB / 0.4907 GB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4113, allocations: 4 kB / 0.4907 GB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.4113, allocations: 3.984 kB / 0.4907 GB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.4131, allocations: 1.547 MB / 0.4922 GB, free: 30.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001331/0.4132, allocations: 116 kB / 0.4923 GB, free: 30.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.414, allocations: 138.9 kB / 0.4924 GB, free: 30.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005624/0.4146, allocations: 264.9 kB / 0.4927 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.457e-05/0.4146, allocations: 47.92 kB / 0.4927 GB, free: 30.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006227/0.4209, allocations: 14.25 MB / 0.5066 GB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4209, allocations: 3.938 kB / 0.5066 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004939/0.4259, allocations: 2.547 MB / 0.5091 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000834/0.4267, allocations: 0.4888 MB / 0.5096 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/0.427, allocations: 20 kB / 0.5096 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009914/0.428, allocations: 83.89 kB / 0.5097 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000363/0.4284, allocations: 140.8 kB / 0.5098 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.4285, allocations: 47.98 kB / 0.5099 GB, free: 11.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.4308, allocations: 1.782 MB / 0.5116 GB, free: 9.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4308, allocations: 0 / 0.5116 GB, free: 9.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002498/0.4333, allocations: 0.6618 MB / 0.5123 GB, free: 8.742 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.001323/0.4347, allocations: 0.8066 MB / 0.5131 GB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003822/0.4385, allocations: 2.515 MB / 0.5155 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4385, allocations: 4.188 kB / 0.5155 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002194/0.4407, allocations: 1.963 MB / 0.5174 GB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/0.4428, allocations: 0.5323 MB / 0.518 GB, free: 2.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005894/0.4487, allocations: 4.671 MB / 0.5225 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.4498, allocations: 1.665 MB / 0.5242 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001069/0.4509, allocations: 387.4 kB / 0.5245 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.4512, allocations: 171.4 kB / 0.5247 GB, free: 11.81 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4512, allocations: 3.5 kB / 0.5247 GB, free: 11.81 MB / 398.1 MB Notification: Performance of Templates: time 0.06131/0.5125, allocations: 37.29 MB / 0.5611 GB, free: 6.465 MB / 430.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)