Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0009555/0.0009555, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.00696/0.00696, allocations: 171 kB / 16.26 MB, free: 6.613 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.384/1.384, allocations: 205.4 MB / 222.4 MB, free: 5.785 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.0004431/0.0004431, allocations: 8 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.252, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01576/0.2678, allocations: 12.71 MB / 339.7 MB, free: 6.648 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.03039/0.2983, allocations: 19.2 MB / 358.9 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002885/0.3012, allocations: 63.5 kB / 359 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004005/0.3052, allocations: 0.9642 MB / 360 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009458/0.3147, allocations: 1.88 MB / 361.8 MB, free: 464 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005512/0.3203, allocations: 1.149 MB / 363 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.3335, allocations: 6.113 MB / 369.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.3346, allocations: 404.8 kB / 369.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00189/0.3365, allocations: 0.8938 MB / 370.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.3378, allocations: 0.9973 MB / 371.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.3379, allocations: 40 kB / 371.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004444/0.3424, allocations: 1.128 MB / 372.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000288/0.3427, allocations: 277.7 kB / 372.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.3441, allocations: 1.302 MB / 374.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004435/0.3485, allocations: 3.509 MB / 377.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3485, allocations: 0 / 377.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3486, allocations: 4 kB / 377.6 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.403e-05/0.3486, allocations: 0 / 377.6 MB, free: 0.5508 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.004166/0.3528, allocations: 3.084 MB / 380.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3528, allocations: 8.031 kB / 380.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.3532, allocations: 375.5 kB / 381.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003324/0.3565, allocations: 2.544 MB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.3565, allocations: 36.94 kB / 383.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.3567, allocations: 51.91 kB / 383.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.358, allocations: 0.7226 MB / 384.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.358, allocations: 3.984 kB / 384.5 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.887e-05/0.3581, allocations: 20 kB / 384.5 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.3581, allocations: 19.98 kB / 384.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.3597, allocations: 0.832 MB / 385.3 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.3646, allocations: 2.932 MB / 388.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.3659, allocations: 0.7367 MB / 389 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/0.3669, allocations: 0.6666 MB / 389.7 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/0.3942, allocations: 30.18 MB / 419.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007931/0.395, allocations: 381.7 kB / 420.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.045e-06/0.395, allocations: 0 / 420.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00349/0.3985, allocations: 1.466 MB / 421.7 MB, free: 104 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.3986, allocations: 63.33 kB / 421.7 MB, free: 28 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003412/0.402, allocations: 2.812 MB / 424.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.67e-05/0.4021, allocations: 37.7 kB / 424.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0012/0.4033, allocations: 1.391 MB / 426 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.4035, allocations: 169.7 kB / 426.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.674e-05/0.4036, allocations: 73.69 kB / 426.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4037, allocations: 333.9 kB / 426.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005947/0.4043, allocations: 261.9 kB / 426.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008003/0.4051, allocations: 0.6086 MB / 427.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.4065, allocations: 0.9232 MB / 428.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.4066, allocations: 7.938 kB / 428.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002347/0.4089, allocations: 1.319 MB / 429.7 MB, free: 7.711 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.409, allocations: 8.188 kB / 429.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.4091, allocations: 88 kB / 429.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005534/0.4096, allocations: 280.7 kB / 430 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005748/0.4102, allocations: 179.7 kB / 430.2 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008819/0.4111, allocations: 0.888 MB / 431.1 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009162/0.412, allocations: 123 kB / 431.2 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.439e-05/0.4121, allocations: 64 kB / 431.3 MB, free: 6.066 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 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006782/0.4128, allocations: 421.5 kB / 431.7 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00031/0.4131, allocations: 371.5 kB / 432.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003048/0.4162, allocations: 1.306 MB / 433.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4162, allocations: 4 kB / 433.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.4162, allocations: 3.984 kB / 433.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.4162, allocations: 0 / 433.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.4196, allocations: 2.244 MB / 435.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.213e-05/0.4197, allocations: 71.94 kB / 435.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.42, allocations: 80 kB / 435.8 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004538/0.4205, allocations: 260.8 kB / 436 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.217e-05/0.4205, allocations: 32 kB / 436 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008371/0.4214, allocations: 0.8646 MB / 436.9 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/0.4214, allocations: 16.02 kB / 436.9 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.4232, allocations: 1.172 MB / 438.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006636/0.4239, allocations: 472.3 kB / 438.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.4242, allocations: 12 kB / 438.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006504/0.4248, allocations: 47.95 kB / 438.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.425, allocations: 51.95 kB / 438.7 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.207e-05/0.4251, allocations: 43.98 kB / 438.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002473/0.4276, allocations: 1.84 MB / 440.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4276, allocations: 0 / 440.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001298/0.4289, allocations: 0.5622 MB / 441.1 MB, free: 12.02 MB / 382.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/0.43, allocations: 0.7811 MB / 441.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.4319, allocations: 0.8891 MB / 442.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.432, allocations: 0 / 442.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009326/0.4329, allocations: 0.5124 MB / 443.3 MB, free: 9.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.435, allocations: 485.6 kB / 443.8 MB, free: 9.305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005751/0.4408, allocations: 4.782 MB / 448.5 MB, free: 4.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.4419, allocations: 1.609 MB / 450.2 MB, free: 2.836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.4431, allocations: 395 kB / 450.5 MB, free: 2.445 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.4434, allocations: 163.4 kB / 450.7 MB, free: 2.285 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4434, allocations: 0 / 450.7 MB, free: 2.285 MB / 382.1 MB Notification: Performance of Templates: time 0.2208/0.6642, allocations: 32.16 MB / 482.9 MB, free: 94.34 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)