Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG") translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001492/0.001492, allocations: 182.1 kB / 13.64 MB, free: 1.676 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.38/1.38, allocations: 194.3 MB / 208.4 MB, free: 6.699 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.001594/0.001594, allocations: 112.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.869e-05/3.871e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07897/0.07903, allocations: 44.5 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2881/0.3672, allocations: 77.71 MB / 427.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.3674, allocations: 69.64 kB / 427.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04437/0.4118, allocations: 26.8 MB / 454 MB, free: 11.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4119, allocations: 0 / 454 MB, free: 11.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.4119, allocations: 12 kB / 454 MB, free: 11.33 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.001248/0.4132, allocations: 1.005 MB / 455 MB, free: 10.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.4132, allocations: 8.031 kB / 455 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.4134, allocations: 86.97 kB / 455.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005992/0.414, allocations: 417.9 kB / 455.5 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.4141, allocations: 19.75 kB / 455.5 MB, free: 9.762 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.741e-05/0.4141, allocations: 23.95 kB / 455.6 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007782/0.4149, allocations: 0.4964 MB / 456.1 MB, free: 9.352 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.415, allocations: 4 kB / 456.1 MB, free: 9.348 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.325e-05/0.415, allocations: 11.88 kB / 456.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.415, allocations: 0 / 456.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.4155, allocations: 359.5 kB / 456.4 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.4169, allocations: 0.9261 MB / 457.4 MB, free: 8.312 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005871/0.4175, allocations: 0.4937 MB / 457.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005117/0.418, allocations: 487 kB / 458.3 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.418, allocations: 0 / 458.3 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007553/0.4188, allocations: 0.6341 MB / 459 MB, free: 7.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.4188, allocations: 0 / 459 MB, free: 7.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001565/0.4204, allocations: 1.137 MB / 460.1 MB, free: 6.215 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001824/0.4206, allocations: 284.8 kB / 460.4 MB, free: 5.898 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.4219, allocations: 1.022 MB / 461.4 MB, free: 5.055 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.901e-05/0.4219, allocations: 40.89 kB / 461.4 MB, free: 5.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.4221, allocations: 153.6 kB / 461.6 MB, free: 4.891 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.711e-05/0.4222, allocations: 67.81 kB / 461.6 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.4222, allocations: 10.31 kB / 461.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.4224, allocations: 339.9 kB / 462 MB, free: 4.496 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.4228, allocations: 340.3 kB / 462.3 MB, free: 4.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004434/0.4233, allocations: 351.4 kB / 462.7 MB, free: 4.035 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005346/0.4238, allocations: 496.3 kB / 463.2 MB, free: 3.602 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4239, allocations: 0 / 463.2 MB, free: 3.602 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001438/0.4253, allocations: 1.097 MB / 464.2 MB, free: 2.688 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.4255, allocations: 242.4 kB / 464.5 MB, free: 2.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4255, allocations: 4 kB / 464.5 MB, free: 2.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.4255, allocations: 4 kB / 464.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.776e-05/0.4256, allocations: 3.938 kB / 464.5 MB, free: 2.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.4256, allocations: 3.953 kB / 464.5 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.4259, allocations: 43.81 kB / 464.5 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.4261, allocations: 127.8 kB / 464.7 MB, free: 2.246 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete 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.0004123/0.4265, allocations: 415.8 kB / 465.1 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.4267, allocations: 83.06 kB / 465.2 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002324/0.4269, allocations: 149.5 kB / 465.3 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4269, allocations: 3.938 kB / 465.3 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4269, allocations: 0 / 465.3 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4269, allocations: 7.953 kB / 465.3 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.4293, allocations: 1.928 MB / 467.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4293, allocations: 0 / 467.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.578e-06/0.4293, allocations: 4 kB / 467.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.4293, allocations: 0 / 467.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.795e-05/0.4294, allocations: 35.86 kB / 467.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4294, allocations: 3.953 kB / 467.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4294, allocations: 0 / 467.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.4311, allocations: 1.361 MB / 468.6 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008365/0.4319, allocations: 0.5534 MB / 469.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.4321, allocations: 59.97 kB / 469.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.4324, allocations: 39.88 kB / 469.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004004/0.4328, allocations: 235.7 kB / 469.5 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.433, allocations: 131.9 kB / 469.7 MB, free: 13.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001136/0.4341, allocations: 0.8499 MB / 470.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4341, allocations: 4 kB / 470.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004282/0.4346, allocations: 120 kB / 470.6 MB, free: 12.93 MB / 330.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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * 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.0002468/0.4348, allocations: 192.4 kB / 470.8 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.4364, allocations: 1.511 MB / 472.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4365, allocations: 0 / 472.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.4375, allocations: 1.144 MB / 473.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.4385, allocations: 257 kB / 473.7 MB, free: 9.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.441, allocations: 1.704 MB / 475.4 MB, free: 7.926 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007328/0.4417, allocations: 1.035 MB / 476.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.4418, allocations: 37.5 kB / 476.5 MB, free: 6.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.4419, allocations: 15.44 kB / 476.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4419, allocations: 0 / 476.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of Templates: time 0.01761/0.4595, allocations: 12.64 MB / 489.1 MB, free: 9.906 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1)