Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH") [: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.001062/0.001062, allocations: 188.7 kB / 8.138 MB, free: 0.875 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.134/1.134, allocations: 194.2 MB / 202.8 MB, free: 2.082 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001803/0.001803, allocations: 117.2 kB / 247.8 MB, free: 5.082 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 7.985e-06/8.146e-06, allocations: 0 / 297.6 MB, free: 26.45 MB / 226.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0726/0.07263, allocations: 44.49 MB / 342.1 MB, free: 13.91 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/0.359, allocations: 77.57 MB / 419.6 MB, free: 12.24 MB / 306.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.3593, allocations: 68.58 kB / 419.7 MB, free: 12.21 MB / 306.8 MB Notification: Performance of FrontEnd: time 0.08685/0.4462, allocations: 30.01 MB / 449.7 MB, free: 3.695 MB / 322.8 MB Notification: Performance of Transformations before backend: time 4.231e-05/0.4463, allocations: 16 kB / 449.7 MB, free: 3.68 MB / 322.8 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.001762/0.448, allocations: 1.321 MB / 451 MB, free: 2.336 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.4481, allocations: 8.031 kB / 451 MB, free: 2.328 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002837/0.4484, allocations: 130.4 kB / 451.2 MB, free: 2.199 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008936/0.4493, allocations: 0.5142 MB / 451.7 MB, free: 1.672 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.4493, allocations: 18.94 kB / 451.7 MB, free: 1.656 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.505e-05/0.4494, allocations: 27 kB / 451.7 MB, free: 1.633 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006585/0.4501, allocations: 471.6 kB / 452.2 MB, free: 1.309 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008869/0.451, allocations: 0.6006 MB / 452.8 MB, free: 0.8477 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.451, allocations: 0 / 452.8 MB, free: 0.8477 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.795e-05/0.4511, allocations: 15.98 kB / 452.8 MB, free: 0.832 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.4511, allocations: 4 kB / 452.8 MB, free: 0.8281 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.4532, allocations: 1.172 MB / 454 MB, free: 15.86 MB / 338.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007126/0.454, allocations: 0.6829 MB / 454.7 MB, free: 15.47 MB / 338.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006959/0.4547, allocations: 0.6829 MB / 455.4 MB, free: 15.09 MB / 338.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.4547, allocations: 0.625 kB / 455.4 MB, free: 15.09 MB / 338.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008305/0.4555, allocations: 0.7141 MB / 456.1 MB, free: 14.48 MB / 338.8 MB Notification: Performance of pre-optimization done (n=33): time 1.993e-06/0.4555, allocations: 0 / 456.1 MB, free: 14.48 MB / 338.8 MB Notification: Performance of matching and sorting (n=33): time 0.001507/0.4571, allocations: 0.9524 MB / 457 MB, free: 13.74 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002075/0.4573, allocations: 327 kB / 457.3 MB, free: 13.37 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002636/0.4599, allocations: 1.574 MB / 458.9 MB, free: 11.79 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 9.149e-05/0.46, allocations: 45.69 kB / 459 MB, free: 11.73 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.4602, allocations: 158.4 kB / 459.1 MB, free: 11.57 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.4603, allocations: 79.09 kB / 459.2 MB, free: 11.5 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.723e-05/0.4604, allocations: 16 kB / 459.2 MB, free: 11.48 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4606, allocations: 378.7 kB / 459.6 MB, free: 11.1 MB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006267/0.4612, allocations: 455.9 kB / 460 MB, free: 10.66 MB / 338.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005966/0.4618, allocations: 451.7 kB / 460.5 MB, free: 10.21 MB / 338.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004193/0.4622, allocations: 300.3 kB / 460.8 MB, free: 9.922 MB / 338.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4622, allocations: 0 / 460.8 MB, free: 9.922 MB / 338.8 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00127/0.4635, allocations: 0.9023 MB / 461.7 MB, free: 9.012 MB / 338.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4635, allocations: 7.281 kB / 461.7 MB, free: 9.008 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.4636, allocations: 4 kB / 461.7 MB, free: 9.004 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.4636, allocations: 0 / 461.7 MB, free: 9.004 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.564e-05/0.4636, allocations: 15.92 kB / 461.7 MB, free: 8.988 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4636, allocations: 0 / 461.7 MB, free: 8.988 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.4641, allocations: 35.88 kB / 461.7 MB, free: 8.953 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.4642, allocations: 124.2 kB / 461.8 MB, free: 8.832 MB / 338.8 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.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.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.0004493/0.4647, allocations: 460.4 kB / 462.3 MB, free: 8.324 MB / 338.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.4649, allocations: 138.4 kB / 462.4 MB, free: 8.188 MB / 338.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005879/0.4655, allocations: 247.9 kB / 462.7 MB, free: 7.941 MB / 338.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.4655, allocations: 7.938 kB / 462.7 MB, free: 7.934 MB / 338.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4655, allocations: 0 / 462.7 MB, free: 7.934 MB / 338.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.4655, allocations: 0 / 462.7 MB, free: 7.934 MB / 338.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.4682, allocations: 1.873 MB / 464.5 MB, free: 6.012 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.4683, allocations: 0 / 464.5 MB, free: 6.012 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.236e-05/0.4683, allocations: 0 / 464.5 MB, free: 6.012 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.4683, allocations: 4 kB / 464.5 MB, free: 6.008 MB / 338.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-05/0.4684, allocations: 39.97 kB / 464.6 MB, free: 5.969 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4684, allocations: 0 / 464.6 MB, free: 5.969 MB / 338.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4684, allocations: 3.938 kB / 464.6 MB, free: 5.965 MB / 338.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001574/0.47, allocations: 1.14 MB / 465.7 MB, free: 4.805 MB / 338.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.4715, allocations: 0.6941 MB / 466.4 MB, free: 4.09 MB / 338.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.4717, allocations: 59.97 kB / 466.5 MB, free: 4.031 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005296/0.4723, allocations: 35.97 kB / 466.5 MB, free: 3.996 MB / 338.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007847/0.4731, allocations: 391.5 kB / 466.9 MB, free: 3.613 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002894/0.4734, allocations: 127.9 kB / 467 MB, free: 3.488 MB / 338.8 MB Notification: Performance of sort global known variables: time 0.002924/0.4763, allocations: 1.287 MB / 468.3 MB, free: 2.199 MB / 338.8 MB Notification: Performance of remove unused functions: time 0.0008355/0.4771, allocations: 128 kB / 468.4 MB, free: 2.074 MB / 338.8 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,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.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.0003291/0.4775, allocations: 193.6 kB / 468.6 MB, free: 1.879 MB / 338.8 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.4793, allocations: 1.427 MB / 470.1 MB, free: 408 kB / 338.8 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4793, allocations: 0 / 470.1 MB, free: 408 kB / 338.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.4806, allocations: 1.228 MB / 471.3 MB, free: 15.12 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.4819, allocations: 289.3 kB / 471.6 MB, free: 14.84 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.4865, allocations: 2.516 MB / 474.1 MB, free: 12.29 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/0.488, allocations: 1.238 MB / 475.3 MB, free: 11.03 MB / 354.8 MB Notification: Performance of SimCode: time 1.212e-06/0.488, allocations: 0 / 475.3 MB, free: 11.03 MB / 354.8 MB Notification: Performance of Templates: time 0.02119/0.5092, allocations: 14.62 MB / 489.9 MB, free: 12.03 MB / 370.8 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1)