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.005972/0.005972, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001173/0.001172, allocations: 186.2 kB / 16.67 MB, free: 5.973 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 / 222.6 MB, free: 4.508 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.001152/0.001152, allocations: 54.33 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07882/0.07998, allocations: 46.62 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01279/0.09281, allocations: 13.52 MB / 386.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.1138, allocations: 19.38 MB / 406.1 MB, free: 312 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002246/0.1161, allocations: 118.9 kB / 406.2 MB, free: 192 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002702/0.1188, allocations: 1.096 MB / 407.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006457/0.1253, allocations: 2.246 MB / 409.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004326/0.1296, allocations: 1.385 MB / 410.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009168/0.1388, allocations: 6.281 MB / 417.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007021/0.1396, allocations: 440.4 kB / 417.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.1409, allocations: 0.9797 MB / 418.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.1421, allocations: 1.056 MB / 419.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.1423, allocations: 80 kB / 419.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003426/0.1457, allocations: 1.156 MB / 420.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.1461, allocations: 317.7 kB / 421.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.1475, allocations: 1.335 MB / 422.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004693/0.1522, allocations: 3.713 MB / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1522, allocations: 0 / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1522, allocations: 0 / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.675e-05/0.1523, allocations: 0 / 426.2 MB, free: 12 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.005584/0.1579, allocations: 3.588 MB / 429.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1579, allocations: 8.031 kB / 429.8 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004329/0.1584, allocations: 379.4 kB / 430.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003642/0.162, allocations: 2.536 MB / 432.7 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.696e-05/0.1621, allocations: 40.92 kB / 432.8 MB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.1622, allocations: 51.91 kB / 432.8 MB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1637, allocations: 0.7616 MB / 433.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1638, allocations: 0 / 433.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-05/0.1638, allocations: 16 kB / 433.6 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.1639, allocations: 23.98 kB / 433.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.1657, allocations: 0.8553 MB / 434.5 MB, free: 3.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00534/0.171, allocations: 2.978 MB / 437.5 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.1729, allocations: 0.7911 MB / 438.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.1744, allocations: 0.9564 MB / 439.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2067/0.3811, allocations: 30.12 MB / 469.3 MB, free: 60.58 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001118/0.3823, allocations: 0.5954 MB / 469.9 MB, free: 60.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.657e-06/0.3823, allocations: 1.188 kB / 469.9 MB, free: 60.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01159/0.3939, allocations: 5.237 MB / 475.2 MB, free: 57.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.3939, allocations: 66.84 kB / 475.2 MB, free: 57.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002705/0.3967, allocations: 2.713 MB / 477.9 MB, free: 55.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.299e-05/0.3968, allocations: 41.64 kB / 478 MB, free: 55.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00072/0.3975, allocations: 1.302 MB / 479.3 MB, free: 54.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/0.3977, allocations: 343.4 kB / 479.6 MB, free: 54.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.398, allocations: 228.6 kB / 479.8 MB, free: 54.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.668e-05/0.398, allocations: 349.8 kB / 480.2 MB, free: 53.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.3992, allocations: 472.6 kB / 480.6 MB, free: 53.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.4004, allocations: 0.6472 MB / 481.3 MB, free: 53.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/0.4027, allocations: 1.135 MB / 482.4 MB, free: 52.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4027, allocations: 0 / 482.4 MB, free: 52.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003729/0.4065, allocations: 1.978 MB / 484.4 MB, free: 51.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.4065, allocations: 7.344 kB / 484.4 MB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/0.4067, allocations: 120.6 kB / 484.5 MB, free: 51.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006479/0.4073, allocations: 266.1 kB / 484.8 MB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008857/0.4082, allocations: 200.2 kB / 485 MB, free: 51.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006002/0.4142, allocations: 14.24 MB / 499.2 MB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.4157, allocations: 83.91 kB / 499.3 MB, free: 35.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.4158, allocations: 59.98 kB / 499.4 MB, free: 35.52 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.0007057/0.4165, allocations: 421.7 kB / 499.8 MB, free: 35.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.4168, allocations: 371.5 kB / 0.4884 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/0.4211, allocations: 2.231 MB / 0.4906 GB, free: 32.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.4211, allocations: 8 kB / 0.4906 GB, free: 32.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4211, allocations: 4 kB / 0.4906 GB, free: 32.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.4211, allocations: 7.984 kB / 0.4906 GB, free: 32.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.4226, allocations: 1.544 MB / 0.4921 GB, free: 30.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001259/0.4228, allocations: 116 kB / 0.4922 GB, free: 30.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006917/0.4235, allocations: 143.8 kB / 0.4924 GB, free: 30.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000554/0.424, allocations: 264.7 kB / 0.4926 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.327e-05/0.4241, allocations: 51.2 kB / 0.4927 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006206/0.4303, allocations: 14.24 MB / 0.5066 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4304, allocations: 64 / 0.5066 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.4355, allocations: 2.551 MB / 0.5091 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000916/0.4364, allocations: 0.4888 MB / 0.5096 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.4367, allocations: 16 kB / 0.5096 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009398/0.4377, allocations: 79.89 kB / 0.5096 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.438, allocations: 140.8 kB / 0.5098 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-05/0.4381, allocations: 51.98 kB / 0.5098 GB, free: 11.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001828/0.4399, allocations: 1.778 MB / 0.5116 GB, free: 9.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4399, allocations: 4 kB / 0.5116 GB, free: 9.426 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001477/0.4414, allocations: 0.6586 MB / 0.5122 GB, free: 8.793 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.001003/0.4424, allocations: 0.8149 MB / 0.513 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003457/0.4459, allocations: 2.515 MB / 0.5155 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4459, allocations: 0 / 0.5155 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002103/0.448, allocations: 1.959 MB / 0.5174 GB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/0.4497, allocations: 0.532 MB / 0.5179 GB, free: 2.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006373/0.4561, allocations: 4.68 MB / 0.5225 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.4574, allocations: 1.665 MB / 0.5241 GB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001305/0.4587, allocations: 391.4 kB / 0.5245 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.459, allocations: 174.8 kB / 0.5246 GB, free: 11.85 MB / 398.1 MB Notification: Performance of SimCode: time 1.513e-06/0.459, allocations: 0 / 0.5246 GB, free: 11.85 MB / 398.1 MB Notification: Performance of Templates: time 0.06155/0.5205, allocations: 37.28 MB / 0.561 GB, free: 6.504 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)