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.000897/0.0008969, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.009339/0.009339, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.634/1.634, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005013/0.0005014, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2928, allocations: 47.58 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004759/0.2976, allocations: 3.657 MB / 330.7 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.3003, allocations: 1.111 MB / 331.8 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005934/0.3009, allocations: 8.375 kB / 331.8 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003521/0.3013, allocations: 64.06 kB / 331.9 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00086/0.3022, allocations: 148.3 kB / 332 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.303, allocations: 246.1 kB / 332.3 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.3043, allocations: 0.8905 MB / 333.1 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005068/0.3049, allocations: 232 kB / 333.4 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006869/0.3056, allocations: 302 kB / 333.7 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007304/0.3063, allocations: 377.3 kB / 334 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.3064, allocations: 47.16 kB / 334.1 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.3066, allocations: 51.22 kB / 334.1 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.3067, allocations: 142.5 kB / 334.3 MB, free: 11.92 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004215/0.3071, allocations: 369.8 kB / 334.6 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000926/0.3081, allocations: 1.051 MB / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3081, allocations: 4 kB / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3081, allocations: 0 / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.3081, allocations: 0 / 335.7 MB, free: 10.68 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.002786/0.3109, allocations: 1.15 MB / 336.8 MB, free: 9.465 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.311, allocations: 8.031 kB / 336.8 MB, free: 9.457 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.3111, allocations: 72.09 kB / 336.9 MB, free: 9.387 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.3117, allocations: 441.8 kB / 337.3 MB, free: 8.914 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.604e-05/0.3118, allocations: 45.69 kB / 337.4 MB, free: 8.867 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.3119, allocations: 56.38 kB / 337.4 MB, free: 8.812 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.3141, allocations: 1.011 MB / 338.5 MB, free: 7.738 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3141, allocations: 0 / 338.5 MB, free: 7.738 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-05/0.3142, allocations: 20 kB / 338.5 MB, free: 7.719 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3142, allocations: 19.94 kB / 338.5 MB, free: 7.699 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003039/0.3173, allocations: 1.132 MB / 339.6 MB, free: 6.57 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004564/0.3219, allocations: 3.134 MB / 342.8 MB, free: 3.305 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002448/0.3243, allocations: 1.027 MB / 343.8 MB, free: 2.23 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.3255, allocations: 0.4901 MB / 344.3 MB, free: 1.738 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.321e-05/0.3256, allocations: 16.36 kB / 344.3 MB, free: 1.723 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001327/0.3269, allocations: 0.5089 MB / 344.8 MB, free: 1.199 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.264e-06/0.327, allocations: 0 / 344.8 MB, free: 1.199 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.00343/0.3304, allocations: 1.263 MB / 346.1 MB, free: 15.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.3305, allocations: 277.3 kB / 346.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007073/0.3313, allocations: 0.4979 MB / 346.8 MB, free: 15.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.826e-05/0.3313, allocations: 37.7 kB / 346.9 MB, free: 15.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.3316, allocations: 343.5 kB / 347.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.3317, allocations: 169.6 kB / 347.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-05/0.3318, allocations: 69.67 kB / 347.4 MB, free: 14.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.332, allocations: 362.8 kB / 347.8 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.3333, allocations: 461.6 kB / 348.2 MB, free: 13.65 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.3347, allocations: 0.7132 MB / 349 MB, free: 12.83 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.3371, allocations: 1.087 MB / 350 MB, free: 11.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3371, allocations: 0 / 350 MB, free: 11.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003026/0.3401, allocations: 1.24 MB / 351.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.655e-05/0.3402, allocations: 71.39 kB / 351.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3402, allocations: 8 kB / 351.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.3402, allocations: 16 kB / 351.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.3413, allocations: 251.6 kB / 351.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/0.3413, allocations: 15.92 kB / 351.6 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.3424, allocations: 215.1 kB / 351.9 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.007e-05/0.3425, allocations: 36 kB / 351.9 MB, free: 9.773 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 (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.0003391/0.3429, allocations: 209.6 kB / 352.1 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.25e-05/0.343, allocations: 59.28 kB / 352.1 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.3431, allocations: 65.58 kB / 352.2 MB, free: 9.434 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3431, allocations: 7.938 kB / 352.2 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3431, allocations: 0 / 352.2 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.3432, allocations: 7.984 kB / 352.2 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.3466, allocations: 1.759 MB / 354 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3466, allocations: 0 / 354 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007885/0.3474, allocations: 183.7 kB / 354.2 MB, free: 7.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3475, allocations: 7.938 kB / 354.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.611e-05/0.3475, allocations: 15.98 kB / 354.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3475, allocations: 0 / 354.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3475, allocations: 0 / 354.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003476/0.351, allocations: 1.466 MB / 355.7 MB, free: 5.918 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3512, allocations: 140.2 kB / 355.8 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.956e-05/0.3513, allocations: 12 kB / 355.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008023/0.3521, allocations: 139.9 kB / 355.9 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.3522, allocations: 52.36 kB / 356 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.3523, allocations: 16 kB / 356 MB, free: 5.547 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005418/0.3528, allocations: 354.8 kB / 356.4 MB, free: 5.203 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3528, allocations: 0 / 356.4 MB, free: 5.203 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006266/0.3535, allocations: 167.8 kB / 356.5 MB, free: 5.039 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 (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.3536, allocations: 115.1 kB / 356.6 MB, free: 4.918 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002651/0.3563, allocations: 1.11 MB / 357.7 MB, free: 3.777 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3563, allocations: 0 / 357.7 MB, free: 3.777 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.3575, allocations: 475 kB / 358.2 MB, free: 3.312 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006105/0.3581, allocations: 101.7 kB / 358.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.3607, allocations: 1.487 MB / 359.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.3611, allocations: 0.8552 MB / 360.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004104/0.3616, allocations: 76.66 kB / 360.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/0.3618, allocations: 51.42 kB / 360.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3618, allocations: 0 / 360.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of Templates: time 0.01256/0.3743, allocations: 7.383 MB / 368.2 MB, free: 9.301 MB / 302.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)