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.005016/0.005016, allocations: 108.3 kB / 15.74 MB, free: 6.496 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.001178/0.001178, allocations: 193.9 kB / 16.67 MB, free: 6.379 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.423/1.423, 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.001256/0.001256, allocations: 57.86 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09104, 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.01326/0.1043, allocations: 13.53 MB / 386.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02447/0.1289, allocations: 19.37 MB / 406 MB, free: 304 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.1313, allocations: 126.9 kB / 406.2 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002795/0.1341, allocations: 1.1 MB / 407.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006599/0.1407, allocations: 2.246 MB / 409.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00413/0.1449, allocations: 1.381 MB / 410.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00935/0.1543, allocations: 6.285 MB / 417.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007403/0.155, allocations: 436.5 kB / 417.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.1564, allocations: 0.9992 MB / 418.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.1575, allocations: 1.06 MB / 419.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.1577, allocations: 76 kB / 419.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003243/0.1609, allocations: 1.163 MB / 420.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003132/0.1613, allocations: 317.7 kB / 421.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001341/0.1626, allocations: 1.335 MB / 422.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006023/0.1686, allocations: 3.712 MB / 426.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1687, allocations: 0 / 426.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1687, allocations: 0 / 426.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.955e-05/0.1687, allocations: 0 / 426.3 MB, free: 11.96 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.005258/0.174, allocations: 3.58 MB / 429.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.174, allocations: 8.031 kB / 429.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003828/0.1744, allocations: 383.4 kB / 430.2 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003521/0.178, allocations: 2.536 MB / 432.8 MB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.178, allocations: 40.94 kB / 432.8 MB, free: 5.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.1781, allocations: 47.91 kB / 432.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.1796, allocations: 0.7693 MB / 433.6 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1797, allocations: 3.938 kB / 433.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.618e-05/0.1797, allocations: 16 kB / 433.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.1798, allocations: 23.98 kB / 433.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.1816, allocations: 0.8514 MB / 434.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004778/0.1864, allocations: 2.982 MB / 437.5 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.1881, allocations: 0.7832 MB / 438.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001472/0.1896, allocations: 0.9603 MB / 439.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1993/0.3889, allocations: 30.11 MB / 469.4 MB, free: 60.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.3901, allocations: 0.5914 MB / 469.9 MB, free: 59.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.958e-06/0.3902, allocations: 0 / 469.9 MB, free: 59.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01201/0.4022, allocations: 5.24 MB / 475.2 MB, free: 56.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.4022, allocations: 65.84 kB / 475.3 MB, free: 56.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003548/0.4058, allocations: 2.714 MB / 478 MB, free: 55.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.896e-05/0.4059, allocations: 41.67 kB / 478 MB, free: 55.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007574/0.4066, allocations: 1.307 MB / 479.3 MB, free: 54.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.4069, allocations: 336.4 kB / 479.6 MB, free: 53.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003155/0.4072, allocations: 232.4 kB / 479.9 MB, free: 53.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.709e-05/0.4073, allocations: 345.6 kB / 480.2 MB, free: 53.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.4084, allocations: 480.8 kB / 480.7 MB, free: 53.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.4097, allocations: 0.6457 MB / 481.3 MB, free: 52.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002362/0.412, allocations: 1.127 MB / 482.4 MB, free: 52.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.412, allocations: 0 / 482.4 MB, free: 52.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003617/0.4157, allocations: 1.981 MB / 484.4 MB, free: 51.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.4157, allocations: 10.69 kB / 484.4 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/0.4158, allocations: 116.3 kB / 484.6 MB, free: 51.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006347/0.4165, allocations: 270.2 kB / 484.8 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/0.4174, allocations: 195.2 kB / 485 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006403/0.4238, allocations: 14.25 MB / 499.3 MB, free: 35.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.425, allocations: 87.97 kB / 499.3 MB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.4252, allocations: 56 kB / 499.4 MB, free: 35.33 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.0007693/0.4259, allocations: 425.6 kB / 499.8 MB, free: 34.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004059/0.4264, allocations: 371.5 kB / 0.4885 GB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/0.4306, allocations: 2.229 MB / 0.4906 GB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.4307, allocations: 8.75 kB / 0.4906 GB, free: 32.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.4307, allocations: 8 kB / 0.4906 GB, free: 32.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.4307, allocations: 3.984 kB / 0.4907 GB, free: 32.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.4324, allocations: 1.544 MB / 0.4922 GB, free: 30.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001153/0.4325, allocations: 120 kB / 0.4923 GB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006871/0.4332, allocations: 135.8 kB / 0.4924 GB, free: 30.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000561/0.4337, allocations: 264.3 kB / 0.4927 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.4339, allocations: 47.92 kB / 0.4927 GB, free: 30.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006132/0.44, allocations: 14.24 MB / 0.5066 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.44, allocations: 3.391 kB / 0.5066 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004688/0.4447, allocations: 2.555 MB / 0.5091 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008915/0.4456, allocations: 0.4888 MB / 0.5096 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/0.446, allocations: 16 kB / 0.5096 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.4472, allocations: 83.89 kB / 0.5097 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003927/0.4476, allocations: 136.8 kB / 0.5098 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.4478, allocations: 51.98 kB / 0.5099 GB, free: 11.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.4503, allocations: 1.778 MB / 0.5116 GB, free: 9.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4503, allocations: 4 kB / 0.5116 GB, free: 9.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0016/0.4519, allocations: 0.6549 MB / 0.5122 GB, free: 8.602 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.001319/0.4532, allocations: 0.8107 MB / 0.513 GB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003603/0.4568, allocations: 2.522 MB / 0.5155 GB, free: 5.234 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4568, allocations: 0 / 0.5155 GB, free: 5.234 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002178/0.459, allocations: 1.963 MB / 0.5174 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.4612, allocations: 0.5281 MB / 0.5179 GB, free: 2.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007199/0.4684, allocations: 4.671 MB / 0.5225 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/0.47, allocations: 1.665 MB / 0.5241 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001252/0.4712, allocations: 395 kB / 0.5245 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.4716, allocations: 167.4 kB / 0.5247 GB, free: 11.66 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4716, allocations: 0 / 0.5247 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Templates: time 0.06905/0.5407, allocations: 38.15 MB / 0.5619 GB, free: 5.453 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)