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.005838/0.005838, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001152/0.001152, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.631/1.631, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001219/0.00122, allocations: 50.27 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1134, 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.00541/0.1189, allocations: 4.019 MB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.121, allocations: 1.122 MB / 378.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/0.1213, allocations: 11.94 kB / 378.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.1216, allocations: 103 kB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.1219, allocations: 166.4 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.1225, allocations: 275.7 kB / 378.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009347/0.1234, allocations: 0.9758 MB / 379.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.1238, allocations: 278.5 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003734/0.1242, allocations: 374.9 kB / 380.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.1247, allocations: 438.4 kB / 380.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.1248, allocations: 116 kB / 381 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.125, allocations: 112 kB / 381.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.1252, allocations: 215.3 kB / 381.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003666/0.1255, allocations: 422.2 kB / 381.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009821/0.1265, allocations: 1.129 MB / 382.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1265, allocations: 0 / 382.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1266, allocations: 3.938 kB / 382.9 MB, free: 7.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.1266, allocations: 0 / 382.9 MB, free: 7.539 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.002916/0.1295, allocations: 1.188 MB / 384.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1296, allocations: 16.02 kB / 384.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.1297, allocations: 76.08 kB / 384.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000791/0.1305, allocations: 445.8 kB / 384.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-05/0.1306, allocations: 41.69 kB / 384.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1307, allocations: 56.38 kB / 384.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002139/0.1329, allocations: 0.929 MB / 385.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.1329, allocations: 3.938 kB / 385.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.981e-05/0.133, allocations: 24 kB / 385.7 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.133, allocations: 12 kB / 385.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002876/0.1359, allocations: 0.9718 MB / 386.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004771/0.1407, allocations: 3.059 MB / 389.7 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.143, allocations: 0.9126 MB / 390.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.1443, allocations: 441.8 kB / 391 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.845e-05/0.1443, allocations: 16.33 kB / 391.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.1455, allocations: 461.1 kB / 391.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.176e-06/0.1456, allocations: 0 / 391.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003229/0.1488, allocations: 1.088 MB / 392.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.1489, allocations: 269.4 kB / 392.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007457/0.1497, allocations: 0.5018 MB / 393.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.1498, allocations: 37.7 kB / 393.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/0.15, allocations: 335.6 kB / 393.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.1502, allocations: 173.6 kB / 393.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/0.1504, allocations: 134.6 kB / 394 MB, free: 11.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1506, allocations: 370.8 kB / 394.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.1518, allocations: 401.7 kB / 394.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.1533, allocations: 0.6494 MB / 395.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002358/0.1557, allocations: 0.9662 MB / 396.4 MB, free: 9.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.1557, allocations: 4 kB / 396.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003026/0.1588, allocations: 1.13 MB / 397.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.73e-05/0.1589, allocations: 63.41 kB / 397.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.1589, allocations: 4 kB / 397.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.1589, allocations: 12 kB / 397.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.1599, allocations: 227.8 kB / 397.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.16, allocations: 19.88 kB / 397.8 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.161, allocations: 179 kB / 398 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.076e-05/0.1611, allocations: 31.98 kB / 398.1 MB, free: 7.648 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.0003801/0.1615, allocations: 225.5 kB / 398.3 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.1616, allocations: 59.28 kB / 398.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.1618, allocations: 73.58 kB / 398.4 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.1618, allocations: 7.938 kB / 398.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.1618, allocations: 0 / 398.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1618, allocations: 0 / 398.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.1652, allocations: 1.634 MB / 400 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1653, allocations: 0 / 400 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007738/0.166, allocations: 143.8 kB / 400.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1661, allocations: 8 kB / 400.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.1661, allocations: 19.98 kB / 400.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1661, allocations: 0 / 400.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1661, allocations: 0 / 400.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003274/0.1694, allocations: 1.292 MB / 401.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.1695, allocations: 132.4 kB / 401.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.355e-05/0.1696, allocations: 12 kB / 401.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008319/0.1705, allocations: 99.92 kB / 401.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.1707, allocations: 56.38 kB / 401.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.1707, allocations: 15.98 kB / 401.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000504/0.1712, allocations: 354.8 kB / 402.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 3.938 kB / 402.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005948/0.1718, allocations: 167.7 kB / 402.3 MB, free: 3.273 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.0001778/0.172, allocations: 119.2 kB / 402.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.1745, allocations: 0.9928 MB / 403.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1745, allocations: 3.984 kB / 403.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.1756, allocations: 419 kB / 403.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.1762, allocations: 101.7 kB / 403.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.1785, allocations: 1.16 MB / 405.1 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.1789, allocations: 0.8588 MB / 406 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000339/0.1793, allocations: 80.66 kB / 406 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.1795, allocations: 47.44 kB / 406.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1795, allocations: 4 kB / 406.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of Templates: time 0.01341/0.1929, allocations: 8.228 MB / 414.3 MB, free: 7.176 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)