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.00802/0.00802, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001814/0.001813, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.381/1.381, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001283/0.001283, allocations: 51.92 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08698, allocations: 46.62 MB / 373.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2008/0.2878, allocations: 13.52 MB / 386.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02313/0.311, allocations: 19.37 MB / 406 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003428/0.3144, allocations: 126.5 kB / 406.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003383/0.3178, allocations: 1.1 MB / 407.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008386/0.3263, allocations: 2.273 MB / 409.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004932/0.3312, allocations: 1.391 MB / 410.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.3416, allocations: 6.279 MB / 417.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009062/0.3425, allocations: 437.9 kB / 417.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.3445, allocations: 0.998 MB / 418.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001541/0.346, allocations: 1.064 MB / 419.7 MB, free: 84 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001857/0.3462, allocations: 74.25 kB / 419.8 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00473/0.351, allocations: 1.157 MB / 420.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003258/0.3513, allocations: 329.6 kB / 421.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001431/0.3527, allocations: 1.327 MB / 422.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00536/0.3581, allocations: 3.716 MB / 426.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.3582, allocations: 4 kB / 426.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.3582, allocations: 0 / 426.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-05/0.3582, allocations: 3.938 kB / 426.3 MB, free: 10.29 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.00524/0.3635, allocations: 3.58 MB / 429.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3635, allocations: 12.03 kB / 429.9 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.364, allocations: 383.3 kB / 430.3 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003332/0.3673, allocations: 2.533 MB / 432.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.3674, allocations: 40.94 kB / 432.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3675, allocations: 55.84 kB / 432.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.3689, allocations: 0.7538 MB / 433.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.369, allocations: 0 / 433.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.006e-05/0.369, allocations: 23.98 kB / 433.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.3691, allocations: 20 kB / 433.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.3708, allocations: 0.8592 MB / 434.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004661/0.3755, allocations: 2.979 MB / 437.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.3771, allocations: 0.7793 MB / 438.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/0.3786, allocations: 0.9603 MB / 439.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02893/0.4075, allocations: 30.13 MB / 469.4 MB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.4087, allocations: 0.588 MB / 470 MB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.176e-06/0.4088, allocations: 0 / 470 MB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01238/0.4211, allocations: 5.237 MB / 475.2 MB, free: 4.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.4212, allocations: 64.39 kB / 475.3 MB, free: 4.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004411/0.4256, allocations: 2.721 MB / 478 MB, free: 1.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.4258, allocations: 41.7 kB / 478 MB, free: 1.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.4271, allocations: 1.299 MB / 479.3 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003448/0.4274, allocations: 335.1 kB / 479.7 MB, free: 268 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003911/0.4278, allocations: 234.3 kB / 479.9 MB, free: 28 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.428, allocations: 342 kB / 480.2 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.4292, allocations: 478 kB / 480.7 MB, free: 15.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.4306, allocations: 0.6469 MB / 481.4 MB, free: 14.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002481/0.4331, allocations: 1.138 MB / 482.5 MB, free: 13.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.4331, allocations: 4 kB / 482.5 MB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004031/0.4371, allocations: 1.976 MB / 484.5 MB, free: 11.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.4372, allocations: 15.92 kB / 484.5 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001628/0.4373, allocations: 120 kB / 484.6 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007223/0.4381, allocations: 264.5 kB / 484.9 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008545/0.4389, allocations: 199.7 kB / 485.1 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.4493, allocations: 14.24 MB / 499.3 MB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.4508, allocations: 91.95 kB / 499.4 MB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.451, allocations: 60 kB / 499.4 MB, free: 10.85 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.0009587/0.452, allocations: 429.6 kB / 499.9 MB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006355/0.4527, allocations: 371.5 kB / 0.4885 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00491/0.4576, allocations: 2.218 MB / 0.4907 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.4576, allocations: 15.97 kB / 0.4907 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.4576, allocations: 4 kB / 0.4907 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4576, allocations: 3.984 kB / 0.4907 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.4599, allocations: 1.552 MB / 0.4922 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001628/0.4601, allocations: 116 kB / 0.4923 GB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007035/0.4608, allocations: 135.8 kB / 0.4925 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000665/0.4615, allocations: 268.3 kB / 0.4927 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.4616, allocations: 39.98 kB / 0.4927 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.4721, allocations: 14.25 MB / 0.5067 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4721, allocations: 0 / 0.5067 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005506/0.4776, allocations: 2.551 MB / 0.5092 GB, free: 3.262 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.4788, allocations: 492.5 kB / 0.5096 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006484/0.4794, allocations: 19.98 kB / 0.5096 GB, free: 2.738 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.4807, allocations: 83.89 kB / 0.5097 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003655/0.4811, allocations: 140.8 kB / 0.5099 GB, free: 2.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.4812, allocations: 47.98 kB / 0.5099 GB, free: 2.473 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002781/0.484, allocations: 1.782 MB / 0.5116 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.484, allocations: 0 / 0.5116 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001709/0.4857, allocations: 0.6601 MB / 0.5123 GB, free: 24 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.487, allocations: 0.8203 MB / 0.5131 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004193/0.4912, allocations: 2.534 MB / 0.5156 GB, free: 12.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4913, allocations: 0 / 0.5156 GB, free: 12.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002614/0.4939, allocations: 1.952 MB / 0.5175 GB, free: 10.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.4961, allocations: 0.5223 MB / 0.518 GB, free: 9.879 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007609/0.5037, allocations: 4.677 MB / 0.5225 GB, free: 5.168 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.5051, allocations: 1.662 MB / 0.5242 GB, free: 3.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001202/0.5063, allocations: 395.4 kB / 0.5245 GB, free: 3.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/0.5066, allocations: 163.4 kB / 0.5247 GB, free: 2.93 MB / 462.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5066, allocations: 0 / 0.5247 GB, free: 2.93 MB / 462.1 MB Notification: Performance of Templates: time 0.2356/0.7423, allocations: 37.29 MB / 0.5611 GB, free: 150.8 MB / 478.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)