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.001331/0.001331, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.351/1.351, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001165/0.001165, allocations: 55.91 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1936, allocations: 46.63 MB / 325.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0117/0.2053, allocations: 13.53 MB / 338.8 MB, free: 6.387 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02074/0.2261, allocations: 19.37 MB / 358.2 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00314/0.2293, allocations: 63.44 kB / 358.3 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00309/0.2324, allocations: 1.086 MB / 359.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006718/0.2392, allocations: 2.262 MB / 361.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003947/0.2431, allocations: 1.389 MB / 363 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009761/0.2529, allocations: 6.254 MB / 369.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007726/0.2537, allocations: 432.5 kB / 369.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.255, allocations: 0.9564 MB / 370.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.2561, allocations: 1.06 MB / 371.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.2563, allocations: 76 kB / 371.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003453/0.2598, allocations: 1.159 MB / 372.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003074/0.2601, allocations: 329.7 kB / 373.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001172/0.2613, allocations: 1.327 MB / 374.6 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004122/0.2654, allocations: 3.681 MB / 378.3 MB, free: 14.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2655, allocations: 8 kB / 378.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2655, allocations: 0 / 378.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.407e-05/0.2655, allocations: 0 / 378.3 MB, free: 14.75 MB / 318.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.00475/0.2703, allocations: 3.588 MB / 381.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2703, allocations: 15.97 kB / 381.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003891/0.2707, allocations: 379.4 kB / 382.2 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/0.274, allocations: 2.552 MB / 384.8 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.2741, allocations: 40.94 kB / 384.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.2742, allocations: 51.98 kB / 384.9 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.2756, allocations: 0.7576 MB / 385.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2757, allocations: 0 / 385.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.2757, allocations: 20 kB / 385.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.2758, allocations: 23.98 kB / 385.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001778/0.2776, allocations: 0.8514 MB / 386.5 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004591/0.2822, allocations: 2.984 MB / 389.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.2839, allocations: 0.7949 MB / 390.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.2854, allocations: 0.9488 MB / 391.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02877/0.3142, allocations: 30.13 MB / 421.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.3154, allocations: 0.5996 MB / 422 MB, free: 14.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.575e-06/0.3154, allocations: 0 / 422 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01189/0.3273, allocations: 5.24 MB / 427.2 MB, free: 9.164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.3273, allocations: 64.41 kB / 427.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003018/0.3304, allocations: 2.717 MB / 430 MB, free: 6.359 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.757e-05/0.3305, allocations: 41.7 kB / 430.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.3315, allocations: 1.296 MB / 431.4 MB, free: 5.012 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/0.3318, allocations: 335.2 kB / 431.7 MB, free: 4.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003462/0.3321, allocations: 234.2 kB / 431.9 MB, free: 4.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3323, allocations: 353.9 kB / 432.3 MB, free: 4.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.3335, allocations: 478 kB / 432.7 MB, free: 3.625 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.3349, allocations: 0.6548 MB / 433.4 MB, free: 2.906 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002532/0.3375, allocations: 1.122 MB / 434.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3375, allocations: 0 / 434.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003929/0.3414, allocations: 1.983 MB / 436.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.3415, allocations: 11.94 kB / 436.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001596/0.3416, allocations: 120 kB / 436.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006764/0.3423, allocations: 268.8 kB / 436.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008985/0.3432, allocations: 191.7 kB / 437.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.156/0.4993, allocations: 14.24 MB / 451.3 MB, free: 115.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.501, allocations: 90.95 kB / 451.4 MB, free: 115.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/0.5013, allocations: 57 kB / 451.4 MB, free: 115.7 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.001201/0.5025, allocations: 429.6 kB / 451.9 MB, free: 115.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/0.5035, allocations: 371.7 kB / 452.2 MB, free: 115.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005531/0.5091, allocations: 2.222 MB / 454.4 MB, free: 115.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.5091, allocations: 12.31 kB / 454.5 MB, free: 115.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5091, allocations: 3.281 kB / 454.5 MB, free: 115.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.5091, allocations: 5.359 kB / 454.5 MB, free: 115.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.511, allocations: 1.552 MB / 456 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001547/0.5111, allocations: 117 kB / 456.1 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007226/0.5119, allocations: 138.6 kB / 456.3 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005649/0.5124, allocations: 262.4 kB / 456.5 MB, free: 114.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-05/0.5126, allocations: 48.2 kB / 456.6 MB, free: 114.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005932/0.5185, allocations: 14.25 MB / 470.8 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.5185, allocations: 3.938 kB / 470.8 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004812/0.5233, allocations: 2.543 MB / 473.4 MB, free: 99.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006496/0.524, allocations: 497.8 kB / 473.9 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003105/0.5243, allocations: 22.17 kB / 473.9 MB, free: 99.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009474/0.5253, allocations: 91.73 kB / 474 MB, free: 99.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.5256, allocations: 138 kB / 474.1 MB, free: 99.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.331e-05/0.5257, allocations: 50.2 kB / 474.2 MB, free: 99.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001903/0.5276, allocations: 1.782 MB / 475.9 MB, free: 98.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5276, allocations: 1.859 kB / 475.9 MB, free: 98.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001213/0.5288, allocations: 0.6559 MB / 476.6 MB, free: 98.22 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.000919/0.5297, allocations: 0.8211 MB / 477.4 MB, free: 97.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.5334, allocations: 2.544 MB / 480 MB, free: 94.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5334, allocations: 4 kB / 480 MB, free: 94.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.5355, allocations: 1.952 MB / 481.9 MB, free: 92.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.537, allocations: 0.5129 MB / 482.4 MB, free: 92.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005075/0.5421, allocations: 4.764 MB / 487.2 MB, free: 87.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006983/0.5428, allocations: 1.665 MB / 488.9 MB, free: 85.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001209/0.544, allocations: 395.4 kB / 489.2 MB, free: 85.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.5442, allocations: 171.4 kB / 489.4 MB, free: 85.19 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5443, allocations: 0 / 489.4 MB, free: 85.19 MB / 382.1 MB Notification: Performance of Templates: time 0.05016/0.5944, allocations: 37.12 MB / 0.5142 GB, free: 48.01 MB / 382.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)