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.0009655/0.0009653, allocations: 94.84 kB / 16.3 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.0009025/0.0009025, allocations: 184.4 kB / 17.2 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.487/1.487, allocations: 205.4 MB / 223.4 MB, free: 5.555 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.0004535/0.0004535, allocations: 18.81 kB / 280.1 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2322, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.002984/0.2352, allocations: 3.261 MB / 331 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.2367, allocations: 1.105 MB / 332.1 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.2369, allocations: 13.16 kB / 332.1 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.237, allocations: 71.83 kB / 332.1 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.2374, allocations: 182.1 kB / 332.3 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.2377, allocations: 169.7 kB / 332.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005874/0.2383, allocations: 0.5508 MB / 333 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.2387, allocations: 206.8 kB / 333.2 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.239, allocations: 298.3 kB / 333.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003947/0.2394, allocations: 361.2 kB / 333.9 MB, free: 12.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.922e-05/0.2395, allocations: 46.97 kB / 333.9 MB, free: 12.68 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.755e-05/0.2396, allocations: 50.97 kB / 334 MB, free: 12.68 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.2397, allocations: 139.2 kB / 334.1 MB, free: 12.56 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.2398, allocations: 151.1 kB / 334.3 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007983/0.2406, allocations: 0.873 MB / 335.1 MB, free: 11.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2407, allocations: 0 / 335.1 MB, free: 11.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.2407, allocations: 0 / 335.1 MB, free: 11.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.2407, allocations: 0 / 335.1 MB, free: 11.77 MB / 270.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.002589/0.2433, allocations: 1.159 MB / 336.3 MB, free: 10.83 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2433, allocations: 8.031 kB / 336.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.2435, allocations: 71.16 kB / 336.4 MB, free: 10.75 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005682/0.2441, allocations: 432.8 kB / 336.8 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.177e-05/0.2441, allocations: 49.27 kB / 336.8 MB, free: 10.24 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.2442, allocations: 59.98 kB / 336.9 MB, free: 10.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/0.2463, allocations: 0.9916 MB / 337.9 MB, free: 9.125 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.2463, allocations: 0 / 337.9 MB, free: 9.125 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.797e-05/0.2464, allocations: 24 kB / 337.9 MB, free: 9.102 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.2464, allocations: 12 kB / 337.9 MB, free: 9.09 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002834/0.2493, allocations: 1.132 MB / 339.1 MB, free: 7.961 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.2535, allocations: 3.138 MB / 342.2 MB, free: 4.688 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.2559, allocations: 1.03 MB / 343.2 MB, free: 3.609 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.2559, allocations: 12.5 kB / 343.2 MB, free: 3.598 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.2571, allocations: 0.505 MB / 343.8 MB, free: 3.078 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.474e-06/0.2571, allocations: 0 / 343.8 MB, free: 3.078 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.003187/0.2603, allocations: 1.263 MB / 345 MB, free: 1.812 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.2605, allocations: 265.5 kB / 345.3 MB, free: 1.492 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006426/0.2611, allocations: 0.5056 MB / 345.8 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.713e-05/0.2612, allocations: 41.69 kB / 345.8 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.2614, allocations: 335.6 kB / 346.1 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.2615, allocations: 169.6 kB / 346.3 MB, free: 440 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.2616, allocations: 12 kB / 346.3 MB, free: 428 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2617, allocations: 366.8 kB / 346.7 MB, free: 52 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.2629, allocations: 461.7 kB / 347.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.2643, allocations: 0.7092 MB / 347.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.2655, allocations: 0.5246 MB / 348.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.2655, allocations: 7.938 kB / 348.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002824/0.2684, allocations: 1.228 MB / 349.6 MB, free: 12.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.742e-05/0.2684, allocations: 71.39 kB / 349.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2684, allocations: 4.406 kB / 349.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.584e-05/0.2685, allocations: 19.94 kB / 349.7 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000995/0.2695, allocations: 243.6 kB / 349.9 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/0.2695, allocations: 19.92 kB / 350 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.2705, allocations: 215.1 kB / 350.2 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.804e-05/0.2706, allocations: 35.95 kB / 350.2 MB, free: 12.38 MB / 286.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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002947/0.2709, allocations: 221.6 kB / 350.4 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.529e-05/0.271, allocations: 59.25 kB / 350.5 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.2711, allocations: 61.58 kB / 350.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2711, allocations: 4 kB / 350.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.2712, allocations: 0 / 350.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.2712, allocations: 7.984 kB / 350.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/0.2744, allocations: 1.751 MB / 352.3 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2744, allocations: 4 kB / 352.3 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007647/0.2752, allocations: 179.7 kB / 352.5 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.2752, allocations: 8 kB / 352.5 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.053e-05/0.2752, allocations: 11.95 kB / 352.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2753, allocations: 0 / 352.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2753, allocations: 0 / 352.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.2787, allocations: 1.462 MB / 354 MB, free: 8.535 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.2788, allocations: 144.2 kB / 354.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.589e-05/0.279, allocations: 15.98 kB / 354.1 MB, free: 8.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007845/0.2797, allocations: 147.9 kB / 354.3 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.2799, allocations: 56.36 kB / 354.3 MB, free: 8.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.822e-05/0.2799, allocations: 12 kB / 354.3 MB, free: 8.148 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005187/0.2805, allocations: 346.8 kB / 354.7 MB, free: 7.812 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2805, allocations: 4 kB / 354.7 MB, free: 7.809 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005925/0.2811, allocations: 167.8 kB / 354.8 MB, free: 7.645 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/0.2813, allocations: 115.1 kB / 354.9 MB, free: 7.523 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002636/0.2839, allocations: 1.11 MB / 356.1 MB, free: 6.391 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.2839, allocations: 0 / 356.1 MB, free: 6.391 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.2851, allocations: 479 kB / 356.5 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.2856, allocations: 81.16 kB / 356.6 MB, free: 5.848 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.2882, allocations: 1.413 MB / 358 MB, free: 4.406 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.2887, allocations: 0.8746 MB / 358.9 MB, free: 3.508 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003985/0.2891, allocations: 80.66 kB / 359 MB, free: 3.426 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.2893, allocations: 43.44 kB / 359 MB, free: 3.383 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2893, allocations: 0 / 359 MB, free: 3.383 MB / 286.1 MB Notification: Performance of Templates: time 0.01162/0.3009, allocations: 7.021 MB / 366 MB, free: 12.35 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: