Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.007291/0.007291, allocations: 100.9 kB / 15.73 MB, free: 6.027 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.001577/0.001577, allocations: 183.5 kB / 16.67 MB, free: 5.965 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.399/1.399, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001212/0.001212, allocations: 50.05 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08107/0.08229, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01247/0.09481, allocations: 13.52 MB / 386.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0208/0.1156, allocations: 19.38 MB / 406.1 MB, free: 296 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001888/0.1176, allocations: 122.9 kB / 406.2 MB, free: 172 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004073/0.1217, allocations: 1.1 MB / 407.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.1321, allocations: 2.274 MB / 409.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006138/0.1383, allocations: 1.389 MB / 410.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.1521, allocations: 6.281 MB / 417.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.1531, allocations: 436.5 kB / 417.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.1551, allocations: 1.003 MB / 418.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.1572, allocations: 1.056 MB / 419.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004011/0.1576, allocations: 76 kB / 419.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005524/0.1631, allocations: 1.163 MB / 420.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005477/0.1637, allocations: 325.7 kB / 421.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001971/0.1657, allocations: 1.331 MB / 422.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005844/0.1715, allocations: 3.705 MB / 426.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1716, allocations: 8 kB / 426.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1716, allocations: 0 / 426.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.266e-05/0.1717, 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.008613/0.1803, allocations: 3.576 MB / 429.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.1804, allocations: 12.03 kB / 429.9 MB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000895/0.1813, allocations: 379.4 kB / 430.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006312/0.1876, allocations: 2.54 MB / 432.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.14e-05/0.1877, allocations: 36.94 kB / 432.8 MB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.1878, allocations: 59.89 kB / 432.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.1895, allocations: 0.7538 MB / 433.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1895, allocations: 0 / 433.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.255e-05/0.1896, allocations: 20 kB / 433.7 MB, free: 4.387 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.1896, allocations: 23.92 kB / 433.7 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.1914, allocations: 0.8553 MB / 434.6 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005139/0.1966, allocations: 2.982 MB / 437.5 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.1983, allocations: 0.7872 MB / 438.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.1998, allocations: 0.9525 MB / 439.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1976/0.3974, allocations: 30.12 MB / 469.4 MB, free: 60.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.3986, allocations: 0.5926 MB / 470 MB, free: 60.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.277e-06/0.3986, allocations: 0 / 470 MB, free: 60.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01208/0.4107, allocations: 5.24 MB / 475.2 MB, free: 57.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.4108, allocations: 67.28 kB / 475.3 MB, free: 57.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003466/0.4143, allocations: 2.717 MB / 478 MB, free: 55.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.665e-05/0.4144, allocations: 45.55 kB / 478.1 MB, free: 55.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007214/0.4151, allocations: 1.3 MB / 479.4 MB, free: 54.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.4153, allocations: 332.8 kB / 479.7 MB, free: 54.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/0.4156, allocations: 236.3 kB / 479.9 MB, free: 54.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.869e-05/0.4156, allocations: 345.6 kB / 480.2 MB, free: 53.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.4168, allocations: 476.5 kB / 480.7 MB, free: 53.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.4181, allocations: 0.6482 MB / 481.4 MB, free: 53.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002254/0.4203, allocations: 1.123 MB / 482.5 MB, free: 52.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4204, allocations: 0 / 482.5 MB, free: 52.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003587/0.424, allocations: 1.986 MB / 484.5 MB, free: 51.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.424, allocations: 8.844 kB / 484.5 MB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/0.4242, allocations: 116 kB / 484.6 MB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006109/0.4248, allocations: 270.1 kB / 484.9 MB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008606/0.4257, allocations: 197.8 kB / 485 MB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005924/0.4316, allocations: 14.25 MB / 499.3 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.4332, allocations: 83.91 kB / 499.4 MB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.4333, allocations: 59.52 kB / 499.4 MB, free: 35.48 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.0007546/0.4341, allocations: 421.8 kB / 499.8 MB, free: 35.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003427/0.4345, allocations: 375.5 kB / 0.4885 GB, free: 34.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.4387, allocations: 2.23 MB / 0.4907 GB, free: 32.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.4387, allocations: 11.66 kB / 0.4907 GB, free: 32.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4387, allocations: 4 kB / 0.4907 GB, free: 32.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.4387, allocations: 3.984 kB / 0.4907 GB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.4403, allocations: 1.549 MB / 0.4922 GB, free: 30.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001305/0.4404, allocations: 116 kB / 0.4923 GB, free: 30.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007026/0.4411, allocations: 135.8 kB / 0.4924 GB, free: 30.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005293/0.4417, allocations: 260.3 kB / 0.4927 GB, free: 30.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.882e-05/0.4418, allocations: 47.92 kB / 0.4927 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005986/0.4478, allocations: 14.25 MB / 0.5066 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.4478, allocations: 0 / 0.5066 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.4529, allocations: 2.549 MB / 0.5091 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008584/0.4538, allocations: 0.4888 MB / 0.5096 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003302/0.4541, allocations: 20 kB / 0.5096 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000993/0.4551, allocations: 79.89 kB / 0.5097 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003459/0.4554, allocations: 140.8 kB / 0.5098 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-05/0.4555, allocations: 51.98 kB / 0.5099 GB, free: 11.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001898/0.4575, allocations: 1.782 MB / 0.5116 GB, free: 9.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4575, allocations: 0 / 0.5116 GB, free: 9.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001417/0.4589, allocations: 0.6591 MB / 0.5123 GB, free: 8.758 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.001019/0.4599, allocations: 0.8084 MB / 0.5131 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.4635, allocations: 2.522 MB / 0.5155 GB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4635, allocations: 3.828 kB / 0.5155 GB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002106/0.4656, allocations: 1.967 MB / 0.5175 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.4674, allocations: 0.5238 MB / 0.518 GB, free: 2.746 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/0.4735, allocations: 4.673 MB / 0.5225 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.4747, allocations: 1.669 MB / 0.5242 GB, free: 12.37 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001193/0.4759, allocations: 391.4 kB / 0.5245 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003482/0.4762, allocations: 171.4 kB / 0.5247 GB, free: 11.82 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4762, allocations: 0 / 0.5247 GB, free: 11.82 MB / 398.1 MB Notification: Performance of Templates: time 0.06168/0.5379, allocations: 37.28 MB / 0.5611 GB, free: 6.473 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)