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.0009351/0.000935, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001269/0.001269, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004498/0.0004499, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2421, allocations: 47.59 MB / 326.5 MB, free: 1.492 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01017/0.2523, allocations: 11.97 MB / 338.4 MB, free: 7.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0231/0.2755, allocations: 17.6 MB / 356 MB, free: 5.953 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.2781, allocations: 67.44 kB / 356.1 MB, free: 5.887 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002699/0.2808, allocations: 0.8438 MB / 357 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007385/0.2882, allocations: 1.801 MB / 358.8 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004679/0.293, allocations: 1.061 MB / 359.8 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.304, allocations: 5.892 MB / 365.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001113/0.3052, allocations: 403.3 kB / 366.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3067, allocations: 0.8357 MB / 366.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001566/0.3083, allocations: 0.9707 MB / 367.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003844/0.3087, allocations: 44 kB / 368 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004546/0.3133, allocations: 1.081 MB / 369 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004978/0.3138, allocations: 266 kB / 369.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0011/0.3149, allocations: 0.6054 MB / 369.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003629/0.3185, allocations: 2.652 MB / 372.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3186, allocations: 0 / 372.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3186, allocations: 0 / 372.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001126/0.3187, allocations: 0 / 372.6 MB, free: 5.348 MB / 302.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.005691/0.3244, allocations: 3.186 MB / 375.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.3245, allocations: 16.02 kB / 375.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005421/0.325, allocations: 379.4 kB / 376.1 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004163/0.3292, allocations: 2.396 MB / 378.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/0.3292, allocations: 36.94 kB / 378.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.3294, allocations: 51.98 kB / 378.6 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.331, allocations: 0.789 MB / 379.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.3311, allocations: 0 / 379.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.912e-05/0.3311, allocations: 16 kB / 379.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.3312, allocations: 19.98 kB / 379.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.3328, allocations: 0.9217 MB / 380.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004865/0.3377, allocations: 3.015 MB / 383.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.3393, allocations: 0.8419 MB / 384.2 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.3408, allocations: 0.9956 MB / 385.2 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0291/0.3699, allocations: 30.17 MB / 415.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.3711, allocations: 0.6231 MB / 416 MB, free: 5.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.447e-06/0.3712, allocations: 4 kB / 416 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01317/0.3843, allocations: 5.717 MB / 421.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.3844, allocations: 68.41 kB / 421.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004174/0.3886, allocations: 2.682 MB / 424.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001382/0.3888, allocations: 45.64 kB / 424.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.3899, allocations: 1.307 MB / 425.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/0.3904, allocations: 331.2 kB / 426.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.151e-05/0.3904, allocations: 16 kB / 426.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3906, allocations: 357.9 kB / 426.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.3919, allocations: 0.5254 MB / 427 MB, free: 10.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.3934, allocations: 0.7095 MB / 427.7 MB, free: 9.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.3947, allocations: 0.5652 MB / 428.3 MB, free: 8.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.3947, allocations: 8 kB / 428.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004908/0.3996, allocations: 2.097 MB / 430.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.3997, allocations: 8 kB / 430.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002139/0.3999, allocations: 120 kB / 430.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007706/0.4007, allocations: 268.9 kB / 430.8 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008722/0.4016, allocations: 223.7 kB / 431 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009615/0.4112, allocations: 13.23 MB / 444.3 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.4134, allocations: 120 kB / 444.4 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003293/0.4138, allocations: 60 kB / 444.4 MB, free: 7.312 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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001273/0.4151, allocations: 429.7 kB / 444.8 MB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008369/0.4159, allocations: 375.5 kB / 445.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005756/0.4217, allocations: 2.347 MB / 447.6 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4217, allocations: 8 kB / 447.6 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/0.4217, allocations: 7.984 kB / 447.6 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.4217, allocations: 11.92 kB / 447.6 MB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/0.4244, allocations: 1.547 MB / 449.1 MB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001719/0.4246, allocations: 112 kB / 449.2 MB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007253/0.4254, allocations: 171.8 kB / 449.4 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006154/0.426, allocations: 264.3 kB / 449.7 MB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.4261, allocations: 43.97 kB / 449.7 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2112/0.6374, allocations: 13.23 MB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.6374, allocations: 4.234 kB / 463 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006331/0.6438, allocations: 2.736 MB / 465.7 MB, free: 104.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.645, allocations: 0.4892 MB / 466.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008162/0.6459, allocations: 22.22 kB / 466.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/0.6474, allocations: 112.8 kB / 466.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004771/0.6479, allocations: 144.6 kB / 466.4 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/0.6481, allocations: 47.34 kB / 466.5 MB, free: 104.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003676/0.6518, allocations: 1.753 MB / 468.2 MB, free: 103.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6518, allocations: 0 / 468.2 MB, free: 103.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002336/0.6542, allocations: 0.653 MB / 468.9 MB, free: 103.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00149/0.6557, allocations: 0.7897 MB / 469.7 MB, free: 103.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003876/0.6596, allocations: 2.646 MB / 472.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.6596, allocations: 0 / 472.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002234/0.6618, allocations: 2.013 MB / 474.3 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002603/0.6645, allocations: 0.4938 MB / 474.8 MB, free: 99.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007454/0.6719, allocations: 5.349 MB / 480.2 MB, free: 94.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.6732, allocations: 1.665 MB / 481.9 MB, free: 92.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001617/0.6749, allocations: 395.4 kB / 482.2 MB, free: 92.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.6753, allocations: 163.4 kB / 482.4 MB, free: 92.4 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6753, allocations: 0 / 482.4 MB, free: 92.4 MB / 382.1 MB Notification: Performance of Templates: time 0.05789/0.7332, allocations: 34.41 MB / 0.5047 GB, free: 57.95 MB / 382.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)