Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00646/0.00646, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.001325/0.001325, allocations: 193.2 kB / 16.67 MB, free: 6.379 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.534/1.534, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001774/0.001774, allocations: 47.03 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1265, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005908/0.1324, allocations: 4.03 MB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002451/0.1349, allocations: 1.123 MB / 378.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006879/0.1356, allocations: 11.94 kB / 378.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004454/0.1361, allocations: 98.95 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006703/0.1368, allocations: 162.4 kB / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008845/0.1377, allocations: 283.6 kB / 378.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.1391, allocations: 0.9641 MB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004816/0.1396, allocations: 282.5 kB / 380.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006207/0.1403, allocations: 382.9 kB / 380.5 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004949/0.1408, allocations: 442.3 kB / 380.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.1409, allocations: 116 kB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.1411, allocations: 116 kB / 381.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.1412, allocations: 207.3 kB / 381.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003983/0.1416, allocations: 418.2 kB / 381.8 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1427, allocations: 1.137 MB / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1428, allocations: 0 / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1428, allocations: 0 / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.1428, allocations: 0 / 382.9 MB, free: 7.555 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002892/0.1457, allocations: 1.188 MB / 384.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.1457, allocations: 12.03 kB / 384.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.1459, allocations: 72.09 kB / 384.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008282/0.1467, allocations: 445.8 kB / 384.6 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.739e-05/0.1468, allocations: 45.62 kB / 384.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.147, allocations: 56.38 kB / 384.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.1492, allocations: 0.9263 MB / 385.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.1492, allocations: 3.938 kB / 385.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-05/0.1493, allocations: 20 kB / 385.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.1493, allocations: 16 kB / 385.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002768/0.1521, allocations: 0.9718 MB / 386.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004459/0.1566, allocations: 3.059 MB / 389.7 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002328/0.1589, allocations: 0.9162 MB / 390.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.1601, allocations: 441.8 kB / 391 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.1602, allocations: 12.5 kB / 391.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.1613, allocations: 465.1 kB / 391.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.925e-06/0.1613, allocations: 0 / 391.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003135/0.1645, allocations: 1.088 MB / 392.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.1647, allocations: 269.4 kB / 392.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007492/0.1654, allocations: 0.5057 MB / 393.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.814e-05/0.1655, allocations: 41.69 kB / 393.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.1657, allocations: 335.6 kB / 393.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.1659, allocations: 169.6 kB / 393.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000234/0.1661, allocations: 134.6 kB / 394 MB, free: 11.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1663, allocations: 362.8 kB / 394.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.1674, allocations: 405.7 kB / 394.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.1687, allocations: 0.6494 MB / 395.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002218/0.171, allocations: 0.9701 MB / 396.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.171, allocations: 4 kB / 396.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002826/0.1738, allocations: 1.122 MB / 397.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.232e-05/0.1739, allocations: 67.39 kB / 397.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.1739, allocations: 8 kB / 397.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.174, allocations: 8 kB / 397.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009856/0.1749, allocations: 228 kB / 397.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.202e-05/0.175, allocations: 27.8 kB / 397.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.176, allocations: 175.1 kB / 398 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/0.1761, allocations: 31.98 kB / 398.1 MB, free: 7.664 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003177/0.1764, allocations: 221.5 kB / 398.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.1765, allocations: 55.34 kB / 398.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.1767, allocations: 69.58 kB / 398.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.1767, allocations: 11.94 kB / 398.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/0.1767, allocations: 0 / 398.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1767, allocations: 3.984 kB / 398.4 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/0.1799, allocations: 1.63 MB / 400 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.18, allocations: 0 / 400 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000741/0.1807, allocations: 147.8 kB / 400.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1807, allocations: 0 / 400.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.1808, allocations: 15.98 kB / 400.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.1808, allocations: 4 kB / 400.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1808, allocations: 0 / 400.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003178/0.184, allocations: 1.288 MB / 401.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.1841, allocations: 132.4 kB / 401.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.946e-05/0.1842, allocations: 12 kB / 401.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007147/0.1849, allocations: 103.9 kB / 401.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.1851, allocations: 56.31 kB / 401.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.1851, allocations: 19.98 kB / 401.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004955/0.1856, allocations: 358.8 kB / 402.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1857, allocations: 0 / 402.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006049/0.1863, allocations: 171.7 kB / 402.3 MB, free: 3.293 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.1864, allocations: 119.2 kB / 402.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.1889, allocations: 0.9972 MB / 403.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1889, allocations: 4.312 kB / 403.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.1899, allocations: 406.2 kB / 403.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.1905, allocations: 105.8 kB / 403.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.1927, allocations: 1.168 MB / 405.1 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.1931, allocations: 0.8549 MB / 406 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003447/0.1935, allocations: 76.67 kB / 406 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.1937, allocations: 51.42 kB / 406.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1937, allocations: 0 / 406.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of Templates: time 0.01376/0.2074, allocations: 8.415 MB / 414.5 MB, free: 7.012 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)