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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.001138/0.001138, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.382/1.382, allocations: 170.6 MB / 183.8 MB, free: 11.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001675/0.001675, allocations: 107.5 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.644e-05, allocations: 7.984 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07753/0.07757, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2807/0.3584, allocations: 69.98 MB / 377.6 MB, free: 6.324 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001779/0.3586, allocations: 74.83 kB / 377.7 MB, free: 6.285 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02773/0.3863, allocations: 10.32 MB / 388 MB, free: 13.44 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3864, allocations: 0 / 388 MB, free: 13.44 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.676e-05/0.3864, allocations: 16 kB / 388 MB, free: 13.43 MB / 282.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.002339/0.3888, allocations: 1.068 MB / 389.1 MB, free: 12.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3888, allocations: 8.031 kB / 389.1 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.389, allocations: 75.16 kB / 389.2 MB, free: 12.26 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005693/0.3895, allocations: 422.8 kB / 389.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.753e-05/0.3896, allocations: 48.12 kB / 389.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.3897, allocations: 54.5 kB / 389.7 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.3908, allocations: 0.731 MB / 390.4 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.3908, allocations: 8 kB / 390.4 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.389e-05/0.3909, allocations: 19.31 kB / 390.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.3909, allocations: 20 kB / 390.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009676/0.3919, allocations: 0.5986 MB / 391.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.3966, allocations: 3.162 MB / 394.2 MB, free: 8.242 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.3978, allocations: 0.6812 MB / 394.9 MB, free: 7.723 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005001/0.3983, allocations: 302.7 kB / 395.2 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.3984, allocations: 20 kB / 395.2 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005269/0.3989, allocations: 323.1 kB / 395.5 MB, free: 7.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.156e-06/0.3989, allocations: 0 / 395.5 MB, free: 7.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009019/0.3998, allocations: 0.504 MB / 396 MB, free: 6.938 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.4, allocations: 273 kB / 396.3 MB, free: 6.613 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.4005, allocations: 440.3 kB / 396.7 MB, free: 6.273 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.39e-05/0.4005, allocations: 37.2 kB / 396.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.4008, allocations: 340.5 kB / 397.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.4009, allocations: 169.8 kB / 397.3 MB, free: 5.832 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.401, allocations: 12.94 kB / 397.3 MB, free: 5.828 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4012, allocations: 362.5 kB / 397.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004083/0.4016, allocations: 258.7 kB / 397.9 MB, free: 5.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006202/0.4022, allocations: 0.4916 MB / 398.4 MB, free: 4.867 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005194/0.4027, allocations: 334.5 kB / 398.7 MB, free: 4.629 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.4028, allocations: 4 kB / 398.7 MB, free: 4.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001325/0.4041, allocations: 0.8248 MB / 399.5 MB, free: 4.008 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/0.4042, allocations: 59.41 kB / 399.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.4042, allocations: 8.844 kB / 399.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.426e-05/0.4042, allocations: 12 kB / 399.6 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.4053, allocations: 254.9 kB / 399.9 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.877e-05/0.4054, allocations: 11.94 kB / 399.9 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.4065, allocations: 221.8 kB / 400.1 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.069e-05/0.4065, allocations: 34.44 kB / 400.1 MB, free: 3.43 MB / 282.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 () * 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.0001977/0.4067, allocations: 161 kB / 400.3 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.4069, allocations: 55.34 kB / 400.3 MB, free: 3.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.407, allocations: 63.06 kB / 400.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4071, allocations: 7.984 kB / 400.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.4071, allocations: 3.938 kB / 400.4 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4071, allocations: 0 / 400.4 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.4091, allocations: 1.386 MB / 401.8 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4092, allocations: 0 / 401.8 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000801/0.41, allocations: 179.4 kB / 402 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/0.41, allocations: 7.953 kB / 402 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.41, allocations: 14.61 kB / 402 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.41, allocations: 4 kB / 402 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4101, allocations: 0 / 402 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.4114, allocations: 0.8936 MB / 402.9 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.4115, allocations: 139.3 kB / 403 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.973e-05/0.4116, allocations: 15.2 kB / 403 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007822/0.4124, allocations: 143.1 kB / 403.2 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.4126, allocations: 54.05 kB / 403.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.4126, allocations: 15.17 kB / 403.2 MB, free: 1.047 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003502/0.413, allocations: 327.3 kB / 403.6 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.413, allocations: 0 / 403.6 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006152/0.4136, allocations: 176.2 kB / 403.7 MB, free: 0.6562 MB / 282.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) * 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.000236/0.4138, allocations: 129.7 kB / 403.9 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.415, allocations: 0.7102 MB / 404.6 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.415, allocations: 0.5625 kB / 404.6 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004496/0.4155, allocations: 285.9 kB / 404.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.416, allocations: 74.94 kB / 404.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.4177, allocations: 0.8513 MB / 405.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.4182, allocations: 0.8748 MB / 406.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004488/0.4186, allocations: 76.66 kB / 406.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.4188, allocations: 51.11 kB / 406.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4189, allocations: 0 / 406.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of Templates: time 0.01349/0.4323, allocations: 7.142 MB / 413.9 MB, free: 6.895 MB / 298.7 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)