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.005829/0.005834, allocations: 101.7 kB / 15.73 MB, free: 5.992 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.001239/0.001239, allocations: 199 kB / 16.68 MB, free: 5.914 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.594/1.594, allocations: 205.1 MB / 222.6 MB, free: 4.379 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.001285/0.001285, allocations: 53.98 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 46.62 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005294/0.113, allocations: 4.019 MB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.115, allocations: 1.122 MB / 378.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.1152, allocations: 12 kB / 378.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.1155, allocations: 98.95 kB / 378.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003683/0.1158, allocations: 178.4 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.1164, allocations: 267.7 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009139/0.1173, allocations: 0.9797 MB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003861/0.1177, allocations: 278.5 kB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.1181, allocations: 382.8 kB / 380.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.1186, allocations: 438.4 kB / 380.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.1187, allocations: 112 kB / 381 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1189, allocations: 119.9 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.119, allocations: 215.4 kB / 381.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003451/0.1194, allocations: 414.2 kB / 381.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009402/0.1203, allocations: 1.137 MB / 382.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1203, allocations: 0 / 382.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1204, allocations: 0 / 382.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.1204, allocations: 0 / 382.9 MB, free: 7.508 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.002595/0.123, allocations: 1.188 MB / 384.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.123, allocations: 12.02 kB / 384.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.1232, allocations: 72.09 kB / 384.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006811/0.1239, allocations: 445.8 kB / 384.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.428e-05/0.1239, allocations: 41.69 kB / 384.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.124, allocations: 52.38 kB / 384.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001897/0.1259, allocations: 0.9329 MB / 385.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.126, allocations: 3.984 kB / 385.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.691e-05/0.126, allocations: 28 kB / 385.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.1261, allocations: 12 kB / 385.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002532/0.1286, allocations: 0.9717 MB / 386.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004182/0.1328, allocations: 3.063 MB / 389.7 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/0.1349, allocations: 0.9085 MB / 390.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.136, allocations: 437.9 kB / 391 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.803e-05/0.1361, allocations: 16.48 kB / 391.1 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/0.1372, allocations: 465 kB / 391.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.356e-06/0.1372, allocations: 0 / 391.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.002902/0.1401, allocations: 1.084 MB / 392.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/0.1403, allocations: 269.4 kB / 392.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007118/0.141, allocations: 0.5057 MB / 393.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/0.1411, allocations: 41.64 kB / 393.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002635/0.1413, allocations: 335.6 kB / 393.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.1415, allocations: 165.6 kB / 393.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000265/0.1418, allocations: 134.6 kB / 394 MB, free: 11.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.1419, allocations: 366.8 kB / 394.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.143, allocations: 405.7 kB / 394.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.1443, allocations: 0.6494 MB / 395.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/0.1465, allocations: 0.9701 MB / 396.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.1465, allocations: 4 kB / 396.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002821/0.1494, allocations: 1.126 MB / 397.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.1495, allocations: 64.5 kB / 397.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.1495, allocations: 11.94 kB / 397.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.618e-05/0.1495, allocations: 12 kB / 397.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.1505, allocations: 227.9 kB / 397.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.674e-05/0.1505, allocations: 15.94 kB / 397.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009872/0.1515, allocations: 183 kB / 398 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.968e-05/0.1516, allocations: 31.98 kB / 398.1 MB, free: 7.617 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.0003435/0.152, allocations: 217.6 kB / 398.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.1521, allocations: 59.34 kB / 398.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.1523, allocations: 69.56 kB / 398.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.1523, allocations: 7.938 kB / 398.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.1523, allocations: 3.938 kB / 398.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1523, allocations: 0 / 398.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003296/0.1556, allocations: 1.634 MB / 400 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1556, allocations: 0 / 400 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007153/0.1564, allocations: 151.7 kB / 400.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.1564, allocations: 4 kB / 400.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.332e-05/0.1564, allocations: 15.98 kB / 400.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1564, allocations: 0 / 400.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1565, allocations: 0 / 400.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00317/0.1596, allocations: 1.288 MB / 401.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.1598, allocations: 132.4 kB / 401.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.1599, allocations: 16 kB / 401.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006864/0.1606, allocations: 103.9 kB / 401.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.1608, allocations: 56.38 kB / 401.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.419e-05/0.1609, allocations: 15.92 kB / 401.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004961/0.1614, allocations: 350.9 kB / 402.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1614, allocations: 0 / 402.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000639/0.162, allocations: 175.7 kB / 402.3 MB, free: 3.246 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.0001833/0.1622, allocations: 119.1 kB / 402.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.1645, allocations: 0.9935 MB / 403.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.1646, allocations: 4 kB / 403.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.1656, allocations: 422.3 kB / 403.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.1662, allocations: 93.78 kB / 404 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.1686, allocations: 1.164 MB / 405.1 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.1691, allocations: 0.8588 MB / 406 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003577/0.1694, allocations: 80.66 kB / 406.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.1696, allocations: 47.44 kB / 406.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1696, allocations: 0 / 406.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01535/0.185, allocations: 8.224 MB / 414.3 MB, free: 7.156 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)