Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG") translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0014/0.0014, allocations: 157.7 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.21/1.21, allocations: 170.7 MB / 178.7 MB, free: 7.043 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.001593/0.001593, allocations: 102.6 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.878e-05/1.881e-05, allocations: 4 kB / 262.2 MB, free: 3.062 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.205, allocations: 38.76 MB / 301 MB, free: 39.12 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08637/0.2915, allocations: 71.73 MB / 372.7 MB, free: 7.918 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.2917, allocations: 63.97 kB / 372.8 MB, free: 7.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0543/0.346, allocations: 26.55 MB / 399.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3461, allocations: 0 / 399.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.349e-05/0.3461, allocations: 8 kB / 399.3 MB, free: 13.48 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.001561/0.3477, allocations: 1.008 MB / 400.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3478, allocations: 12.03 kB / 400.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.348, allocations: 86.97 kB / 400.4 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007109/0.3488, allocations: 407.7 kB / 400.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.3488, allocations: 19.98 kB / 400.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.809e-05/0.3489, allocations: 27.94 kB / 400.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005491/0.3495, allocations: 336.1 kB / 401.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007439/0.3502, allocations: 466.3 kB / 401.7 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3503, allocations: 0 / 401.7 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.3503, allocations: 11.95 kB / 401.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.3504, allocations: 3.984 kB / 401.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.3521, allocations: 0.8873 MB / 402.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.3527, allocations: 482.7 kB / 403 MB, free: 9.578 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005445/0.3533, allocations: 468.9 kB / 403.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.3533, allocations: 8 kB / 403.5 MB, free: 9.109 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007442/0.3541, allocations: 0.6189 MB / 404.1 MB, free: 8.453 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.295e-06/0.3541, allocations: 0 / 404.1 MB, free: 8.453 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001388/0.3555, allocations: 0.8516 MB / 405 MB, free: 7.598 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/0.3557, allocations: 283.3 kB / 405.2 MB, free: 7.266 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/0.3572, allocations: 0.976 MB / 406.2 MB, free: 6.277 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.773e-05/0.3573, allocations: 41.69 kB / 406.3 MB, free: 6.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3574, allocations: 138 kB / 406.4 MB, free: 6.094 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.3576, allocations: 75.22 kB / 406.5 MB, free: 6.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.677e-05/0.3576, allocations: 11.98 kB / 406.5 MB, free: 6.008 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3577, allocations: 338.8 kB / 406.8 MB, free: 5.668 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.3582, allocations: 331.8 kB / 407.1 MB, free: 5.344 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.3586, allocations: 326.2 kB / 407.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.3589, allocations: 231.8 kB / 407.7 MB, free: 4.801 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3589, allocations: 0 / 407.7 MB, free: 4.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001215/0.3602, allocations: 0.8188 MB / 408.5 MB, free: 3.977 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001914/0.3604, allocations: 245.1 kB / 408.7 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3604, allocations: 0 / 408.7 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.3604, allocations: 4 kB / 408.7 MB, free: 3.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.691e-05/0.3604, allocations: 0 / 408.7 MB, free: 3.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.3604, allocations: 3.984 kB / 408.7 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.3608, allocations: 47.75 kB / 408.8 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.361, allocations: 128.4 kB / 408.9 MB, free: 3.516 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.0004022/0.3614, allocations: 406 kB / 409.3 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.3615, allocations: 90.97 kB / 409.4 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.3618, allocations: 144 kB / 409.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3618, allocations: 3.984 kB / 409.6 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3619, allocations: 4 kB / 409.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.3619, allocations: 0 / 409.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.3641, allocations: 1.576 MB / 411.1 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3641, allocations: 4 kB / 411.1 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.375e-05/0.3641, allocations: 4 kB / 411.1 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3641, allocations: 0 / 411.1 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/0.3642, allocations: 31.98 kB / 411.2 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3642, allocations: 0 / 411.2 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3642, allocations: 0 / 411.2 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.3656, allocations: 1.045 MB / 412.2 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000838/0.3665, allocations: 0.5582 MB / 412.8 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.3666, allocations: 63.95 kB / 412.8 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.367, allocations: 35.95 kB / 412.9 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003887/0.3674, allocations: 235.7 kB / 413.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/0.3675, allocations: 127.9 kB / 413.2 MB, free: 15.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001172/0.3687, allocations: 0.8031 MB / 414 MB, free: 14.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3687, allocations: 0 / 414 MB, free: 14.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005021/0.3692, allocations: 116 kB / 414.1 MB, free: 14.15 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.0002844/0.3695, allocations: 189.7 kB / 414.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.3711, allocations: 1.464 MB / 415.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3711, allocations: 7.844 kB / 415.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.3721, allocations: 1.109 MB / 416.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.3733, allocations: 255.8 kB / 417.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.3761, allocations: 1.669 MB / 418.8 MB, free: 9.266 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009982/0.3772, allocations: 1.027 MB / 419.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002077/0.3774, allocations: 37.8 kB / 419.9 MB, free: 8.176 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.954e-05/0.3774, allocations: 23.44 kB / 419.9 MB, free: 8.152 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.3774, allocations: 0 / 419.9 MB, free: 8.152 MB / 330.7 MB Notification: Performance of Templates: time 0.1693/0.5467, allocations: 12.2 MB / 432.1 MB, free: 100.4 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1)