Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001158/0.001158, allocations: 108 kB / 15.61 MB, free: 152 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.00114/0.00114, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.329/1.329, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001144/0.001144, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2013, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01251/0.2138, allocations: 13.36 MB / 338.7 MB, free: 6.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02245/0.2363, allocations: 19.33 MB / 358 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002664/0.239, allocations: 63.5 kB / 358.1 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003036/0.2422, allocations: 1.09 MB / 359.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00726/0.2494, allocations: 2.239 MB / 361.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004253/0.2537, allocations: 1.373 MB / 362.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00986/0.2636, allocations: 6.2 MB / 369 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009344/0.2646, allocations: 428.4 kB / 369.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.2661, allocations: 0.933 MB / 370.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.2674, allocations: 1.021 MB / 371.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.2677, allocations: 72 kB / 371.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003844/0.2715, allocations: 1.156 MB / 372.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003813/0.2719, allocations: 313.7 kB / 372.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.2733, allocations: 1.312 MB / 374.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005818/0.2791, allocations: 3.635 MB / 377.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.2792, allocations: 0 / 377.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2792, allocations: 0 / 377.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.2793, allocations: 0 / 377.8 MB, free: 15.19 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005595/0.2849, allocations: 3.537 MB / 381.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.285, allocations: 8.031 kB / 381.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.2854, allocations: 375.4 kB / 381.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003695/0.2892, allocations: 2.536 MB / 384.3 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.2892, allocations: 36.94 kB / 384.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.2893, allocations: 51.98 kB / 384.3 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.2907, allocations: 0.6992 MB / 385 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.2907, allocations: 0 / 385 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.089e-05/0.2908, allocations: 20 kB / 385.1 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.2908, allocations: 19.98 kB / 385.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.2923, allocations: 0.789 MB / 385.9 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004866/0.2972, allocations: 2.908 MB / 388.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.2985, allocations: 0.6938 MB / 389.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001/0.2995, allocations: 0.651 MB / 390.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02789/0.3274, allocations: 30.16 MB / 420.3 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007472/0.3282, allocations: 365.7 kB / 420.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.554e-06/0.3282, allocations: 0 / 420.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003117/0.3314, allocations: 1.399 MB / 422 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.3314, allocations: 67.33 kB / 422.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/0.3346, allocations: 2.816 MB / 424.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.3346, allocations: 33.69 kB / 424.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3357, allocations: 1.399 MB / 426.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.3359, allocations: 161.7 kB / 426.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.3361, allocations: 226.1 kB / 426.7 MB, free: 9.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3363, allocations: 338 kB / 427.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005787/0.3369, allocations: 233.9 kB / 427.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.3376, allocations: 0.5969 MB / 427.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.3391, allocations: 0.8802 MB / 428.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.3391, allocations: 4 kB / 428.8 MB, free: 7.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002253/0.3413, allocations: 1.279 MB / 430 MB, free: 6.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.3414, allocations: 8 kB / 430.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/0.3415, allocations: 87.98 kB / 430.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005522/0.3421, allocations: 277.1 kB / 430.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/0.3427, allocations: 171.7 kB / 430.6 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009064/0.3436, allocations: 0.8802 MB / 431.5 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009298/0.3445, allocations: 107.1 kB / 431.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.3446, allocations: 64 kB / 431.6 MB, free: 4.516 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.0007253/0.3454, allocations: 425.5 kB / 432 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/0.3457, allocations: 367.5 kB / 432.4 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003159/0.3489, allocations: 1.279 MB / 433.7 MB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3489, allocations: 7.984 kB / 433.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.3489, allocations: 4 kB / 433.7 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.349, allocations: 0 / 433.7 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003587/0.3526, allocations: 2.201 MB / 435.9 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.514e-05/0.3527, allocations: 75.94 kB / 436 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.353, allocations: 67.92 kB / 436 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000454/0.3535, allocations: 260.8 kB / 436.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.3535, allocations: 39.92 kB / 436.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008806/0.3544, allocations: 0.8607 MB / 437.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3544, allocations: 8 kB / 437.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.3563, allocations: 1.129 MB / 438.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007176/0.3571, allocations: 476.3 kB / 438.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/0.3574, allocations: 16 kB / 438.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.358, allocations: 23.97 kB / 438.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.3582, allocations: 63.94 kB / 438.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.9e-05/0.3583, allocations: 40 kB / 438.9 MB, free: 13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002467/0.3607, allocations: 1.832 MB / 440.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3607, allocations: 0 / 440.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001364/0.3621, allocations: 0.5662 MB / 441.3 MB, free: 10.6 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.001088/0.3632, allocations: 0.7806 MB / 442.1 MB, free: 9.816 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.3651, allocations: 0.8656 MB / 443 MB, free: 8.926 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3651, allocations: 0 / 443 MB, free: 8.926 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009133/0.366, allocations: 496.4 kB / 443.5 MB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.3679, allocations: 0.5019 MB / 444 MB, free: 7.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005305/0.3732, allocations: 4.003 MB / 448 MB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.3743, allocations: 1.612 MB / 449.6 MB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.3756, allocations: 387.1 kB / 450 MB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.3758, allocations: 167.4 kB / 450.1 MB, free: 1.668 MB / 382.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3758, allocations: 0 / 450.1 MB, free: 1.668 MB / 382.1 MB Notification: Performance of Templates: time 0.1912/0.567, allocations: 33.38 MB / 483.5 MB, free: 92.69 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)