Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.00584/0.005839, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001151/0.001151, allocations: 195.4 kB / 16.67 MB, free: 5.926 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.531/1.531, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.00118/0.00118, allocations: 54.8 kB / 326.6 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1161, allocations: 46.61 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005355/0.1215, allocations: 4.038 MB / 377.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.1242, allocations: 1.126 MB / 378.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006018/0.1248, allocations: 8 kB / 378.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003894/0.1253, allocations: 91.03 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006911/0.126, allocations: 170.4 kB / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008094/0.1268, allocations: 279.6 kB / 378.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.1282, allocations: 0.968 MB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005068/0.1287, allocations: 286.5 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000635/0.1294, allocations: 378.8 kB / 380.5 MB, free: 9.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006986/0.1301, allocations: 434.4 kB / 380.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002917/0.1304, allocations: 116 kB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000308/0.1307, allocations: 119.9 kB / 381.1 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.1309, allocations: 215.4 kB / 381.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005552/0.1315, allocations: 410.3 kB / 381.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.1327, allocations: 1.137 MB / 382.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1327, allocations: 0 / 382.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1327, allocations: 0 / 382.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.1327, allocations: 0 / 382.9 MB, free: 7.551 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.002822/0.1355, allocations: 1.196 MB / 384.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1356, allocations: 8.031 kB / 384.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.1358, allocations: 72.09 kB / 384.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00071/0.1365, allocations: 449.7 kB / 384.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.583e-05/0.1365, allocations: 41.69 kB / 384.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1366, allocations: 52.38 kB / 384.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.1387, allocations: 0.929 MB / 385.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1388, allocations: 0 / 385.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.559e-05/0.1389, allocations: 28 kB / 385.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.1389, allocations: 12 kB / 385.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/0.1418, allocations: 0.9679 MB / 386.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.1463, allocations: 3.063 MB / 389.7 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.1486, allocations: 0.9086 MB / 390.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.1498, allocations: 441.9 kB / 391 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.726e-05/0.1499, allocations: 16.33 kB / 391.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001154/0.151, allocations: 465 kB / 391.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.835e-06/0.151, allocations: 0 / 391.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003282/0.1543, allocations: 1.08 MB / 392.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.1545, allocations: 273.4 kB / 392.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007861/0.1553, allocations: 0.5057 MB / 393.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.1554, allocations: 37.7 kB / 393.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.1557, allocations: 335.6 kB / 393.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.1558, allocations: 165.6 kB / 393.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.1561, allocations: 134.6 kB / 394 MB, free: 11.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1563, allocations: 366.8 kB / 394.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.1574, allocations: 405.7 kB / 394.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.1588, allocations: 0.6494 MB / 395.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.1611, allocations: 0.9701 MB / 396.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.1611, allocations: 4 kB / 396.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002848/0.164, allocations: 1.13 MB / 397.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.338e-05/0.1641, allocations: 63.41 kB / 397.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.1641, allocations: 8 kB / 397.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.013e-05/0.1641, allocations: 15.98 kB / 397.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.1652, allocations: 227.9 kB / 397.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.64e-05/0.1652, allocations: 15.98 kB / 397.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.1663, allocations: 175.1 kB / 398 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.207e-05/0.1663, allocations: 35.98 kB / 398.1 MB, free: 7.664 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.0003299/0.1667, allocations: 221.5 kB / 398.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.181e-05/0.1668, allocations: 55.34 kB / 398.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000145/0.1669, allocations: 65.58 kB / 398.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1669, allocations: 11.94 kB / 398.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.1669, allocations: 4 kB / 398.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.167, allocations: 0 / 398.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003125/0.1701, allocations: 1.646 MB / 400 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1701, allocations: 0 / 400 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/0.1708, allocations: 147.8 kB / 400.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.1709, allocations: 4 kB / 400.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.904e-05/0.1709, allocations: 15.98 kB / 400.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1709, allocations: 0 / 400.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1709, allocations: 0 / 400.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003169/0.1741, allocations: 1.291 MB / 401.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.1742, allocations: 132.4 kB / 401.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.1743, allocations: 12 kB / 401.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000724/0.1751, allocations: 103.9 kB / 401.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.1752, allocations: 52.38 kB / 401.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.1752, allocations: 19.92 kB / 401.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004536/0.1757, allocations: 350.9 kB / 402.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1757, allocations: 0 / 402.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.1763, allocations: 175.7 kB / 402.3 MB, free: 3.285 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.0001922/0.1765, allocations: 119.2 kB / 402.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002417/0.1789, allocations: 0.9895 MB / 403.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.1789, allocations: 8.25 kB / 403.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.18, allocations: 406.2 kB / 403.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.1805, allocations: 109.8 kB / 403.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.1829, allocations: 1.16 MB / 405.1 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004926/0.1834, allocations: 0.8588 MB / 406 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003657/0.1838, allocations: 80.66 kB / 406 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.184, allocations: 55.42 kB / 406.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.184, allocations: 3.938 kB / 406.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01494/0.199, allocations: 8.212 MB / 414.3 MB, free: 7.199 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)