Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.009083/0.009083, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001879/0.001879, allocations: 189.3 kB / 16.67 MB, free: 5.973 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.523/1.523, allocations: 205.1 MB / 222.6 MB, free: 4.371 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.001122/0.001122, allocations: 55.02 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1168, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004984/0.1218, allocations: 4.023 MB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1238, allocations: 1.134 MB / 378.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.124, allocations: 8 kB / 378.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.1243, allocations: 94.97 kB / 378.4 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000332/0.1246, allocations: 166.4 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.1251, allocations: 283.7 kB / 378.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008928/0.126, allocations: 0.9719 MB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003905/0.1264, allocations: 278.5 kB / 380.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003484/0.1268, allocations: 378.9 kB / 380.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004593/0.1273, allocations: 438.5 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.1274, allocations: 119.9 kB / 381 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.1276, allocations: 112 kB / 381.1 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.1277, allocations: 207.4 kB / 381.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003171/0.1281, allocations: 418.2 kB / 381.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009827/0.129, allocations: 1.141 MB / 382.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1291, allocations: 0 / 382.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1291, allocations: 0 / 382.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.1291, allocations: 0 / 382.9 MB, free: 7.527 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.002545/0.1316, allocations: 1.207 MB / 384.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1317, allocations: 8.031 kB / 384.1 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.1318, allocations: 84.41 kB / 384.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006296/0.1325, allocations: 446.1 kB / 384.6 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.1325, allocations: 41.67 kB / 384.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.1326, allocations: 60.38 kB / 384.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.1346, allocations: 0.9251 MB / 385.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1346, allocations: 0 / 385.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.555e-05/0.1347, allocations: 24 kB / 385.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.1347, allocations: 19.94 kB / 385.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002857/0.1376, allocations: 0.9679 MB / 386.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004995/0.1426, allocations: 3.064 MB / 389.7 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.145, allocations: 0.9048 MB / 390.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.1462, allocations: 437.9 kB / 391.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.124e-05/0.1463, allocations: 16.34 kB / 391.1 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.1475, allocations: 461.1 kB / 391.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.826e-06/0.1475, allocations: 0 / 391.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003233/0.1508, allocations: 1.092 MB / 392.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002028/0.151, allocations: 273.3 kB / 392.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008254/0.1518, allocations: 0.4979 MB / 393.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.1519, allocations: 45.7 kB / 393.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.1521, allocations: 348.4 kB / 393.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.1523, allocations: 174.5 kB / 393.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.1526, allocations: 138.6 kB / 394.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.1528, allocations: 366.8 kB / 394.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.1539, allocations: 397.7 kB / 394.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.1553, allocations: 0.6533 MB / 395.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/0.1576, allocations: 0.9701 MB / 396.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1576, allocations: 0 / 396.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002947/0.1606, allocations: 1.134 MB / 397.6 MB, free: 8.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/0.1606, allocations: 63.41 kB / 397.6 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.1607, allocations: 8 kB / 397.6 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.086e-05/0.1607, allocations: 11.94 kB / 397.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009882/0.1617, allocations: 232 kB / 397.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.1617, allocations: 11.94 kB / 397.9 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009964/0.1627, allocations: 175.3 kB / 398.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/0.1628, allocations: 35.98 kB / 398.1 MB, free: 7.598 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.000337/0.1632, allocations: 217.6 kB / 398.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.1633, allocations: 67.56 kB / 398.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.1634, allocations: 65.58 kB / 398.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1634, allocations: 7.938 kB / 398.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.1634, allocations: 0 / 398.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1634, allocations: 7.938 kB / 398.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.1666, allocations: 1.638 MB / 400.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1666, allocations: 0 / 400.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007496/0.1674, allocations: 159.7 kB / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1674, allocations: 0 / 400.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.776e-05/0.1675, allocations: 15.98 kB / 400.3 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.1675, allocations: 4 kB / 400.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1675, allocations: 0 / 400.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003118/0.1706, allocations: 1.292 MB / 401.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.1708, allocations: 140.6 kB / 401.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.145e-05/0.1709, allocations: 12 kB / 401.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007174/0.1716, allocations: 103.9 kB / 401.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.1717, allocations: 56.31 kB / 401.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/0.1718, allocations: 19.98 kB / 401.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004973/0.1723, allocations: 346.9 kB / 402.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1723, allocations: 4 kB / 402.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006377/0.173, allocations: 163.8 kB / 402.4 MB, free: 3.207 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.000184/0.1731, allocations: 123.1 kB / 402.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.1757, allocations: 0.9935 MB / 403.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.1757, allocations: 192 / 403.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.1768, allocations: 418.2 kB / 403.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005958/0.1774, allocations: 101.6 kB / 404 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.1802, allocations: 1.183 MB / 405.2 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007465/0.181, allocations: 0.8549 MB / 406 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004462/0.1815, allocations: 84.66 kB / 406.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.1817, allocations: 51.42 kB / 406.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1817, allocations: 0 / 406.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Templates: time 0.01622/0.198, allocations: 8.228 MB / 414.4 MB, free: 7.086 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)