Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.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.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008152/0.008152, allocations: 166.5 kB / 15.11 MB, free: 5.98 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.359/1.359, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001677/0.001677, allocations: 114.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002977/0.0002977, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1842, allocations: 38.76 MB / 312.9 MB, free: 38.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08319/0.2674, allocations: 72.53 MB / 385.4 MB, free: 1.996 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.2677, allocations: 67.97 kB / 385.5 MB, free: 1.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06305/0.3307, allocations: 33.11 MB / 418.6 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3308, allocations: 0 / 418.6 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.3308, allocations: 12 kB / 418.6 MB, free: 0.8477 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.1462/0.477, allocations: 1.129 MB / 419.7 MB, free: 86.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.4771, allocations: 9.031 kB / 419.7 MB, free: 86.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002775/0.4774, allocations: 85.41 kB / 419.8 MB, free: 86.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000732/0.4781, allocations: 418 kB / 420.2 MB, free: 86.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.4782, allocations: 18.3 kB / 420.2 MB, free: 86.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.184e-05/0.4783, allocations: 25.25 kB / 420.3 MB, free: 86.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.4794, allocations: 0.4888 MB / 420.8 MB, free: 86.44 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.4794, allocations: 0 / 420.8 MB, free: 86.44 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.117e-05/0.4795, allocations: 14.39 kB / 420.8 MB, free: 86.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.4795, allocations: 5.125 kB / 420.8 MB, free: 86.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006995/0.4802, allocations: 355.5 kB / 421.1 MB, free: 86.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.482, allocations: 0.9301 MB / 422 MB, free: 86.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006539/0.4827, allocations: 0.4911 MB / 422.5 MB, free: 86.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.4827, allocations: 4.812 kB / 422.5 MB, free: 86.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007732/0.4835, allocations: 0.6302 MB / 423.2 MB, free: 85.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.4835, allocations: 0 / 423.2 MB, free: 85.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002235/0.4857, allocations: 1.723 MB / 424.9 MB, free: 85.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.4859, allocations: 287 kB / 425.2 MB, free: 85.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.4872, allocations: 1.019 MB / 426.2 MB, free: 84.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.4872, allocations: 39.86 kB / 426.2 MB, free: 84.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.184e-05/0.4873, allocations: 144.3 kB / 426.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.237e-05/0.4874, allocations: 77.73 kB / 426.5 MB, free: 84.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.4875, allocations: 11.09 kB / 426.5 MB, free: 84.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.855e-05/0.4876, allocations: 339.3 kB / 426.8 MB, free: 84.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004882/0.4881, allocations: 333.9 kB / 427.1 MB, free: 84.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005481/0.4886, allocations: 370.5 kB / 427.5 MB, free: 84.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000492/0.4891, allocations: 498.6 kB / 428 MB, free: 84.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.4891, allocations: 0 / 428 MB, free: 84.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001423/0.4906, allocations: 1.085 MB / 429.1 MB, free: 83.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.4907, allocations: 252.8 kB / 429.3 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4907, allocations: 1.312 kB / 429.3 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.4908, allocations: 10.59 kB / 429.3 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.72e-05/0.4908, allocations: 2.062 kB / 429.3 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.4908, allocations: 4.75 kB / 429.3 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.4911, allocations: 45.08 kB / 429.4 MB, free: 83.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001676/0.4913, allocations: 121.5 kB / 429.5 MB, free: 83.54 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0008108/0.4921, allocations: 0.7527 MB / 430.2 MB, free: 83.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.4923, allocations: 92.53 kB / 430.3 MB, free: 83.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.4925, allocations: 142.6 kB / 430.5 MB, free: 82.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.4925, allocations: 4.906 kB / 430.5 MB, free: 82.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4925, allocations: 2.719 kB / 430.5 MB, free: 82.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4925, allocations: 1.094 kB / 430.5 MB, free: 82.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.4947, allocations: 1.937 MB / 432.4 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4947, allocations: 0 / 432.4 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.756e-06/0.4947, allocations: 3.656 kB / 432.4 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.4947, allocations: 2.484 kB / 432.4 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.105e-05/0.4948, allocations: 34 kB / 432.5 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4948, allocations: 0 / 432.5 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4948, allocations: 0 / 432.5 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.4963, allocations: 1.361 MB / 433.8 MB, free: 81.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007355/0.497, allocations: 0.5607 MB / 434.4 MB, free: 80.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.4972, allocations: 61.38 kB / 434.4 MB, free: 80.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.4975, allocations: 39.2 kB / 434.5 MB, free: 80.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/0.4978, allocations: 233.2 kB / 434.7 MB, free: 80.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.498, allocations: 133.1 kB / 434.8 MB, free: 80.78 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009624/0.4989, allocations: 0.8514 MB / 435.7 MB, free: 80.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4989, allocations: 0 / 435.7 MB, free: 80.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004514/0.4994, allocations: 128 kB / 435.8 MB, free: 80.4 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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 Backend phase and start with SimCode phase: time 0.0002832/0.4997, allocations: 186.7 kB / 436 MB, free: 80.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.5012, allocations: 1.52 MB / 437.5 MB, free: 79.37 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5012, allocations: 0 / 437.5 MB, free: 79.37 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009021/0.5022, allocations: 1.139 MB / 438.6 MB, free: 78.55 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009465/0.5031, allocations: 257.1 kB / 438.9 MB, free: 78.51 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.5058, allocations: 2.116 MB / 441 MB, free: 77.49 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005468/0.5063, allocations: 1.029 MB / 442 MB, free: 76.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.5065, allocations: 37.33 kB / 442.1 MB, free: 76.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.5065, allocations: 17.94 kB / 442.1 MB, free: 76.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.183e-06/0.5065, allocations: 0 / 442.1 MB, free: 76.68 MB / 314.7 MB Notification: Performance of Templates: time 0.01383/0.5204, allocations: 12.64 MB / 454.7 MB, free: 65.92 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1)