Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001081/0.001081, allocations: 103.3 kB / 16.62 MB, free: 6.805 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.00122/0.001221, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.463/1.463, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.00135/0.00135, allocations: 52.25 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1206, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.007009/0.1277, allocations: 4.064 MB / 330.2 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.1307, allocations: 1.103 MB / 331.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006814/0.1315, allocations: 12 kB / 331.3 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000462/0.1319, allocations: 71.39 kB / 331.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007196/0.1327, allocations: 138.9 kB / 331.5 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007847/0.1335, allocations: 243.8 kB / 331.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001405/0.1349, allocations: 0.9719 MB / 332.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004553/0.1354, allocations: 278.6 kB / 333 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000482/0.1359, allocations: 378.9 kB / 333.4 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004044/0.1363, allocations: 434.4 kB / 333.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.1364, allocations: 112 kB / 333.9 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/0.1366, allocations: 112 kB / 334 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.1367, allocations: 215.4 kB / 334.2 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003472/0.1371, allocations: 414.2 kB / 334.6 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000926/0.138, allocations: 1.137 MB / 335.8 MB, free: 11.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.138, allocations: 0 / 335.8 MB, free: 11.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.138, allocations: 0 / 335.8 MB, free: 11.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1381, allocations: 0 / 335.8 MB, free: 11.11 MB / 286.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.002911/0.141, allocations: 1.188 MB / 337 MB, free: 9.852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.141, allocations: 12.03 kB / 337 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.1412, allocations: 76 kB / 337 MB, free: 9.766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005633/0.1418, allocations: 433.9 kB / 337.5 MB, free: 9.301 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.1418, allocations: 37.69 kB / 337.5 MB, free: 9.266 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.1419, allocations: 52.38 kB / 337.6 MB, free: 9.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.144, allocations: 0.9368 MB / 338.5 MB, free: 8.211 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.144, allocations: 0 / 338.5 MB, free: 8.211 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.487e-05/0.1441, allocations: 31.94 kB / 338.5 MB, free: 8.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.1441, allocations: 12 kB / 338.5 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002604/0.1468, allocations: 0.9756 MB / 339.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00472/0.1515, allocations: 3.06 MB / 342.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002248/0.1538, allocations: 0.9044 MB / 343.5 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.1549, allocations: 445.8 kB / 343.9 MB, free: 2.613 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.155, allocations: 8.422 kB / 343.9 MB, free: 2.605 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001267/0.1562, allocations: 461.1 kB / 344.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.975e-06/0.1562, allocations: 0 / 344.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003005/0.1593, allocations: 1.092 MB / 345.5 MB, free: 1.043 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.1594, allocations: 277.3 kB / 345.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007198/0.1601, allocations: 0.5017 MB / 346.2 MB, free: 204 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.1602, allocations: 45.69 kB / 346.3 MB, free: 152 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.1605, allocations: 331.7 kB / 346.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1606, allocations: 177.5 kB / 346.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/0.1609, allocations: 138.5 kB / 346.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.161, allocations: 362.8 kB / 347.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.1621, allocations: 401.7 kB / 347.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.1634, allocations: 0.6572 MB / 348.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/0.1655, allocations: 0.9662 MB / 349.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.1655, allocations: 0 / 349.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002769/0.1683, allocations: 1.126 MB / 350.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.879e-05/0.1684, allocations: 63.39 kB / 350.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.1684, allocations: 4 kB / 350.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/0.1684, allocations: 12 kB / 350.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009999/0.1694, allocations: 227.8 kB / 350.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.1695, allocations: 15.92 kB / 350.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.1705, allocations: 171.1 kB / 350.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/0.1706, allocations: 35.98 kB / 350.9 MB, free: 11.24 MB / 302.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.0003822/0.171, allocations: 209.6 kB / 351.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1711, allocations: 59.25 kB / 351.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001555/0.1713, allocations: 73.58 kB / 351.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1713, allocations: 7.938 kB / 351.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.1713, allocations: 0 / 351.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1713, allocations: 3.984 kB / 351.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003254/0.1746, allocations: 1.642 MB / 352.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.1746, allocations: 4 kB / 352.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007872/0.1754, allocations: 155.7 kB / 353.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1754, allocations: 0 / 353.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.1755, allocations: 15.98 kB / 353.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.1755, allocations: 4 kB / 353.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1755, allocations: 0 / 353.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003119/0.1786, allocations: 1.294 MB / 354.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.1788, allocations: 140.3 kB / 354.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.93e-05/0.1789, allocations: 8 kB / 354.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007337/0.1796, allocations: 103.9 kB / 354.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.1798, allocations: 52.38 kB / 354.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.1799, allocations: 19.98 kB / 354.7 MB, free: 7.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006085/0.1805, allocations: 350.8 kB / 355 MB, free: 7.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1805, allocations: 4 kB / 355 MB, free: 7.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006581/0.1811, allocations: 167.7 kB / 355.2 MB, free: 6.855 MB / 302.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.0002198/0.1814, allocations: 119.1 kB / 355.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002575/0.184, allocations: 1.009 MB / 356.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.184, allocations: 3.938 kB / 356.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.185, allocations: 414.3 kB / 356.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/0.1857, allocations: 100.9 kB / 356.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.1887, allocations: 1.395 MB / 358.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.1893, allocations: 0.8588 MB / 359.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004497/0.1898, allocations: 80.66 kB / 359.2 MB, free: 2.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002097/0.19, allocations: 51.44 kB / 359.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of SimCode: time 1.403e-06/0.19, allocations: 0 / 359.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of Templates: time 0.0136/0.2036, allocations: 7.837 MB / 367.1 MB, free: 10.91 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)