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.001166/0.001166, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001334/0.001334, allocations: 177.3 kB / 15.94 MB, free: 228 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.374/1.374, allocations: 205.4 MB / 222.1 MB, free: 5.504 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.0004307/0.0004311, allocations: 12 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2657, allocations: 47.58 MB / 326.4 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01024/0.276, allocations: 10.88 MB / 337.3 MB, free: 8.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.2962, allocations: 16.68 MB / 354 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002406/0.2987, allocations: 63.44 kB / 354.1 MB, free: 7.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002745/0.3015, allocations: 0.8669 MB / 354.9 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006803/0.3083, allocations: 2.06 MB / 357 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003997/0.3123, allocations: 1.137 MB / 358.1 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.323, allocations: 6.072 MB / 364.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007246/0.3238, allocations: 407.3 kB / 364.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.3252, allocations: 0.8085 MB / 365.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.3263, allocations: 0.9708 MB / 366.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001444/0.3265, allocations: 40 kB / 366.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004468/0.3309, allocations: 1.222 MB / 367.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002823/0.3312, allocations: 262 kB / 367.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007786/0.332, allocations: 0.6015 MB / 368.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002513/0.3345, allocations: 2.564 MB / 371.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.3346, allocations: 0 / 371.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3346, allocations: 0 / 371.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.941e-05/0.3346, allocations: 0 / 371.1 MB, free: 6.758 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.004847/0.3395, allocations: 3.174 MB / 374.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3395, allocations: 12.03 kB / 374.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003786/0.3399, allocations: 379.4 kB / 374.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.3437, allocations: 2.392 MB / 377 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.3438, allocations: 37 kB / 377 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.3439, allocations: 52 kB / 377.1 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3453, allocations: 0.7811 MB / 377.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.3454, allocations: 4 kB / 377.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.86e-05/0.3455, allocations: 16 kB / 377.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.614e-05/0.3455, allocations: 23.98 kB / 377.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.3473, allocations: 0.9178 MB / 378.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004794/0.3521, allocations: 2.991 MB / 381.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.3538, allocations: 0.8574 MB / 382.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02851/0.3823, allocations: 30.32 MB / 413 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.3836, allocations: 0.623 MB / 413.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.896e-06/0.3837, allocations: 0 / 413.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01392/0.3976, allocations: 6.017 MB / 419.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/0.3977, allocations: 68.39 kB / 419.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/0.4016, allocations: 2.678 MB / 422.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.4018, allocations: 45.7 kB / 422.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.4031, allocations: 1.296 MB / 423.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.4035, allocations: 335.1 kB / 424.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.818e-05/0.4036, allocations: 16 kB / 424.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.4038, allocations: 353.9 kB / 424.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.4053, allocations: 0.5254 MB / 424.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.4067, allocations: 0.6978 MB / 425.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.4081, allocations: 0.5769 MB / 426.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.4081, allocations: 4 kB / 426.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004428/0.4125, allocations: 2.093 MB / 428.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.4126, allocations: 8.531 kB / 428.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/0.4127, allocations: 120 kB / 428.4 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007181/0.4135, allocations: 268.4 kB / 428.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000956/0.4144, allocations: 239.6 kB / 428.9 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/0.4262, allocations: 13.31 MB / 442.2 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.4278, allocations: 135.8 kB / 442.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/0.4281, allocations: 60 kB / 442.4 MB, free: 9.152 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.001113/0.4292, allocations: 433.4 kB / 442.9 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007605/0.43, allocations: 371.5 kB / 443.2 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00587/0.4358, allocations: 2.363 MB / 445.6 MB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4359, allocations: 8 kB / 445.6 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.4359, allocations: 8 kB / 445.6 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4359, allocations: 3.984 kB / 445.6 MB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/0.4384, allocations: 1.555 MB / 447.2 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001441/0.4386, allocations: 116 kB / 447.3 MB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007627/0.4394, allocations: 163.8 kB / 447.4 MB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006787/0.44, allocations: 264.3 kB / 447.7 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.4402, allocations: 43.98 kB / 447.7 MB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1956/0.6358, allocations: 13.3 MB / 461 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.6359, allocations: 0 / 461 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008416/0.6443, allocations: 2.74 MB / 463.8 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/0.6459, allocations: 485.2 kB / 464.2 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/0.647, allocations: 22.14 kB / 464.3 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/0.6491, allocations: 118.9 kB / 464.4 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004875/0.6496, allocations: 142.3 kB / 464.5 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/0.6498, allocations: 45.02 kB / 464.6 MB, free: 105.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00364/0.6534, allocations: 1.751 MB / 466.3 MB, free: 104.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6535, allocations: 3.469 kB / 466.3 MB, free: 104.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002533/0.656, allocations: 0.655 MB / 467 MB, free: 104.9 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.001486/0.6575, allocations: 0.7718 MB / 467.7 MB, free: 104.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005253/0.6628, allocations: 2.641 MB / 470.4 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6628, allocations: 3.719 kB / 470.4 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002813/0.6656, allocations: 2.015 MB / 472.4 MB, free: 101.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.6673, allocations: 0.489 MB / 472.9 MB, free: 101.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005681/0.673, allocations: 5.344 MB / 478.2 MB, free: 96.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007703/0.6738, allocations: 1.721 MB / 480 MB, free: 94.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001246/0.675, allocations: 391.4 kB / 480.3 MB, free: 94.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.6753, allocations: 163.4 kB / 480.5 MB, free: 93.88 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.6753, allocations: 4 kB / 480.5 MB, free: 93.88 MB / 382.1 MB Notification: Performance of Templates: time 0.04929/0.7246, allocations: 33.7 MB / 0.5022 GB, free: 60.13 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: