Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL",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 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 185.7 kB / 8.137 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.174/1.174, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009267/0.0009268, allocations: 97.45 kB / 280.8 MB, free: 1.324 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09473/0.09569, allocations: 55.81 MB / 336.6 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.2861, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08081/0.367, allocations: 82.5 MB / 469.5 MB, free: 4.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001593/0.3672, allocations: 64.97 kB / 469.6 MB, free: 4.219 MB / 346.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.2157/0.5829, allocations: 39.62 MB / 0.4972 GB, free: 101 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.583, allocations: 10.94 kB / 0.4973 GB, free: 101 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.5831, allocations: 131.8 kB / 0.4974 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.5837, allocations: 0.5236 MB / 0.4979 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.432e-05/0.5838, allocations: 22.22 kB / 0.4979 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.774e-05/0.5838, allocations: 22.69 kB / 0.4979 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004894/0.5843, allocations: 467.3 kB / 0.4984 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.585, allocations: 0.61 MB / 0.499 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.585, allocations: 0 / 0.499 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.494e-05/0.5851, allocations: 11.03 kB / 0.499 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.5851, allocations: 7.719 kB / 0.499 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.5866, allocations: 1.157 MB / 0.5001 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/0.5872, allocations: 0.693 MB / 0.5008 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005341/0.5877, allocations: 0.6712 MB / 0.5015 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.5877, allocations: 11.7 kB / 0.5015 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006191/0.5883, allocations: 0.7087 MB / 0.5022 GB, free: 99.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.653e-06/0.5884, allocations: 0 / 0.5022 GB, free: 99.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001135/0.5895, allocations: 0.95 MB / 0.5031 GB, free: 99.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.5896, allocations: 332.4 kB / 0.5034 GB, free: 99.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.5913, allocations: 1.565 MB / 0.5049 GB, free: 98.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.5914, allocations: 46.89 kB / 0.505 GB, free: 98.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.5915, allocations: 160.9 kB / 0.5051 GB, free: 98.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.014e-05/0.5915, allocations: 73.81 kB / 0.5052 GB, free: 98.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-05/0.5916, allocations: 11.88 kB / 0.5052 GB, free: 98.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.85e-05/0.5917, allocations: 385.2 kB / 0.5056 GB, free: 98.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/0.5922, allocations: 456.8 kB / 0.506 GB, free: 98.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004378/0.5926, allocations: 447.1 kB / 0.5064 GB, free: 98.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.5929, allocations: 302.5 kB / 0.5067 GB, free: 97.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5929, allocations: 0 / 0.5067 GB, free: 97.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009428/0.5939, allocations: 0.895 MB / 0.5076 GB, free: 97.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.5939, allocations: 7.875 kB / 0.5076 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.5939, allocations: 0 / 0.5076 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.5939, allocations: 4 kB / 0.5076 GB, free: 97.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.445e-05/0.5939, allocations: 7.75 kB / 0.5076 GB, free: 97.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.5939, allocations: 11.78 kB / 0.5076 GB, free: 97.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.5943, allocations: 32.97 kB / 0.5077 GB, free: 97.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.5944, allocations: 128.8 kB / 0.5078 GB, free: 97.66 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.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.0002943/0.5947, allocations: 463.1 kB / 0.5082 GB, free: 97.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.5948, allocations: 130.6 kB / 0.5084 GB, free: 97.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003425/0.5952, allocations: 250.9 kB / 0.5086 GB, free: 97.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.5952, allocations: 7.781 kB / 0.5086 GB, free: 97.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5952, allocations: 0 / 0.5086 GB, free: 97.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.5952, allocations: 0 / 0.5086 GB, free: 97.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.5977, allocations: 1.87 MB / 0.5104 GB, free: 96.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5977, allocations: 0 / 0.5104 GB, free: 96.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.598e-06/0.5977, allocations: 6 kB / 0.5104 GB, free: 96.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.5977, allocations: 0 / 0.5104 GB, free: 96.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.338e-05/0.5978, allocations: 41.69 kB / 0.5105 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.5978, allocations: 0 / 0.5105 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5978, allocations: 0 / 0.5105 GB, free: 96.19 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001248/0.599, allocations: 1.138 MB / 0.5116 GB, free: 95.73 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001173/0.6002, allocations: 1.534 MB / 0.5131 GB, free: 94.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008846/0.6011, allocations: 0.691 MB / 0.5138 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.6013, allocations: 62.97 kB / 0.5138 GB, free: 93.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.6017, allocations: 38.78 kB / 0.5139 GB, free: 93.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004804/0.6022, allocations: 383 kB / 0.5142 GB, free: 93.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.6023, allocations: 131.6 kB / 0.5143 GB, free: 93.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001384/0.6037, allocations: 1.296 MB / 0.5156 GB, free: 92.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001035/0.6047, allocations: 131.9 kB / 0.5157 GB, free: 92.15 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,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.0002278/0.605, allocations: 186.2 kB / 0.5159 GB, free: 91.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.6063, allocations: 1.434 MB / 0.5173 GB, free: 90.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.6063, allocations: 0 / 0.5173 GB, free: 90.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008314/0.6071, allocations: 1.215 MB / 0.5185 GB, free: 89.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.6081, allocations: 292.4 kB / 0.5188 GB, free: 89.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.6111, allocations: 2.526 MB / 0.5213 GB, free: 86.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007684/0.6119, allocations: 1.238 MB / 0.5225 GB, free: 85.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.6119, allocations: 0 / 0.5225 GB, free: 85.8 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1)