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.001068/0.001068, allocations: 107.1 kB / 16.62 MB, free: 6.809 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.001203/0.001203, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.318/1.318, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001249/0.00125, allocations: 47.92 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08217/0.08343, allocations: 46.62 MB / 326.1 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01314/0.0966, allocations: 13.25 MB / 339.4 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0217/0.1183, allocations: 19.08 MB / 358.5 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002487/0.1209, allocations: 67.44 kB / 358.5 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.1243, allocations: 0.9505 MB / 359.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007849/0.1322, allocations: 1.926 MB / 361.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005316/0.1375, allocations: 1.192 MB / 362.6 MB, free: 188 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.148, allocations: 6.277 MB / 368.9 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009724/0.149, allocations: 436.4 kB / 369.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001554/0.1505, allocations: 0.9407 MB / 370.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.1521, allocations: 1.029 MB / 371.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002597/0.1524, allocations: 72 kB / 371.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00386/0.1563, allocations: 1.148 MB / 372.5 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004161/0.1567, allocations: 309.7 kB / 372.8 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.1583, allocations: 1.32 MB / 374.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00595/0.1642, allocations: 3.611 MB / 377.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1643, allocations: 4 kB / 377.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1643, allocations: 4 kB / 377.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.333e-05/0.1644, allocations: 0 / 377.7 MB, free: 0.9648 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.1578/0.3222, allocations: 3.53 MB / 381.3 MB, free: 53.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.3222, allocations: 9.594 kB / 381.3 MB, free: 53.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007093/0.3229, allocations: 378 kB / 381.6 MB, free: 53.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003946/0.3269, allocations: 2.531 MB / 384.2 MB, free: 52.49 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.327, allocations: 36.23 kB / 384.2 MB, free: 52.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.3271, allocations: 55.11 kB / 384.3 MB, free: 52.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.3284, allocations: 0.7039 MB / 385 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3284, allocations: 3.25 kB / 385 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.529e-05/0.3285, allocations: 20.98 kB / 385 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.3285, allocations: 19.86 kB / 385 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.33, allocations: 0.7911 MB / 385.8 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004887/0.3349, allocations: 2.896 MB / 388.7 MB, free: 50.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.336, allocations: 0.6944 MB / 389.4 MB, free: 50.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008497/0.3369, allocations: 0.652 MB / 390 MB, free: 49.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02203/0.3589, allocations: 30.17 MB / 420.2 MB, free: 20.33 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006419/0.3596, allocations: 369.1 kB / 420.6 MB, free: 19.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.3596, allocations: 0 / 420.6 MB, free: 19.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002967/0.3626, allocations: 1.396 MB / 422 MB, free: 18.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.3626, allocations: 63.39 kB / 422 MB, free: 18.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002577/0.3652, allocations: 2.816 MB / 424.8 MB, free: 15.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.3653, allocations: 33.7 kB / 424.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000742/0.366, allocations: 1.398 MB / 426.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.747e-05/0.3661, allocations: 165.7 kB / 426.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.3664, allocations: 218.2 kB / 426.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.45e-05/0.3664, allocations: 345.9 kB / 427 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000457/0.3669, allocations: 237.8 kB / 427.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.3675, allocations: 0.5877 MB / 427.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.3685, allocations: 0.8817 MB / 428.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.3686, allocations: 4 kB / 428.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00183/0.3704, allocations: 1.287 MB / 430 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3704, allocations: 8 kB / 430 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.433e-05/0.3705, allocations: 80 kB / 430.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004585/0.371, allocations: 273 kB / 430.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/0.3715, allocations: 175.6 kB / 430.5 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007115/0.3722, allocations: 0.8763 MB / 431.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.3733, allocations: 123 kB / 431.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-05/0.3734, allocations: 60 kB / 431.6 MB, free: 8.551 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 (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.0005551/0.3739, allocations: 417.5 kB / 432 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002632/0.3742, allocations: 368.5 kB / 432.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002478/0.3767, allocations: 1.275 MB / 433.6 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3767, allocations: 8 kB / 433.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3767, allocations: 0 / 433.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3767, allocations: 7.984 kB / 433.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.3795, allocations: 2.199 MB / 435.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.63e-05/0.3796, allocations: 79.92 kB / 435.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.3799, allocations: 55.33 kB / 435.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.3803, allocations: 271.4 kB / 436.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.082e-05/0.3804, allocations: 36 kB / 436.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006454/0.381, allocations: 0.8645 MB / 437.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.381, allocations: 4.031 kB / 437.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.3826, allocations: 1.137 MB / 438.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005888/0.3832, allocations: 460.5 kB / 438.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.3834, allocations: 12 kB / 438.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006106/0.3841, allocations: 35.95 kB / 438.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.3842, allocations: 63.89 kB / 438.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.558e-05/0.3843, allocations: 43.92 kB / 438.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.3865, allocations: 1.832 MB / 440.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3865, allocations: 0 / 440.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001417/0.3879, allocations: 0.5738 MB / 441.3 MB, free: 14.68 MB / 334.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.001199/0.3891, allocations: 0.7827 MB / 442 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.3909, allocations: 0.8553 MB / 442.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.391, allocations: 0 / 442.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008617/0.3918, allocations: 0.5004 MB / 443.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.3935, allocations: 0.5033 MB / 443.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.3991, allocations: 4.732 MB / 448.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009856/0.4001, allocations: 1.612 MB / 450.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001238/0.4014, allocations: 390.5 kB / 450.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.4016, allocations: 163.4 kB / 450.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4016, allocations: 0 / 450.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of Templates: time 0.05437/0.456, allocations: 33.19 MB / 484 MB, free: 3.828 MB / 366.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)