Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001063/0.00107, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001002/0.001002, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.544/1.544, allocations: 205.4 MB / 223.3 MB, free: 13.18 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.0007929/0.0007931, allocations: 12 kB / 280.1 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1023, allocations: 47.59 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01032/0.1126, allocations: 10.87 MB / 338.6 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02051/0.1332, allocations: 16.68 MB / 355.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001942/0.1352, allocations: 63.44 kB / 355.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002362/0.1375, allocations: 0.8707 MB / 356.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005568/0.1431, allocations: 2.045 MB / 358.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003335/0.1465, allocations: 1.157 MB / 359.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009259/0.1558, allocations: 6.068 MB / 365.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.1564, allocations: 399.3 kB / 365.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.1574, allocations: 0.8085 MB / 366.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009782/0.1584, allocations: 0.9747 MB / 367.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.1586, allocations: 40 kB / 367.7 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003374/0.1619, allocations: 1.214 MB / 368.9 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002546/0.1622, allocations: 266 kB / 369.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005243/0.1627, allocations: 0.6015 MB / 369.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002394/0.1651, allocations: 2.559 MB / 372.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1652, allocations: 0 / 372.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1652, allocations: 4 kB / 372.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.711e-05/0.1652, allocations: 0 / 372.3 MB, free: 7.34 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.004811/0.17, allocations: 3.174 MB / 375.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.1701, allocations: 12.03 kB / 375.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004079/0.1705, allocations: 379.4 kB / 375.9 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003648/0.1742, allocations: 2.388 MB / 378.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.1742, allocations: 37 kB / 378.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.1743, allocations: 48 kB / 378.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.1757, allocations: 0.785 MB / 379.1 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.1758, allocations: 4 kB / 379.1 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.42e-05/0.1758, allocations: 16 kB / 379.1 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.1759, allocations: 23.98 kB / 379.2 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1821/0.358, allocations: 0.9086 MB / 380.1 MB, free: 36.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008078/0.3661, allocations: 2.997 MB / 383.1 MB, free: 36.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.3687, allocations: 0.8431 MB / 383.9 MB, free: 36.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02927/0.398, allocations: 30.33 MB / 414.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.399, allocations: 0.6273 MB / 414.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.246e-06/0.399, allocations: 0 / 414.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01078/0.4098, allocations: 6.018 MB / 420.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/0.4099, allocations: 68.83 kB / 421 MB, free: 10.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.4124, allocations: 2.676 MB / 423.6 MB, free: 8.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-05/0.4125, allocations: 46.77 kB / 423.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007536/0.4132, allocations: 1.297 MB / 425 MB, free: 7.336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/0.4134, allocations: 333.5 kB / 425.3 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.4135, allocations: 20 kB / 425.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.4136, allocations: 345.9 kB / 425.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.4147, allocations: 0.5293 MB / 426.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.4159, allocations: 0.6974 MB / 426.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.417, allocations: 0.5789 MB / 427.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.417, allocations: 0 / 427.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003433/0.4205, allocations: 2.091 MB / 429.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.4205, allocations: 11.19 kB / 429.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001244/0.4207, allocations: 120.5 kB / 429.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005673/0.4212, allocations: 274 kB / 429.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008188/0.4221, allocations: 229.2 kB / 430.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008619/0.4307, allocations: 13.32 MB / 443.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.4322, allocations: 120 kB / 443.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.4323, allocations: 60 kB / 443.7 MB, free: 3.293 MB / 334.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.0008667/0.4332, allocations: 432.1 kB / 444.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000399/0.4336, allocations: 367.6 kB / 444.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005232/0.4388, allocations: 2.372 MB / 446.8 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.4389, allocations: 8 kB / 446.8 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.4389, allocations: 8 kB / 446.8 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4389, allocations: 3.984 kB / 446.8 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.441, allocations: 1.555 MB / 448.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001415/0.4412, allocations: 116 kB / 448.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007539/0.4419, allocations: 163.4 kB / 448.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006213/0.4426, allocations: 259.9 kB / 448.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.104e-05/0.4427, allocations: 43.98 kB / 449 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009182/0.4519, allocations: 13.32 MB / 462.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4519, allocations: 4.125 kB / 462.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005739/0.4577, allocations: 2.732 MB / 465 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.4588, allocations: 488.4 kB / 465.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.4591, allocations: 23.95 kB / 465.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009715/0.4601, allocations: 115.9 kB / 465.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/0.4604, allocations: 136.8 kB / 465.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.4605, allocations: 63.06 kB / 465.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002386/0.4629, allocations: 1.751 MB / 467.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4629, allocations: 0 / 467.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001578/0.4645, allocations: 0.6588 MB / 468.2 MB, free: 9.289 MB / 366.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.001144/0.4657, allocations: 0.7724 MB / 469 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004346/0.47, allocations: 2.63 MB / 471.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.47, allocations: 0 / 471.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002567/0.4726, allocations: 2.022 MB / 473.7 MB, free: 3.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.4741, allocations: 497.2 kB / 474.2 MB, free: 3.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006858/0.481, allocations: 5.335 MB / 479.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/0.4822, allocations: 1.724 MB / 481.2 MB, free: 12.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001437/0.4836, allocations: 391.4 kB / 481.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.4839, allocations: 167.4 kB / 481.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4839, allocations: 0 / 481.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of Templates: time 0.05623/0.5402, allocations: 33.72 MB / 0.5034 GB, free: 9.996 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) Environment - environmentSimulation: