Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001716/0.001716, allocations: 182.7 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.613/1.613, allocations: 194.3 MB / 208.4 MB, free: 6.703 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.001686/0.001686, allocations: 118.2 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.713e-05/2.716e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08545/0.08549, allocations: 44.51 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.433, allocations: 78.07 MB / 427.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.4333, allocations: 66.3 kB / 427.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06291/0.4962, allocations: 38.78 MB / 466.4 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4963, allocations: 0 / 466.4 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.375e-05/0.4963, allocations: 16 kB / 466.4 MB, free: 0.5039 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001406/0.4977, allocations: 1.318 MB / 467.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4978, allocations: 12.03 kB / 467.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.498, allocations: 134.4 kB / 467.8 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007395/0.4987, allocations: 0.5163 MB / 468.3 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/0.4988, allocations: 19.44 kB / 468.4 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.4989, allocations: 31.19 kB / 468.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009511/0.4998, allocations: 0.6138 MB / 469 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.4999, allocations: 0 / 469 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.999e-05/0.4999, allocations: 15.5 kB / 469 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.4999, allocations: 0 / 469 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006064/0.5005, allocations: 473.5 kB / 469.5 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.5025, allocations: 1.174 MB / 470.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.5032, allocations: 0.6946 MB / 471.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006834/0.5039, allocations: 0.6776 MB / 472 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.798e-06/0.5039, allocations: 4 kB / 472 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008999/0.5048, allocations: 0.7388 MB / 472.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/0.5048, allocations: 0 / 472.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.001833/0.5067, allocations: 1.418 MB / 474.2 MB, free: 9.754 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002028/0.5069, allocations: 336.9 kB / 474.5 MB, free: 9.363 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/0.5091, allocations: 1.619 MB / 476.1 MB, free: 7.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.143e-05/0.5091, allocations: 41.7 kB / 476.2 MB, free: 7.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.5094, allocations: 250.3 kB / 476.4 MB, free: 7.434 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.845e-05/0.5095, allocations: 71.16 kB / 476.5 MB, free: 7.363 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.5096, allocations: 12 kB / 476.5 MB, free: 7.352 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.5097, allocations: 382.7 kB / 476.9 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005755/0.5103, allocations: 451.8 kB / 477.3 MB, free: 6.527 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/0.5109, allocations: 455.8 kB / 477.8 MB, free: 6.082 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005554/0.5115, allocations: 0.5839 MB / 478.3 MB, free: 5.449 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.5115, allocations: 0 / 478.3 MB, free: 5.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001684/0.5132, allocations: 1.349 MB / 479.7 MB, free: 4.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002025/0.5134, allocations: 297.5 kB / 480 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.5134, allocations: 0 / 480 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.5134, allocations: 0 / 480 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.797e-05/0.5135, allocations: 11.88 kB / 480 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.5135, allocations: 0 / 480 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.5138, allocations: 47.95 kB / 480 MB, free: 3.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.514, allocations: 120.2 kB / 480.2 MB, free: 3.527 MB / 330.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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.000399/0.5144, allocations: 467.7 kB / 480.6 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.5146, allocations: 134.4 kB / 480.8 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004215/0.515, allocations: 263.9 kB / 481 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.515, allocations: 0 / 481 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.515, allocations: 0 / 481 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.515, allocations: 3.984 kB / 481 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/0.518, allocations: 2.395 MB / 483.4 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.518, allocations: 0 / 483.4 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.047e-05/0.518, allocations: 0 / 483.4 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.518, allocations: 11.89 kB / 483.4 MB, free: 96 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.719e-05/0.5181, allocations: 35.98 kB / 483.5 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5181, allocations: 0 / 483.5 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5181, allocations: 0 / 483.5 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.5201, allocations: 1.634 MB / 485.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.5211, allocations: 0.6786 MB / 485.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.5213, allocations: 67.91 kB / 485.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.5216, allocations: 39.88 kB / 485.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005759/0.5222, allocations: 379.6 kB / 486.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/0.5224, allocations: 131.9 kB / 486.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002063/0.5245, allocations: 1.332 MB / 487.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5245, allocations: 7.938 kB / 487.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006796/0.5252, allocations: 148 kB / 487.9 MB, free: 11.56 MB / 346.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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.0003136/0.5255, allocations: 185.7 kB / 488 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.5276, allocations: 1.913 MB / 490 MB, free: 9.359 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5277, allocations: 0 / 490 MB, free: 9.359 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.529, allocations: 1.432 MB / 491.4 MB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.5301, allocations: 306.4 kB / 491.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003718/0.5339, allocations: 2.518 MB / 494.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.535, allocations: 1.227 MB / 495.4 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.5352, allocations: 37.5 kB / 495.5 MB, free: 3.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.5352, allocations: 15.44 kB / 495.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of SimCode: time 4.3e-07/0.5352, allocations: 0 / 495.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of Templates: time 0.02341/0.5587, allocations: 15.19 MB / 0.4987 GB, free: 4.109 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1)