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.01046/0.01046, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001315/0.001316, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.567/1.567, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001253/0.001254, allocations: 50.83 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1244, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005303/0.1298, allocations: 4.023 MB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.132, allocations: 1.126 MB / 378.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002497/0.1323, allocations: 11.94 kB / 378.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002495/0.1326, allocations: 94.97 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003496/0.133, allocations: 174.4 kB / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005788/0.1335, allocations: 275.7 kB / 378.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008915/0.1344, allocations: 0.9797 MB / 379.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.1349, allocations: 278.5 kB / 380.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000393/0.1353, allocations: 374.9 kB / 380.5 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004806/0.1358, allocations: 438.4 kB / 380.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.1359, allocations: 120 kB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.1361, allocations: 112 kB / 381.1 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.1363, allocations: 215.3 kB / 381.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000403/0.1367, allocations: 414.2 kB / 381.8 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1377, allocations: 1.137 MB / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1377, allocations: 0 / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1377, allocations: 0 / 382.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.1378, allocations: 0 / 382.9 MB, free: 7.555 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.00287/0.1406, allocations: 1.196 MB / 384.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.64e-05/0.1407, allocations: 8.031 kB / 384.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.1409, allocations: 72.09 kB / 384.2 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006987/0.1416, allocations: 441.8 kB / 384.6 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.1417, allocations: 41.69 kB / 384.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1418, allocations: 56.38 kB / 384.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/0.144, allocations: 0.9329 MB / 385.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.144, allocations: 0 / 385.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.091e-05/0.1441, allocations: 24 kB / 385.7 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.1442, allocations: 19.94 kB / 385.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002878/0.147, allocations: 0.9718 MB / 386.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004689/0.1517, allocations: 3.059 MB / 389.7 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.1542, allocations: 0.9203 MB / 390.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.1554, allocations: 433.9 kB / 391 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.963e-05/0.1555, allocations: 20.27 kB / 391.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001245/0.1567, allocations: 461.1 kB / 391.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.545e-06/0.1567, allocations: 0 / 391.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003231/0.16, allocations: 1.084 MB / 392.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.1601, allocations: 273.3 kB / 392.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007748/0.1609, allocations: 0.5018 MB / 393.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.363e-05/0.161, allocations: 41.7 kB / 393.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002767/0.1613, allocations: 331.6 kB / 393.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.1615, allocations: 173.6 kB / 393.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.1618, allocations: 134.6 kB / 394 MB, free: 11.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002214/0.162, allocations: 370.8 kB / 394.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.1632, allocations: 401.7 kB / 394.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.1646, allocations: 0.6494 MB / 395.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/0.167, allocations: 0.9701 MB / 396.4 MB, free: 9.352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.167, allocations: 4 kB / 396.4 MB, free: 9.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00285/0.1699, allocations: 1.126 MB / 397.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.1699, allocations: 63.41 kB / 397.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.1699, allocations: 4 kB / 397.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.255e-05/0.17, allocations: 12 kB / 397.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.171, allocations: 228 kB / 397.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.135e-05/0.171, allocations: 19.88 kB / 397.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.1721, allocations: 179 kB / 398 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-05/0.1721, allocations: 35.92 kB / 398.1 MB, free: 7.656 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.0003132/0.1724, allocations: 217.6 kB / 398.3 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.843e-05/0.1725, allocations: 59.28 kB / 398.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.1727, allocations: 73.58 kB / 398.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.1727, allocations: 7.938 kB / 398.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1727, allocations: 0 / 398.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1728, allocations: 0 / 398.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/0.1759, allocations: 1.63 MB / 400 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.176, allocations: 0 / 400 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007835/0.1767, allocations: 151.7 kB / 400.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1768, allocations: 4 kB / 400.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.1768, allocations: 15.98 kB / 400.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.1768, allocations: 0 / 400.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.1768, allocations: 0 / 400.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.18, allocations: 1.295 MB / 401.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.1802, allocations: 132.4 kB / 401.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/0.1803, allocations: 12 kB / 401.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007642/0.181, allocations: 103.9 kB / 401.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.1812, allocations: 56.38 kB / 401.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.1813, allocations: 15.98 kB / 401.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005079/0.1818, allocations: 354.8 kB / 402.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1818, allocations: 4 kB / 402.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005825/0.1824, allocations: 167.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.0001903/0.1826, allocations: 119.1 kB / 402.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.1851, allocations: 0.9935 MB / 403.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1851, allocations: 192 / 403.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.1862, allocations: 418.2 kB / 403.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005528/0.1867, allocations: 93.78 kB / 403.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.189, allocations: 1.172 MB / 405.1 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.1894, allocations: 0.8549 MB / 406 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003404/0.1897, allocations: 80.67 kB / 406.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.1899, allocations: 51.42 kB / 406.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1899, allocations: 0 / 406.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01326/0.2032, allocations: 8.22 MB / 414.3 MB, free: 7.199 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)