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.006093/0.006093, allocations: 100.4 kB / 15.73 MB, free: 6.043 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.001136/0.001136, allocations: 184.9 kB / 16.67 MB, free: 5.977 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.369/1.369, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001187/0.001187, allocations: 49.84 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.09274, allocations: 46.62 MB / 373.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01202/0.1048, allocations: 13.36 MB / 386.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02227/0.1271, allocations: 19.32 MB / 405.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002145/0.1293, allocations: 130.9 kB / 406 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002935/0.1323, allocations: 1.1 MB / 407.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006752/0.1391, allocations: 2.25 MB / 409.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004212/0.1433, allocations: 1.377 MB / 410.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009308/0.1526, allocations: 6.215 MB / 416.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006625/0.1533, allocations: 440.3 kB / 417.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.1546, allocations: 0.9642 MB / 418.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009949/0.1556, allocations: 1.032 MB / 419.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.1557, allocations: 72 kB / 419.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003664/0.1594, allocations: 1.163 MB / 420.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003356/0.1598, allocations: 301.8 kB / 420.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.161, allocations: 1.304 MB / 422.2 MB, free: 188 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004488/0.1655, allocations: 3.658 MB / 425.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1655, allocations: 0 / 425.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1655, allocations: 0 / 425.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.598e-05/0.1656, allocations: 4 kB / 425.8 MB, free: 12.51 MB / 366.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.004622/0.1702, allocations: 3.525 MB / 429.4 MB, free: 8.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1703, allocations: 8.031 kB / 429.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003873/0.1707, allocations: 375.4 kB / 429.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.1741, allocations: 2.517 MB / 432.2 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/0.1742, allocations: 36.92 kB / 432.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.1743, allocations: 51.91 kB / 432.3 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.1759, allocations: 0.7031 MB / 433 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.1759, allocations: 0 / 433 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.241e-05/0.176, allocations: 16 kB / 433.1 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.176, allocations: 27.86 kB / 433.1 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.1775, allocations: 0.7929 MB / 433.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00476/0.1823, allocations: 2.888 MB / 436.8 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1836, allocations: 0.7014 MB / 437.5 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.1847, allocations: 0.6548 MB / 438.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2082/0.3929, allocations: 30.14 MB / 468.3 MB, free: 62.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007251/0.3937, allocations: 365 kB / 468.6 MB, free: 62.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.3937, allocations: 0 / 468.6 MB, free: 62.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003007/0.3967, allocations: 1.398 MB / 470 MB, free: 61.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.3967, allocations: 64.98 kB / 470.1 MB, free: 61.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003192/0.3999, allocations: 2.819 MB / 472.9 MB, free: 59.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.377e-05/0.4, allocations: 39.61 kB / 472.9 MB, free: 59.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008732/0.4009, allocations: 1.389 MB / 474.3 MB, free: 58.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.401, allocations: 163.9 kB / 474.5 MB, free: 58.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.4013, allocations: 227.5 kB / 474.7 MB, free: 58.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.4013, allocations: 333.7 kB / 475 MB, free: 58.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005383/0.4019, allocations: 243.2 kB / 475.3 MB, free: 58.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006228/0.4025, allocations: 0.5901 MB / 475.9 MB, free: 57.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.4036, allocations: 0.8795 MB / 476.7 MB, free: 56.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4036, allocations: 3.938 kB / 476.7 MB, free: 56.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001848/0.4055, allocations: 1.284 MB / 478 MB, free: 56.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.4055, allocations: 7.875 kB / 478 MB, free: 56.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.546e-05/0.4056, allocations: 86.41 kB / 478.1 MB, free: 56.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004462/0.4061, allocations: 280.4 kB / 478.4 MB, free: 56.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.4066, allocations: 165.7 kB / 478.5 MB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007467/0.4074, allocations: 0.8822 MB / 479.4 MB, free: 55.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000989/0.4084, allocations: 123 kB / 479.6 MB, free: 55.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-05/0.4085, allocations: 62.88 kB / 479.6 MB, free: 55.31 MB / 382.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.000659/0.4091, allocations: 422.7 kB / 480 MB, free: 55.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.4094, allocations: 363.2 kB / 480.4 MB, free: 54.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.4118, allocations: 1.28 MB / 481.7 MB, free: 54.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.4118, allocations: 3.812 kB / 481.7 MB, free: 54.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4118, allocations: 0 / 481.7 MB, free: 54.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.4118, allocations: 7.922 kB / 481.7 MB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.4148, allocations: 2.205 MB / 483.9 MB, free: 52.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.484e-05/0.4149, allocations: 70.89 kB / 483.9 MB, free: 52.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.4152, allocations: 61.11 kB / 484 MB, free: 52.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003755/0.4156, allocations: 262.4 kB / 484.3 MB, free: 52.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.4157, allocations: 32 kB / 484.3 MB, free: 52.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006496/0.4163, allocations: 0.866 MB / 485.2 MB, free: 51.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4163, allocations: 12.38 kB / 485.2 MB, free: 51.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.4178, allocations: 1.142 MB / 486.3 MB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/0.4183, allocations: 468.4 kB / 486.8 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.4186, allocations: 8 kB / 486.8 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006868/0.4193, allocations: 35.95 kB / 486.8 MB, free: 50.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.4194, allocations: 59.95 kB / 486.9 MB, free: 49.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.95e-05/0.4195, allocations: 36 kB / 486.9 MB, free: 49.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.4215, allocations: 1.836 MB / 488.7 MB, free: 48.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4215, allocations: 0 / 488.7 MB, free: 48.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001396/0.4229, allocations: 0.5736 MB / 489.3 MB, free: 47.52 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.0009696/0.4239, allocations: 0.7769 MB / 490.1 MB, free: 46.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.4255, allocations: 0.8556 MB / 491 MB, free: 45.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4255, allocations: 0 / 491 MB, free: 45.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007867/0.4263, allocations: 0.4905 MB / 491.4 MB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.4279, allocations: 0.5089 MB / 491.9 MB, free: 44.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004268/0.4322, allocations: 3.915 MB / 495.9 MB, free: 40.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006492/0.4329, allocations: 1.608 MB / 497.5 MB, free: 39.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000913/0.4338, allocations: 396.1 kB / 497.9 MB, free: 38.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.434, allocations: 159.4 kB / 498 MB, free: 38.82 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.434, allocations: 0 / 498 MB, free: 38.82 MB / 382.1 MB Notification: Performance of Templates: time 0.04395/0.4779, allocations: 33.52 MB / 0.5191 GB, free: 5.262 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)