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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0009562/0.0009563, allocations: 179.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.149/1.149, allocations: 194.5 MB / 211.6 MB, free: 3.055 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001555/0.001555, allocations: 112.3 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002946, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07681/0.07712, allocations: 44.49 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2122/0.2894, allocations: 75.37 MB / 430.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001774/0.2896, allocations: 75.45 kB / 430.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02272/0.3123, allocations: 10.21 MB / 440.7 MB, free: 5.582 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3124, allocations: 0 / 440.7 MB, free: 5.582 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.425e-05/0.3124, allocations: 21.39 kB / 440.7 MB, free: 5.562 MB / 314.7 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.002163/0.3146, allocations: 1.131 MB / 441.9 MB, free: 4.422 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.3146, allocations: 16.02 kB / 441.9 MB, free: 4.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.3148, allocations: 71.16 kB / 442 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.3152, allocations: 430.5 kB / 442.4 MB, free: 3.957 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.741e-05/0.3152, allocations: 43.06 kB / 442.4 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.819e-05/0.3153, allocations: 54.38 kB / 442.5 MB, free: 3.895 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.317, allocations: 1.001 MB / 443.5 MB, free: 3.066 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.3171, allocations: 4 kB / 443.5 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.3171, allocations: 21.06 kB / 443.5 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.3172, allocations: 19.98 kB / 443.5 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/0.3195, allocations: 1.128 MB / 444.6 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003553/0.3231, allocations: 3.142 MB / 447.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.3252, allocations: 1.032 MB / 448.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.125e-05/0.3253, allocations: 16.48 kB / 448.8 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.3264, allocations: 0.5211 MB / 449.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.635e-06/0.3264, allocations: 0 / 449.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.002996/0.3294, allocations: 1.256 MB / 450.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.3296, allocations: 273.5 kB / 450.9 MB, free: 11.97 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005705/0.3302, allocations: 453 kB / 451.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.3302, allocations: 37.7 kB / 451.4 MB, free: 11.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.3304, allocations: 339.6 kB / 451.7 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.3306, allocations: 173.4 kB / 451.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/0.3306, allocations: 17.31 kB / 451.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3308, allocations: 366.8 kB / 452.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.3319, allocations: 457.7 kB / 452.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.3331, allocations: 0.7117 MB / 453.4 MB, free: 9.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.3343, allocations: 0.5246 MB / 453.9 MB, free: 8.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.3343, allocations: 4 kB / 453.9 MB, free: 8.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002602/0.3369, allocations: 1.236 MB / 455.2 MB, free: 7.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.843e-05/0.337, allocations: 75.39 kB / 455.2 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.337, allocations: 4 kB / 455.2 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.337, allocations: 12 kB / 455.2 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.3381, allocations: 247.7 kB / 455.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.3381, allocations: 15.94 kB / 455.5 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.3391, allocations: 215.1 kB / 455.7 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.085e-05/0.3392, allocations: 35.56 kB / 455.7 MB, free: 6.918 MB / 330.7 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.0002972/0.3395, allocations: 215.6 kB / 456 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/0.3396, allocations: 59.34 kB / 456 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.3397, allocations: 65.55 kB / 456.1 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.3397, allocations: 4 kB / 456.1 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3397, allocations: 0 / 456.1 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.3397, allocations: 15.97 kB / 456.1 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.3428, allocations: 1.748 MB / 457.8 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3428, allocations: 0 / 457.8 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.3436, allocations: 179.8 kB / 458 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.3436, allocations: 0 / 458 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.3436, allocations: 11.98 kB / 458 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.3436, allocations: 4 kB / 458 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3437, allocations: 0 / 458 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/0.3467, allocations: 1.462 MB / 459.5 MB, free: 3.078 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.3469, allocations: 140.3 kB / 459.6 MB, free: 2.922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.777e-05/0.347, allocations: 15.94 kB / 459.7 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007433/0.3477, allocations: 139.9 kB / 459.8 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3479, allocations: 52.36 kB / 459.8 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.3479, allocations: 19.98 kB / 459.9 MB, free: 2.699 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004603/0.3484, allocations: 346.9 kB / 460.2 MB, free: 2.363 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3484, allocations: 0 / 460.2 MB, free: 2.363 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005817/0.349, allocations: 171.7 kB / 460.4 MB, free: 2.195 MB / 330.7 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.0001632/0.3491, allocations: 122.8 kB / 460.5 MB, free: 2.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002333/0.3515, allocations: 1.114 MB / 461.6 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3515, allocations: 0 / 461.6 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3525, allocations: 479.3 kB / 462.1 MB, free: 476 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.3529, allocations: 79.75 kB / 462.1 MB, free: 400 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3551, allocations: 1.416 MB / 463.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.3555, allocations: 0.8746 MB / 464.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004277/0.3559, allocations: 80.66 kB / 464.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.3561, allocations: 47.42 kB / 464.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3561, allocations: 0 / 464.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of Templates: time 0.01132/0.3674, allocations: 7.023 MB / 471.6 MB, free: 6.992 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.makefile (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)