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.007512/0.007512, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001777/0.001777, allocations: 191.8 kB / 16.67 MB, free: 5.52 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.429/1.429, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001205/0.001205, allocations: 55.92 kB / 326.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08332, allocations: 46.61 MB / 373.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1682/0.2515, allocations: 13.35 MB / 386.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01996/0.2715, allocations: 19.33 MB / 405.8 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002368/0.2739, allocations: 125.9 kB / 406 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003138/0.2771, allocations: 1.097 MB / 407 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008296/0.2854, allocations: 2.262 MB / 409.3 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005556/0.291, allocations: 1.373 MB / 410.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3022, allocations: 6.216 MB / 416.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009756/0.3033, allocations: 428 kB / 417.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002041/0.3053, allocations: 0.9695 MB / 418.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.3065, allocations: 1.039 MB / 419.3 MB, free: 400 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.3067, allocations: 68.91 kB / 419.4 MB, free: 400 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004446/0.3111, allocations: 1.151 MB / 420.5 MB, free: 64 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003219/0.3114, allocations: 306.8 kB / 420.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.3128, allocations: 1.313 MB / 422.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004843/0.3176, allocations: 3.658 MB / 425.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3177, allocations: 4 kB / 425.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3177, allocations: 0 / 425.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.63e-05/0.3177, allocations: 0 / 425.8 MB, free: 10.79 MB / 350.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.004479/0.3222, allocations: 3.518 MB / 429.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.3222, allocations: 12.03 kB / 429.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003707/0.3226, allocations: 375.4 kB / 429.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003151/0.3258, allocations: 2.517 MB / 432.2 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.3258, allocations: 40.92 kB / 432.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.326, allocations: 51.89 kB / 432.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.3272, allocations: 0.707 MB / 433 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3272, allocations: 0 / 433 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/0.3273, allocations: 16 kB / 433 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.3273, allocations: 19.98 kB / 433.1 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.3288, allocations: 0.789 MB / 433.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.3332, allocations: 2.899 MB / 436.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.3344, allocations: 0.6975 MB / 437.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009424/0.3353, allocations: 0.6548 MB / 438.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02686/0.3622, allocations: 30.15 MB / 468.3 MB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007426/0.363, allocations: 369.2 kB / 468.6 MB, free: 11.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.363, allocations: 0 / 468.6 MB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003105/0.3661, allocations: 1.392 MB / 470 MB, free: 10.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.3662, allocations: 63.33 kB / 470.1 MB, free: 10.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00383/0.37, allocations: 2.812 MB / 472.9 MB, free: 7.285 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.804e-05/0.3701, allocations: 37.7 kB / 472.9 MB, free: 7.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.3712, allocations: 1.391 MB / 474.3 MB, free: 5.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.3713, allocations: 177.7 kB / 474.5 MB, free: 5.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002818/0.3716, allocations: 222.1 kB / 474.7 MB, free: 5.445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3717, allocations: 334 kB / 475 MB, free: 5.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/0.3723, allocations: 241.8 kB / 475.3 MB, free: 4.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008399/0.3731, allocations: 0.5929 MB / 475.9 MB, free: 4.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.3745, allocations: 0.8811 MB / 476.7 MB, free: 3.062 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3746, allocations: 4 kB / 476.7 MB, free: 3.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002324/0.3769, allocations: 1.283 MB / 478 MB, free: 1.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.3769, allocations: 11.98 kB / 478 MB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/0.377, allocations: 80 kB / 478.1 MB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006558/0.3777, allocations: 277.1 kB / 478.4 MB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006281/0.3783, allocations: 171.6 kB / 478.5 MB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.3795, allocations: 0.8764 MB / 479.4 MB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.3807, allocations: 113.5 kB / 479.5 MB, free: 220 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.3809, allocations: 64 kB / 479.6 MB, free: 156 kB / 398.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.0007091/0.3816, allocations: 421.5 kB / 480 MB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/0.3821, allocations: 371.5 kB / 480.4 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.3849, allocations: 1.282 MB / 481.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.385, allocations: 4 kB / 481.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.385, allocations: 0 / 481.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.385, allocations: 3.984 kB / 481.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003608/0.3886, allocations: 2.205 MB / 483.9 MB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-05/0.3887, allocations: 75.92 kB / 483.9 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.389, allocations: 55.95 kB / 484 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005125/0.3896, allocations: 276.8 kB / 484.3 MB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.3896, allocations: 28 kB / 484.3 MB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009154/0.3906, allocations: 0.8684 MB / 485.2 MB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3906, allocations: 4.062 kB / 485.2 MB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.3925, allocations: 1.133 MB / 486.3 MB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007458/0.3932, allocations: 468.4 kB / 486.8 MB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003545/0.3936, allocations: 12 kB / 486.8 MB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/0.3943, allocations: 39.89 kB / 486.8 MB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.3944, allocations: 55.95 kB / 486.9 MB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.389e-05/0.3945, allocations: 40 kB / 486.9 MB, free: 8.648 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002489/0.397, allocations: 1.832 MB / 488.7 MB, free: 6.812 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.397, allocations: 0 / 488.7 MB, free: 6.812 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001537/0.3986, allocations: 0.5739 MB / 489.3 MB, free: 6.238 MB / 414.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.001239/0.3998, allocations: 0.7853 MB / 490.1 MB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.4016, allocations: 0.8423 MB / 490.9 MB, free: 4.582 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4016, allocations: 4.125 kB / 490.9 MB, free: 4.578 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009056/0.4025, allocations: 0.4962 MB / 491.4 MB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001711/0.4042, allocations: 0.5109 MB / 491.9 MB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005442/0.4097, allocations: 3.925 MB / 495.9 MB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.4108, allocations: 1.612 MB / 497.5 MB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009741/0.4118, allocations: 387.1 kB / 497.9 MB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.412, allocations: 163.4 kB / 498 MB, free: 13.39 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.412, allocations: 8 kB / 498 MB, free: 13.38 MB / 430.1 MB Notification: Performance of Templates: time 0.05948/0.4715, allocations: 33.5 MB / 0.5191 GB, free: 11.82 MB / 462.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)