Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003205/0.003205, allocations: 182.2 kB / 7.451 MB, free: 2.172 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.249/1.249, allocations: 170.6 MB / 178.4 MB, free: 15.76 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.001897/0.001897, allocations: 100.7 kB / 217.7 MB, free: 8.562 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.729e-06/9.768e-06, allocations: 8 kB / 261.7 MB, free: 26.69 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09586, allocations: 38.76 MB / 300.5 MB, free: 3.934 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.358, allocations: 72.01 MB / 372.5 MB, free: 12.49 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.3583, allocations: 70.28 kB / 372.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.0711/0.4294, allocations: 36.94 MB / 409.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.542e-05/0.4295, allocations: 12 kB / 409.5 MB, free: 14.02 MB / 298.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.002529/0.432, allocations: 1.297 MB / 410.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.4321, allocations: 12.03 kB / 410.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005571/0.4327, allocations: 134.4 kB / 411 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.4342, allocations: 0.5327 MB / 411.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.015e-05/0.4343, allocations: 16 kB / 411.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.838e-05/0.4344, allocations: 27.98 kB / 411.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008591/0.4353, allocations: 455.8 kB / 412 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009021/0.4362, allocations: 0.5988 MB / 412.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4362, allocations: 3.906 kB / 412.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.4363, allocations: 12 kB / 412.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4363, allocations: 4 kB / 412.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.4385, allocations: 1.11 MB / 413.7 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008108/0.4393, allocations: 0.6859 MB / 414.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/0.4401, allocations: 0.6725 MB / 415.1 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.4401, allocations: 4 kB / 415.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000861/0.441, allocations: 0.6985 MB / 415.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.515e-06/0.441, allocations: 0 / 415.8 MB, free: 7.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.001445/0.4424, allocations: 0.9363 MB / 416.7 MB, free: 6.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000257/0.4427, allocations: 329 kB / 417 MB, free: 6.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001922/0.4446, allocations: 1.407 MB / 418.4 MB, free: 4.781 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.716e-05/0.4447, allocations: 45.69 kB / 418.5 MB, free: 4.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.4448, allocations: 150.4 kB / 418.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.445, allocations: 79.2 kB / 418.7 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.445, allocations: 8 kB / 418.7 MB, free: 4.492 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.4452, allocations: 370.8 kB / 419.1 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005945/0.4458, allocations: 443.8 kB / 419.5 MB, free: 3.688 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005706/0.4464, allocations: 443.8 kB / 420 MB, free: 3.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.4468, allocations: 292.5 kB / 420.2 MB, free: 2.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4468, allocations: 4 kB / 420.2 MB, free: 2.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001241/0.4481, allocations: 0.8829 MB / 421.1 MB, free: 2.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.4481, allocations: 8 kB / 421.1 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4481, allocations: 0 / 421.1 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4481, allocations: 3.906 kB / 421.1 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.496e-05/0.4482, allocations: 4 kB / 421.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/0.4482, allocations: 4 kB / 421.1 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.4485, allocations: 43.81 kB / 421.2 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.4487, allocations: 124.2 kB / 421.3 MB, free: 1.891 MB / 298.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.0004645/0.4492, allocations: 455.7 kB / 421.8 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.4494, allocations: 134.4 kB / 421.9 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003955/0.4498, allocations: 200.1 kB / 422.1 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.4498, allocations: 3.984 kB / 422.1 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4498, allocations: 0 / 422.1 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.4498, allocations: 0 / 422.1 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.452, allocations: 1.787 MB / 423.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.452, allocations: 0 / 423.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.909e-06/0.452, allocations: 3.938 kB / 423.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4521, allocations: 0 / 423.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.613e-05/0.4521, allocations: 35.97 kB / 423.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4521, allocations: 4 kB / 423.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4522, allocations: 3.938 kB / 423.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001392/0.4536, allocations: 1.125 MB / 425 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.4547, allocations: 0.6669 MB / 425.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.4549, allocations: 63.95 kB / 425.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/0.4553, allocations: 39.97 kB / 425.8 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006389/0.456, allocations: 383.6 kB / 426.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/0.4562, allocations: 135.8 kB / 426.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.001578/0.4577, allocations: 1.162 MB / 427.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005157/0.4583, allocations: 131.9 kB / 427.6 MB, free: 11.43 MB / 314.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.0002734/0.4585, allocations: 185.6 kB / 427.8 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.4602, allocations: 1.419 MB / 429.2 MB, free: 9.777 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4602, allocations: 3.938 kB / 429.2 MB, free: 9.773 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.4615, allocations: 1.213 MB / 430.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.4627, allocations: 298.7 kB / 430.7 MB, free: 8.219 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.4666, allocations: 2.353 MB / 433.1 MB, free: 5.828 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/0.4676, allocations: 1.191 MB / 434.3 MB, free: 4.609 MB / 314.7 MB Notification: Performance of SimCode: time 8.51e-07/0.4676, allocations: 0 / 434.3 MB, free: 4.609 MB / 314.7 MB Notification: Performance of Templates: time 0.02115/0.4888, allocations: 14.15 MB / 448.4 MB, free: 6.078 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1)