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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001798/0.001798, allocations: 185.8 kB / 8.135 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.19/1.19, allocations: 194.2 MB / 202.8 MB, free: 8.648 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.00208/0.00208, allocations: 110.5 kB / 247.7 MB, free: 6.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.884e-06/7.914e-06, allocations: 0 / 297.6 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 44.5 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.3125, allocations: 77.32 MB / 419.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001647/0.3127, allocations: 64.16 kB / 419.5 MB, free: 17.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.06628/0.379, allocations: 37.9 MB / 457.3 MB, free: 2.633 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.836e-05/0.3791, allocations: 12 kB / 457.4 MB, free: 2.621 MB / 330.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.001758/0.3809, allocations: 1.323 MB / 458.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3809, allocations: 12.03 kB / 458.7 MB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002935/0.3812, allocations: 134.4 kB / 458.8 MB, free: 1.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009229/0.3821, allocations: 0.5147 MB / 459.3 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.77e-05/0.3822, allocations: 23.08 kB / 459.4 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.405e-05/0.3823, allocations: 25.12 kB / 459.4 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006801/0.383, allocations: 460.3 kB / 459.8 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.384, allocations: 0.6078 MB / 460.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3841, allocations: 4 kB / 460.4 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.693e-05/0.3841, allocations: 13.48 kB / 460.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3842, allocations: 4 kB / 460.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.3867, allocations: 1.153 MB / 461.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000795/0.3876, allocations: 0.6918 MB / 462.3 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007478/0.3883, allocations: 0.6849 MB / 463 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.3883, allocations: 12.03 kB / 463 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008741/0.3892, allocations: 0.7056 MB / 463.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/0.3892, allocations: 0 / 463.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.00141/0.3907, allocations: 0.948 MB / 464.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001957/0.3909, allocations: 329 kB / 465 MB, free: 11.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.3939, allocations: 1.574 MB / 466.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.394, allocations: 41.7 kB / 466.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.3942, allocations: 162.4 kB / 466.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.3943, allocations: 67.17 kB / 466.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.984e-05/0.3944, allocations: 12 kB / 466.8 MB, free: 9.953 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002642/0.3946, allocations: 394.6 kB / 467.2 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000657/0.3953, allocations: 447.8 kB / 467.7 MB, free: 9.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000625/0.3959, allocations: 447.8 kB / 468.1 MB, free: 8.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.3964, allocations: 312.8 kB / 468.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3964, allocations: 0 / 468.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001335/0.3977, allocations: 0.9023 MB / 469.3 MB, free: 7.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3977, allocations: 4 kB / 469.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3978, allocations: 0 / 469.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3978, allocations: 0 / 469.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.008e-05/0.3978, allocations: 4 kB / 469.3 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.3978, allocations: 7.922 kB / 469.3 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004036/0.3982, allocations: 47.81 kB / 469.4 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001669/0.3984, allocations: 125.9 kB / 469.5 MB, free: 7.285 MB / 346.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.0004381/0.3989, allocations: 459.5 kB / 469.9 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.3991, allocations: 134.4 kB / 470.1 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005653/0.3996, allocations: 243.9 kB / 470.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3996, allocations: 0 / 470.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3997, allocations: 4 kB / 470.3 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3997, allocations: 7.984 kB / 470.3 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.4025, allocations: 1.877 MB / 472.2 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4025, allocations: 4 kB / 472.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.024e-05/0.4025, allocations: 0 / 472.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4025, allocations: 0 / 472.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.259e-05/0.4026, allocations: 31.98 kB / 472.2 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4026, allocations: 4 kB / 472.2 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4026, allocations: 3.906 kB / 472.2 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001505/0.4041, allocations: 1.136 MB / 473.4 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.4053, allocations: 0.694 MB / 474.1 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.4056, allocations: 63.95 kB / 474.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.406, allocations: 43.81 kB / 474.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006119/0.4066, allocations: 383.6 kB / 474.5 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.4068, allocations: 135.9 kB / 474.7 MB, free: 1.938 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001999/0.4088, allocations: 1.283 MB / 476 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005929/0.4094, allocations: 128 kB / 476.1 MB, free: 0.5273 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.0002929/0.4097, allocations: 186.5 kB / 476.3 MB, free: 348 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.4115, allocations: 1.435 MB / 477.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4115, allocations: 0 / 477.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.4127, allocations: 1.216 MB / 478.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.414, allocations: 286.5 kB / 479.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00461/0.4186, allocations: 2.525 MB / 481.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/0.42, allocations: 1.243 MB / 483 MB, free: 9.48 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.42, allocations: 0 / 483 MB, free: 9.48 MB / 362.7 MB Notification: Performance of Templates: time 0.0212/0.4413, allocations: 14.62 MB / 497.6 MB, free: 10.51 MB / 378.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)