Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.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.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.00108/0.00108, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.604/1.604, allocations: 205.4 MB / 223.4 MB, free: 5.285 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.0004727/0.0004727, allocations: 8 kB / 280.1 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2334, allocations: 47.6 MB / 327.7 MB, free: 1.559 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0105/0.244, allocations: 11.81 MB / 339.5 MB, free: 7.746 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02071/0.2647, allocations: 17.57 MB / 357.1 MB, free: 6.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.2666, allocations: 63.5 kB / 357.2 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.2689, allocations: 0.836 MB / 358 MB, free: 5.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005922/0.2748, allocations: 1.789 MB / 359.8 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00346/0.2783, allocations: 1.057 MB / 360.9 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009846/0.2882, allocations: 5.829 MB / 366.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009249/0.2891, allocations: 391.2 kB / 367.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.2905, allocations: 0.8163 MB / 367.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009828/0.2915, allocations: 0.9397 MB / 368.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.2916, allocations: 40 kB / 368.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003744/0.2954, allocations: 1.074 MB / 369.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002706/0.2957, allocations: 258 kB / 370.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000641/0.2963, allocations: 0.6015 MB / 370.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002626/0.2989, allocations: 2.625 MB / 373.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.299, allocations: 0 / 373.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.299, allocations: 3.938 kB / 373.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.365e-05/0.299, allocations: 0 / 373.4 MB, free: 5.723 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.004215/0.3032, allocations: 3.119 MB / 376.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3033, allocations: 16.02 kB / 376.6 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003533/0.3036, allocations: 371.5 kB / 376.9 MB, free: 2.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/0.3069, allocations: 2.38 MB / 379.3 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.307, allocations: 33 kB / 379.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.3071, allocations: 47.91 kB / 379.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.3084, allocations: 0.7226 MB / 380.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.3084, allocations: 0 / 380.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.658e-05/0.3085, allocations: 19.98 kB / 380.1 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.539e-05/0.3085, allocations: 23.98 kB / 380.1 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.31, allocations: 0.8281 MB / 381 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004365/0.3144, allocations: 2.916 MB / 383.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.3156, allocations: 0.7366 MB / 384.6 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.3167, allocations: 0.6783 MB / 385.3 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02828/0.345, allocations: 30.17 MB / 415.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007577/0.3458, allocations: 385.6 kB / 415.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.304e-06/0.3458, allocations: 0 / 415.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003305/0.3491, allocations: 1.493 MB / 417.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.3492, allocations: 59.41 kB / 417.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003333/0.3525, allocations: 2.789 MB / 420.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.837e-05/0.3526, allocations: 33.7 kB / 420.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.3539, allocations: 1.391 MB / 421.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.3541, allocations: 169.7 kB / 421.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.3541, allocations: 12 kB / 421.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3543, allocations: 341.9 kB / 422.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005714/0.3549, allocations: 257.9 kB / 422.4 MB, free: 320 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008243/0.3557, allocations: 0.6125 MB / 423 MB, free: 15.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/0.3564, allocations: 336.2 kB / 423.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3564, allocations: 4 kB / 423.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002178/0.3586, allocations: 1.323 MB / 424.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.3586, allocations: 8 kB / 424.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/0.3587, allocations: 80 kB / 424.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005528/0.3593, allocations: 280.8 kB / 425 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005571/0.3599, allocations: 175.7 kB / 425.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000924/0.3608, allocations: 0.888 MB / 426.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008826/0.3617, allocations: 119.1 kB / 426.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.3618, allocations: 64 kB / 426.2 MB, free: 12.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0007057/0.3625, allocations: 425.5 kB / 426.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003242/0.3628, allocations: 371.5 kB / 427 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.3659, allocations: 1.318 MB / 428.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3659, allocations: 4 kB / 428.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3659, allocations: 0 / 428.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.3659, allocations: 7.984 kB / 428.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.3693, allocations: 2.236 MB / 430.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001036/0.3694, allocations: 72 kB / 430.7 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.3697, allocations: 71.88 kB / 430.7 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000456/0.3702, allocations: 268.8 kB / 431 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.3702, allocations: 28 kB / 431 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008822/0.3711, allocations: 0.8646 MB / 431.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3711, allocations: 4.031 kB / 431.9 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.373, allocations: 1.164 MB / 433 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006665/0.3736, allocations: 468.4 kB / 433.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.3739, allocations: 12 kB / 433.5 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005917/0.3745, allocations: 39.95 kB / 433.6 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.3747, allocations: 63.94 kB / 433.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.161e-05/0.3747, allocations: 40 kB / 433.7 MB, free: 4.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00241/0.3772, allocations: 1.801 MB / 435.5 MB, free: 2.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3772, allocations: 0 / 435.5 MB, free: 2.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00137/0.3785, allocations: 0.5739 MB / 436 MB, free: 2.238 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001099/0.3796, allocations: 0.7533 MB / 436.8 MB, free: 1.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.3814, allocations: 0.8813 MB / 437.7 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3814, allocations: 0 / 437.7 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008979/0.3824, allocations: 0.5086 MB / 438.2 MB, free: 40 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.384, allocations: 497.6 kB / 438.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005909/0.3899, allocations: 4.451 MB / 443.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.391, allocations: 1.612 MB / 444.7 MB, free: 9.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001267/0.3923, allocations: 391.1 kB / 445.1 MB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.3925, allocations: 163.4 kB / 445.3 MB, free: 8.859 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3925, allocations: 3.938 kB / 445.3 MB, free: 8.855 MB / 382.1 MB Notification: Performance of Templates: time 0.211/0.6035, allocations: 31.25 MB / 476.5 MB, free: 102 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)