Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.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.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009934/0.0009934, allocations: 179.5 kB / 16.38 MB, free: 5.762 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.209/1.209, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001526/0.001526, allocations: 121.7 kB / 256.9 MB, free: 4.336 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.0003038, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07505/0.07537, allocations: 44.51 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2268/0.3022, allocations: 77.82 MB / 432.9 MB, free: 11.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.3024, allocations: 68.91 kB / 432.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05514/0.3576, allocations: 33.23 MB / 466.2 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3576, allocations: 0 / 466.2 MB, free: 13.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.3576, allocations: 8 kB / 466.2 MB, free: 13.22 MB / 346.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.001116/0.3588, allocations: 1.128 MB / 467.3 MB, free: 12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.3588, allocations: 8.031 kB / 467.3 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.3589, allocations: 86.97 kB / 467.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005995/0.3596, allocations: 419.6 kB / 467.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.3596, allocations: 16 kB / 467.8 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/0.3597, allocations: 27.98 kB / 467.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.3604, allocations: 0.4982 MB / 468.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3604, allocations: 3.938 kB / 468.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.3605, allocations: 12 kB / 468.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.3605, allocations: 7.984 kB / 468.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004969/0.361, allocations: 360.1 kB / 468.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3625, allocations: 0.9301 MB / 469.7 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005991/0.3631, allocations: 0.4986 MB / 470.2 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.3631, allocations: 8 kB / 470.2 MB, free: 9.027 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007415/0.3638, allocations: 0.6276 MB / 470.8 MB, free: 8.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 1.963e-06/0.3639, allocations: 0 / 470.8 MB, free: 8.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002196/0.3661, allocations: 1.747 MB / 472.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/0.3662, allocations: 287.2 kB / 472.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.3675, allocations: 1.023 MB / 473.8 MB, free: 5.148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.706e-05/0.3676, allocations: 49.69 kB / 473.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.3677, allocations: 142 kB / 474 MB, free: 4.949 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.223e-05/0.3678, allocations: 71.16 kB / 474.1 MB, free: 4.879 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.3678, allocations: 15.98 kB / 474.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3679, allocations: 342.8 kB / 474.5 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.3684, allocations: 343.8 kB / 474.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/0.3689, allocations: 378.3 kB / 475.2 MB, free: 3.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004995/0.3694, allocations: 0.4928 MB / 475.7 MB, free: 3.266 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3694, allocations: 0 / 475.7 MB, free: 3.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001374/0.3708, allocations: 1.109 MB / 476.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.371, allocations: 245.1 kB / 477 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.371, allocations: 0 / 477 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.371, allocations: 0 / 477 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.581e-05/0.371, allocations: 4 kB / 477 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.371, allocations: 3.938 kB / 477 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.3713, allocations: 51.88 kB / 477.1 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.3715, allocations: 127.9 kB / 477.2 MB, free: 1.645 MB / 346.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.0007399/0.3722, allocations: 0.7641 MB / 477.9 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.3723, allocations: 83.06 kB / 478 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.3725, allocations: 147.5 kB / 478.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3725, allocations: 0 / 478.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3726, allocations: 7.938 kB / 478.2 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3726, allocations: 4 kB / 478.2 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.3748, allocations: 1.95 MB / 480.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3748, allocations: 0 / 480.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.418e-06/0.3749, allocations: 3.984 kB / 480.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3749, allocations: 0 / 480.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.835e-05/0.3749, allocations: 35.98 kB / 480.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.375, allocations: 4 kB / 480.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.375, allocations: 0 / 480.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.3766, allocations: 1.388 MB / 481.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008085/0.3774, allocations: 0.5504 MB / 482.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.3775, allocations: 55.97 kB / 482.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.3778, allocations: 35.97 kB / 482.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003549/0.3782, allocations: 235.7 kB / 482.4 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.3783, allocations: 127.9 kB / 482.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00103/0.3793, allocations: 0.8616 MB / 483.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3794, allocations: 4 kB / 483.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004264/0.3798, allocations: 120 kB / 483.5 MB, free: 11.05 MB / 362.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.0002365/0.38, allocations: 184.3 kB / 483.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.3817, allocations: 1.531 MB / 485.3 MB, free: 9.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3817, allocations: 0 / 485.3 MB, free: 9.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.3827, allocations: 1.153 MB / 486.4 MB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008818/0.3836, allocations: 260.4 kB / 486.7 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/0.3864, allocations: 2.127 MB / 488.8 MB, free: 5.594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007137/0.3871, allocations: 1.038 MB / 489.8 MB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.3873, allocations: 37.5 kB / 489.9 MB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.217e-05/0.3873, allocations: 15.44 kB / 489.9 MB, free: 4.477 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3873, allocations: 3.938 kB / 489.9 MB, free: 4.473 MB / 362.7 MB Notification: Performance of Templates: time 0.01528/0.4026, allocations: 12.67 MB / 0.4908 GB, free: 7.547 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1)