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.001154/0.001154, allocations: 107.7 kB / 17.06 MB, free: 6.023 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.001117/0.001117, allocations: 191 kB / 18 MB, free: 5.105 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.334/1.334, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.00116/0.001161, allocations: 47.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08305/0.08422, allocations: 46.62 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1918/0.2761, allocations: 13.36 MB / 387.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.2967, allocations: 19.32 MB / 407.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003357/0.3001, allocations: 125.8 kB / 407.3 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004364/0.3045, allocations: 1.095 MB / 408.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.3165, allocations: 2.237 MB / 410.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005765/0.3223, allocations: 1.364 MB / 412 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.3332, allocations: 6.222 MB / 418.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007406/0.3339, allocations: 428.8 kB / 418.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.3354, allocations: 0.9507 MB / 419.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.3366, allocations: 1.03 MB / 420.6 MB, free: 428 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.3367, allocations: 70.25 kB / 420.7 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00399/0.3407, allocations: 1.155 MB / 421.8 MB, free: 88 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.3411, allocations: 306.8 kB / 422.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.3424, allocations: 1.312 MB / 423.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00463/0.347, allocations: 3.662 MB / 427.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3471, allocations: 0.6562 kB / 427.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3471, allocations: 0 / 427.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.869e-05/0.3471, allocations: 0 / 427.1 MB, free: 10.84 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.004742/0.3519, allocations: 3.522 MB / 430.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3519, allocations: 8.031 kB / 430.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.3523, allocations: 379.4 kB / 431 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00336/0.3557, allocations: 2.509 MB / 433.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.3557, allocations: 45.69 kB / 433.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.3559, allocations: 51.89 kB / 433.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.3571, allocations: 0.707 MB / 434.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3572, allocations: 0 / 434.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.061e-05/0.3572, allocations: 16 kB / 434.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.3573, allocations: 19.98 kB / 434.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.3588, allocations: 0.7851 MB / 435.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005211/0.364, allocations: 2.892 MB / 438 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.3654, allocations: 0.7053 MB / 438.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009876/0.3664, allocations: 0.6516 MB / 439.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03023/0.3966, allocations: 30.15 MB / 469.5 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007661/0.3974, allocations: 367.4 kB / 469.9 MB, free: 11.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.086e-06/0.3974, allocations: 0 / 469.9 MB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003297/0.4008, allocations: 1.396 MB / 471.3 MB, free: 10.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.4008, allocations: 63.34 kB / 471.3 MB, free: 10.17 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003257/0.4041, allocations: 2.812 MB / 474.1 MB, free: 7.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.831e-05/0.4042, allocations: 41.69 kB / 474.2 MB, free: 7.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.4052, allocations: 1.387 MB / 475.6 MB, free: 5.898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.4054, allocations: 169.7 kB / 475.7 MB, free: 5.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002727/0.4057, allocations: 226.1 kB / 476 MB, free: 5.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.4058, allocations: 338 kB / 476.3 MB, free: 5.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/0.4064, allocations: 237.9 kB / 476.5 MB, free: 4.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.4071, allocations: 0.5968 MB / 477.1 MB, free: 4.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.4085, allocations: 0.8802 MB / 478 MB, free: 3.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.4085, allocations: 4 kB / 478 MB, free: 3.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002233/0.4108, allocations: 1.28 MB / 479.3 MB, free: 1.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.4108, allocations: 12 kB / 479.3 MB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.4109, allocations: 83.98 kB / 479.4 MB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005215/0.4115, allocations: 280.7 kB / 479.7 MB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005563/0.412, allocations: 163.7 kB / 479.8 MB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009077/0.4129, allocations: 0.8803 MB / 480.7 MB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/0.4139, allocations: 107.1 kB / 480.8 MB, free: 280 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.654e-05/0.414, allocations: 68 kB / 480.9 MB, free: 212 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.000685/0.4147, allocations: 421.5 kB / 481.3 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/0.415, allocations: 367.5 kB / 481.6 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/0.4177, allocations: 1.283 MB / 482.9 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.4177, allocations: 7.984 kB / 482.9 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4177, allocations: 0 / 482.9 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4177, allocations: 4 kB / 482.9 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.4213, allocations: 2.202 MB / 485.1 MB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.543e-05/0.4214, allocations: 76.06 kB / 485.2 MB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003122/0.4218, allocations: 63.94 kB / 485.3 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004426/0.4222, allocations: 268.7 kB / 485.5 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.398e-05/0.4223, allocations: 31.98 kB / 485.6 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008421/0.4231, allocations: 0.8637 MB / 486.4 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4231, allocations: 0 / 486.4 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.425, allocations: 1.133 MB / 487.6 MB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007435/0.4257, allocations: 476.3 kB / 488 MB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.426, allocations: 8 kB / 488 MB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006363/0.4266, allocations: 31.97 kB / 488.1 MB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.4268, allocations: 67.88 kB / 488.1 MB, free: 8.746 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.16e-05/0.4269, allocations: 36 kB / 488.2 MB, free: 8.711 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002201/0.4291, allocations: 1.836 MB / 490 MB, free: 6.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4291, allocations: 0 / 490 MB, free: 6.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001379/0.4305, allocations: 0.57 MB / 490.6 MB, free: 6.301 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.001117/0.4316, allocations: 0.7805 MB / 491.4 MB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.4334, allocations: 0.8493 MB / 492.2 MB, free: 4.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.4335, allocations: 0.9375 kB / 492.2 MB, free: 4.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009077/0.4344, allocations: 0.4965 MB / 492.7 MB, free: 4.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.4361, allocations: 0.513 MB / 493.2 MB, free: 3.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005435/0.4416, allocations: 3.925 MB / 497.1 MB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.4426, allocations: 1.608 MB / 498.7 MB, free: 14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009328/0.4436, allocations: 387.1 kB / 499.1 MB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.4438, allocations: 163.4 kB / 499.3 MB, free: 13.45 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4438, allocations: 0 / 499.3 MB, free: 13.45 MB / 430.1 MB Notification: Performance of Templates: time 0.05285/0.4967, allocations: 33.51 MB / 0.5203 GB, free: 11.89 MB / 462.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)