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.0007646/0.0007646, allocations: 87.33 kB / 16.65 MB, free: 6.535 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.000785/0.000785, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.49/1.49, allocations: 205.4 MB / 223.7 MB, free: 13.05 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.0004747/0.0004749, allocations: 10.66 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1116, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004199/0.1158, allocations: 3.659 MB / 332 MB, free: 68 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1178, allocations: 1.107 MB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002168/0.118, allocations: 8 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1182, allocations: 75.39 kB / 333.2 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.1186, allocations: 138.8 kB / 333.3 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005542/0.1191, allocations: 239.8 kB / 333.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008891/0.12, allocations: 0.9016 MB / 334.4 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.1205, allocations: 223.5 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003704/0.1208, allocations: 310.9 kB / 335 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003916/0.1212, allocations: 378.4 kB / 335.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.295e-05/0.1213, allocations: 51.94 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.776e-05/0.1214, allocations: 44 kB / 335.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.1216, allocations: 139.5 kB / 335.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003165/0.1219, allocations: 375.9 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008717/0.1228, allocations: 1.047 MB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1228, allocations: 0 / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1228, allocations: 0 / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1228, allocations: 0 / 337 MB, free: 11.04 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.002739/0.1256, allocations: 1.157 MB / 338.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.1256, allocations: 8.031 kB / 338.1 MB, free: 9.812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.1258, allocations: 80.08 kB / 338.2 MB, free: 9.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.1264, allocations: 425.9 kB / 338.6 MB, free: 9.277 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.819e-05/0.1264, allocations: 45.69 kB / 338.7 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1265, allocations: 56.36 kB / 338.7 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.1288, allocations: 1.011 MB / 339.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.1288, allocations: 3.938 kB / 339.7 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/0.1289, allocations: 24 kB / 339.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.1289, allocations: 12 kB / 339.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003135/0.1321, allocations: 1.136 MB / 340.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004979/0.1371, allocations: 3.134 MB / 344.1 MB, free: 3.664 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002466/0.1396, allocations: 1.033 MB / 345.1 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.1408, allocations: 0.4901 MB / 345.6 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.1409, allocations: 12.42 kB / 345.6 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/0.1422, allocations: 0.5166 MB / 346.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 3.417e-06/0.1422, allocations: 0 / 346.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=50): time 0.003374/0.1456, allocations: 1.26 MB / 347.4 MB, free: 288 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.1458, allocations: 273.4 kB / 347.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007229/0.1465, allocations: 0.5018 MB / 348.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.1466, allocations: 37.7 kB / 348.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002558/0.1468, allocations: 335.5 kB / 348.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.147, allocations: 165.6 kB / 348.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.945e-05/0.1471, allocations: 73.62 kB / 348.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1472, allocations: 366.8 kB / 349.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.1485, allocations: 461.7 kB / 349.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.15, allocations: 0.7081 MB / 350.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.1525, allocations: 1.091 MB / 351.3 MB, free: 12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.1526, allocations: 0 / 351.3 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003374/0.1559, allocations: 1.24 MB / 352.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.106e-05/0.156, allocations: 67.39 kB / 352.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.1561, allocations: 7.938 kB / 352.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.727e-05/0.1561, allocations: 12 kB / 352.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.1572, allocations: 255.9 kB / 352.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.283e-05/0.1572, allocations: 15.92 kB / 352.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.1584, allocations: 211.1 kB / 353.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.855e-05/0.1584, allocations: 39.98 kB / 353.2 MB, free: 10.13 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.0003797/0.1588, allocations: 209.6 kB / 353.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.309e-05/0.1589, allocations: 55.34 kB / 353.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.1591, allocations: 73.58 kB / 353.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.1591, allocations: 7.938 kB / 353.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.1591, allocations: 0 / 353.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1591, allocations: 3.984 kB / 353.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003726/0.1629, allocations: 1.771 MB / 355.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1629, allocations: 3.938 kB / 355.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000784/0.1637, allocations: 175.8 kB / 355.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.1637, allocations: 4 kB / 355.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.705e-05/0.1638, allocations: 11.98 kB / 355.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1638, allocations: 0 / 355.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1638, allocations: 0 / 355.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003477/0.1672, allocations: 1.466 MB / 356.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.1674, allocations: 148.3 kB / 357.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.761e-05/0.1675, allocations: 12 kB / 357.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000796/0.1683, allocations: 139.9 kB / 357.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.1685, allocations: 52.36 kB / 357.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.1685, allocations: 12 kB / 357.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000511/0.169, allocations: 350.8 kB / 357.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.169, allocations: 3.938 kB / 357.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000629/0.1697, allocations: 175.7 kB / 357.8 MB, free: 5.387 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.0002028/0.1699, allocations: 119.2 kB / 357.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.1726, allocations: 1.107 MB / 359 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.1726, allocations: 4.25 kB / 359 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.1738, allocations: 474.2 kB / 359.5 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006377/0.1745, allocations: 93.8 kB / 359.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.177, allocations: 1.48 MB / 361.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.1774, allocations: 0.8591 MB / 361.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000404/0.1779, allocations: 76.66 kB / 362 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.1781, allocations: 51.42 kB / 362.1 MB, free: 1.047 MB / 302.1 MB Notification: Performance of SimCode: time 2.565e-06/0.1781, allocations: 0 / 362.1 MB, free: 1.047 MB / 302.1 MB Notification: Performance of Templates: time 0.0155/0.1936, allocations: 7.392 MB / 369.5 MB, free: 9.652 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)