Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.00104/0.001041, allocations: 195.4 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.117/1.117, allocations: 225.5 MB / 234.4 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008997/0.0008997, allocations: 102.2 kB / 286.4 MB, free: 12.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09922/0.1001, allocations: 56.87 MB / 343.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2819, allocations: 51.46 MB / 394.7 MB, free: 33.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08461/0.3666, allocations: 83.26 MB / 478 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.3668, allocations: 67.95 kB / 478 MB, free: 13.73 MB / 362.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.2054/0.5722, allocations: 31.75 MB / 0.4978 GB, free: 95.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.5723, allocations: 7.25 kB / 0.4978 GB, free: 95.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.5725, allocations: 135.5 kB / 0.498 GB, free: 95.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006519/0.5731, allocations: 0.5163 MB / 0.4985 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.5732, allocations: 21.86 kB / 0.4985 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.227e-05/0.5733, allocations: 25.59 kB / 0.4985 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005207/0.5738, allocations: 468.6 kB / 0.499 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006946/0.5745, allocations: 0.5971 MB / 0.4995 GB, free: 95.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.577e-06/0.5745, allocations: 0 / 0.4995 GB, free: 95.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.636e-05/0.5746, allocations: 21.56 kB / 0.4996 GB, free: 95.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.5746, allocations: 6.812 kB / 0.4996 GB, free: 95.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.5761, allocations: 1.16 MB / 0.5007 GB, free: 95.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.5767, allocations: 0.6936 MB / 0.5014 GB, free: 95.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005349/0.5772, allocations: 0.6794 MB / 0.502 GB, free: 95.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-06/0.5772, allocations: 0 / 0.502 GB, free: 95.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005947/0.5778, allocations: 0.7134 MB / 0.5027 GB, free: 94.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.553e-06/0.5778, allocations: 0 / 0.5027 GB, free: 94.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00107/0.5789, allocations: 0.948 MB / 0.5037 GB, free: 94.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.579, allocations: 328.5 kB / 0.504 GB, free: 94.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.5806, allocations: 1.572 MB / 0.5055 GB, free: 94.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.5807, allocations: 43.44 kB / 0.5056 GB, free: 94.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.005e-05/0.5808, allocations: 166.7 kB / 0.5057 GB, free: 93.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.946e-05/0.5809, allocations: 75.77 kB / 0.5058 GB, free: 93.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.5809, allocations: 11.38 kB / 0.5058 GB, free: 93.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.018e-05/0.581, allocations: 379.5 kB / 0.5062 GB, free: 93.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004667/0.5815, allocations: 450.5 kB / 0.5066 GB, free: 93.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.5819, allocations: 453.9 kB / 0.507 GB, free: 93.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.5823, allocations: 301.8 kB / 0.5073 GB, free: 93.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5823, allocations: 3.312 kB / 0.5073 GB, free: 93.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009697/0.5832, allocations: 0.9051 MB / 0.5082 GB, free: 92.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.5833, allocations: 7.875 kB / 0.5082 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.5833, allocations: 0 / 0.5082 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.5833, allocations: 3.938 kB / 0.5082 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.262e-05/0.5833, allocations: 7.781 kB / 0.5082 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.5833, allocations: 4 kB / 0.5082 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.5837, allocations: 37.33 kB / 0.5083 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.5838, allocations: 117.6 kB / 0.5084 GB, free: 92.97 MB / 378.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.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.0002734/0.5841, allocations: 455.7 kB / 0.5088 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.5842, allocations: 133.3 kB / 0.5089 GB, free: 92.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003424/0.5845, allocations: 254.3 kB / 0.5092 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.5846, allocations: 7.109 kB / 0.5092 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.5846, allocations: 0 / 0.5092 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.5846, allocations: 0 / 0.5092 GB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.5866, allocations: 1.869 MB / 0.511 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5866, allocations: 0 / 0.511 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.097e-06/0.5866, allocations: 1.406 kB / 0.511 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.5866, allocations: 4.656 kB / 0.511 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.503e-05/0.5867, allocations: 32.39 kB / 0.511 GB, free: 91.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.5867, allocations: 4.906 kB / 0.511 GB, free: 91.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5867, allocations: 3.234 kB / 0.511 GB, free: 91.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001541/0.5883, allocations: 1.143 MB / 0.5122 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001505/0.5898, allocations: 1.537 MB / 0.5137 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009235/0.5907, allocations: 0.6949 MB / 0.5143 GB, free: 89.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.5909, allocations: 62.69 kB / 0.5144 GB, free: 89.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.5913, allocations: 35.73 kB / 0.5144 GB, free: 89.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004709/0.5918, allocations: 392.4 kB / 0.5148 GB, free: 88.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.5919, allocations: 127.9 kB / 0.5149 GB, free: 88.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001386/0.5933, allocations: 1.281 MB / 0.5162 GB, free: 87.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001048/0.5944, allocations: 143.1 kB / 0.5163 GB, free: 87.59 MB / 378.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,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.0002186/0.5946, allocations: 179.2 kB / 0.5165 GB, free: 87.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.5958, allocations: 1.432 MB / 0.5179 GB, free: 86.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.5959, allocations: 0 / 0.5179 GB, free: 86.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008278/0.5967, allocations: 1.227 MB / 0.5191 GB, free: 84.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.5977, allocations: 280.9 kB / 0.5194 GB, free: 84.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.6008, allocations: 2.517 MB / 0.5218 GB, free: 82.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.6016, allocations: 1.237 MB / 0.523 GB, free: 81.24 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.6016, allocations: 0 / 0.523 GB, free: 81.24 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1)