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.005981/0.005981, allocations: 100.4 kB / 15.73 MB, free: 5.98 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.001119/0.001119, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.387/1.387, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001126/0.001126, allocations: 53.97 kB / 326.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08842, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01259/0.1011, allocations: 13.35 MB / 386.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02145/0.1226, allocations: 19.32 MB / 405.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002606/0.1252, allocations: 126.9 kB / 406 MB, free: 412 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003171/0.1284, allocations: 1.093 MB / 407 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008093/0.1366, allocations: 2.239 MB / 409.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004702/0.1413, allocations: 1.369 MB / 410.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.1519, allocations: 6.215 MB / 416.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009884/0.1529, allocations: 436.4 kB / 417.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001741/0.1546, allocations: 0.972 MB / 418.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.1559, allocations: 1.036 MB / 419.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.156, allocations: 72 kB / 419.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004211/0.1602, allocations: 1.148 MB / 420.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003111/0.1606, allocations: 309.8 kB / 420.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.1618, allocations: 1.3 MB / 422.1 MB, free: 128 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004892/0.1667, allocations: 3.662 MB / 425.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1668, allocations: 4 kB / 425.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1668, allocations: 0 / 425.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.149e-05/0.1668, allocations: 0 / 425.8 MB, free: 12.45 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.005126/0.172, allocations: 3.518 MB / 429.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.172, allocations: 16.03 kB / 429.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.1724, allocations: 379.4 kB / 429.7 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003498/0.1759, allocations: 2.509 MB / 432.2 MB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.176, allocations: 40.94 kB / 432.2 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.1761, allocations: 55.89 kB / 432.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.1774, allocations: 0.6991 MB / 433 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1774, allocations: 7.938 kB / 433 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.356e-05/0.1775, allocations: 20 kB / 433 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.1775, allocations: 19.98 kB / 433 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.179, allocations: 0.7812 MB / 433.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004835/0.1838, allocations: 2.895 MB / 436.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.1851, allocations: 0.7053 MB / 437.4 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009807/0.1861, allocations: 0.6588 MB / 438.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2136/0.3997, allocations: 30.14 MB / 468.2 MB, free: 61.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007346/0.4005, allocations: 364.4 kB / 468.6 MB, free: 61.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.006e-06/0.4005, allocations: 3.281 kB / 468.6 MB, free: 61.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.00313/0.4036, allocations: 1.387 MB / 470 MB, free: 60.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.4037, allocations: 68.34 kB / 470 MB, free: 60.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003044/0.4067, allocations: 2.819 MB / 472.9 MB, free: 59.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.4068, allocations: 36.2 kB / 472.9 MB, free: 59.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008815/0.4077, allocations: 1.387 MB / 474.3 MB, free: 57.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.4078, allocations: 165.9 kB / 474.4 MB, free: 57.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.4081, allocations: 228.5 kB / 474.7 MB, free: 57.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.698e-05/0.4082, allocations: 337 kB / 475 MB, free: 57.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005512/0.4087, allocations: 236.4 kB / 475.2 MB, free: 57.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006834/0.4094, allocations: 0.5955 MB / 475.8 MB, free: 56.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.4106, allocations: 0.8811 MB / 476.7 MB, free: 55.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.4106, allocations: 3.938 kB / 476.7 MB, free: 55.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001866/0.4125, allocations: 1.285 MB / 478 MB, free: 55.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.4125, allocations: 11.78 kB / 478 MB, free: 55.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.348e-05/0.4126, allocations: 84.61 kB / 478.1 MB, free: 55.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004835/0.4131, allocations: 278 kB / 478.4 MB, free: 55.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005315/0.4136, allocations: 169 kB / 478.5 MB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007176/0.4144, allocations: 0.8789 MB / 479.4 MB, free: 54.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008639/0.4153, allocations: 110.2 kB / 479.5 MB, free: 54.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.495e-05/0.4153, allocations: 70.45 kB / 479.6 MB, free: 54.45 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.0005665/0.4159, allocations: 419.3 kB / 480 MB, free: 54.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/0.4162, allocations: 364.9 kB / 480.3 MB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.4185, allocations: 1.277 MB / 481.6 MB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.4185, allocations: 6.953 kB / 481.6 MB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4185, allocations: 7.375 kB / 481.6 MB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.4185, allocations: 3.938 kB / 481.6 MB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.4216, allocations: 2.193 MB / 483.8 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.067e-05/0.4217, allocations: 69.81 kB / 483.9 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.422, allocations: 67.62 kB / 484 MB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004317/0.4225, allocations: 262.6 kB / 484.2 MB, free: 51.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-05/0.4225, allocations: 39.36 kB / 484.3 MB, free: 51.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006698/0.4232, allocations: 0.875 MB / 485.1 MB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4232, allocations: 0 / 485.1 MB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.4247, allocations: 1.133 MB / 486.3 MB, free: 49.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006791/0.4254, allocations: 478.2 kB / 486.7 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/0.4257, allocations: 12 kB / 486.7 MB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.4263, allocations: 35.72 kB / 486.8 MB, free: 49.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.4265, allocations: 59.94 kB / 486.8 MB, free: 49.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.104e-05/0.4266, allocations: 36 kB / 486.9 MB, free: 49.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001813/0.4284, allocations: 1.836 MB / 488.7 MB, free: 47.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4284, allocations: 0 / 488.7 MB, free: 47.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001182/0.4296, allocations: 0.57 MB / 489.3 MB, free: 46.73 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.0009024/0.4305, allocations: 0.7832 MB / 490.1 MB, free: 46.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.4321, allocations: 0.8488 MB / 490.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4321, allocations: 2.844 kB / 490.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.4329, allocations: 0.4928 MB / 491.4 MB, free: 44.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.4343, allocations: 0.5098 MB / 491.9 MB, free: 44.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/0.4386, allocations: 3.922 MB / 495.8 MB, free: 40.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006632/0.4392, allocations: 1.608 MB / 497.4 MB, free: 38.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008568/0.4401, allocations: 382.8 kB / 497.8 MB, free: 38.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.4403, allocations: 167.4 kB / 498 MB, free: 38.03 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4403, allocations: 3.938 kB / 498 MB, free: 38.03 MB / 382.1 MB Notification: Performance of Templates: time 0.04526/0.4856, allocations: 34.18 MB / 0.5197 GB, free: 3.805 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)