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.001602/0.001602, allocations: 95.64 kB / 16.3 MB, free: 6.457 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.00202/0.00202, allocations: 185.1 kB / 17.2 MB, free: 6.34 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.551/1.551, allocations: 205.4 MB / 223.3 MB, free: 13.17 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.0005446/0.0005448, allocations: 19.44 kB / 280.1 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09693, allocations: 47.57 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01044/0.1074, allocations: 10.74 MB / 338.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02135/0.1288, allocations: 16.64 MB / 355.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00146/0.1303, allocations: 59.5 kB / 355.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002272/0.1326, allocations: 0.863 MB / 356 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00631/0.1389, allocations: 2.045 MB / 358 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003976/0.1429, allocations: 1.13 MB / 359.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009312/0.1523, allocations: 6.025 MB / 365.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006826/0.153, allocations: 411 kB / 365.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.1541, allocations: 0.7773 MB / 366.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.1551, allocations: 0.9436 MB / 367.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.1553, allocations: 40 kB / 367.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003828/0.1591, allocations: 1.206 MB / 368.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003461/0.1595, allocations: 270 kB / 368.8 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006786/0.1602, allocations: 0.5936 MB / 369.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002734/0.1629, allocations: 2.524 MB / 371.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1629, allocations: 0 / 371.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1629, allocations: 0 / 371.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.818e-05/0.163, allocations: 0 / 371.9 MB, free: 7.699 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.005787/0.1688, allocations: 3.108 MB / 375 MB, free: 4.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/0.1689, allocations: 12.03 kB / 375.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005311/0.1695, allocations: 371.5 kB / 375.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/0.1737, allocations: 2.372 MB / 377.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.1738, allocations: 33 kB / 377.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.1739, allocations: 51.91 kB / 377.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1752, allocations: 0.7225 MB / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1752, allocations: 0 / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-05/0.1753, allocations: 16 kB / 378.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.1753, allocations: 23.98 kB / 378.6 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.1768, allocations: 0.8241 MB / 379.5 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1705/0.3473, allocations: 2.889 MB / 382.3 MB, free: 52.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.3486, allocations: 0.7326 MB / 383.1 MB, free: 51.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02438/0.373, allocations: 30.32 MB / 413.4 MB, free: 25.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006513/0.3737, allocations: 386.7 kB / 413.8 MB, free: 25.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.3737, allocations: 0 / 413.8 MB, free: 25.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.00269/0.3764, allocations: 1.439 MB / 415.2 MB, free: 24.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.3764, allocations: 63.59 kB / 415.3 MB, free: 24.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.3789, allocations: 2.781 MB / 418.1 MB, free: 22.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.3789, allocations: 34.77 kB / 418.1 MB, free: 22.22 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007776/0.3797, allocations: 1.383 MB / 419.5 MB, free: 20.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3798, allocations: 177.8 kB / 419.6 MB, free: 20.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.3799, allocations: 23.94 kB / 419.7 MB, free: 20.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.152e-05/0.38, allocations: 337.9 kB / 420 MB, free: 20.31 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004893/0.3805, allocations: 253.3 kB / 420.2 MB, free: 20.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.3811, allocations: 0.6075 MB / 420.9 MB, free: 19.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.3816, allocations: 342 kB / 421.2 MB, free: 18.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3816, allocations: 4 kB / 421.2 MB, free: 18.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001775/0.3834, allocations: 1.311 MB / 422.5 MB, free: 17.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.3834, allocations: 12 kB / 422.5 MB, free: 17.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.043e-05/0.3835, allocations: 83.98 kB / 422.6 MB, free: 17.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004421/0.384, allocations: 277.4 kB / 422.9 MB, free: 17.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005366/0.3845, allocations: 187.6 kB / 423.1 MB, free: 17.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006814/0.3852, allocations: 0.8686 MB / 423.9 MB, free: 16.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009517/0.3862, allocations: 127 kB / 424 MB, free: 16.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-05/0.3863, allocations: 64 kB / 424.1 MB, free: 16.04 MB / 318.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.0005989/0.3869, allocations: 429.4 kB / 424.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.3871, allocations: 363.6 kB / 424.9 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002707/0.3898, allocations: 1.341 MB / 426.2 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.3899, allocations: 8 kB / 426.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3899, allocations: 0.875 kB / 426.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3899, allocations: 0 / 426.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/0.3933, allocations: 2.228 MB / 428.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.259e-05/0.3934, allocations: 68 kB / 428.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/0.3937, allocations: 67.94 kB / 428.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003789/0.394, allocations: 267.6 kB / 428.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/0.3941, allocations: 35.06 kB / 428.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006227/0.3947, allocations: 0.8607 MB / 429.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3947, allocations: 0 / 429.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3963, allocations: 1.288 MB / 431 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006545/0.397, allocations: 456.4 kB / 431.5 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002705/0.3972, allocations: 12 kB / 431.5 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.3979, allocations: 47.89 kB / 431.5 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.398, allocations: 71.83 kB / 431.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.185e-05/0.3981, allocations: 36 kB / 431.6 MB, free: 8.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001868/0.4, allocations: 1.801 MB / 433.4 MB, free: 6.488 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4, allocations: 4 kB / 433.4 MB, free: 6.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001281/0.4012, allocations: 0.5661 MB / 434 MB, free: 5.941 MB / 318.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.0009376/0.4022, allocations: 0.7416 MB / 434.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4037, allocations: 0.8821 MB / 435.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4037, allocations: 0 / 435.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007576/0.4045, allocations: 0.5074 MB / 436.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4058, allocations: 489.2 kB / 436.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004841/0.4106, allocations: 4.452 MB / 441.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.4116, allocations: 1.671 MB / 442.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001203/0.4129, allocations: 388.3 kB / 443.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/0.4131, allocations: 167.4 kB / 443.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4131, allocations: 4 kB / 443.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Templates: time 0.04995/0.463, allocations: 30.27 MB / 473.6 MB, free: 14.42 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: