Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001039/0.001039, allocations: 193.4 kB / 8.536 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008221/0.0008221, allocations: 91.45 kB / 286.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1262/0.127, allocations: 56.89 MB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09045/0.2175, allocations: 51.48 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2434/0.461, allocations: 83.3 MB / 478 MB, free: 9.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001708/0.4612, allocations: 69.39 kB / 478.1 MB, free: 9.535 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.07212/0.5333, allocations: 39.69 MB / 0.5056 GB, free: 7.965 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.5334, allocations: 8 kB / 0.5056 GB, free: 7.957 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.5335, allocations: 134.4 kB / 0.5058 GB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007116/0.5343, allocations: 0.5288 MB / 0.5063 GB, free: 7.246 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.5343, allocations: 19.98 kB / 0.5063 GB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.313e-05/0.5344, allocations: 28 kB / 0.5063 GB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006144/0.535, allocations: 459.8 kB / 0.5068 GB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008217/0.5359, allocations: 0.6034 MB / 0.5073 GB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.5359, allocations: 0 / 0.5073 GB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.175e-05/0.5359, allocations: 15.98 kB / 0.5074 GB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.536, allocations: 4 kB / 0.5074 GB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.5378, allocations: 1.164 MB / 0.5085 GB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007519/0.5386, allocations: 0.6859 MB / 0.5092 GB, free: 4.219 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006849/0.5393, allocations: 0.6803 MB / 0.5098 GB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-06/0.5393, allocations: 3.984 kB / 0.5098 GB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000739/0.5401, allocations: 0.7134 MB / 0.5105 GB, free: 2.777 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.5401, allocations: 0 / 0.5105 GB, free: 2.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001257/0.5413, allocations: 0.9516 MB / 0.5115 GB, free: 1.824 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.5415, allocations: 333 kB / 0.5118 GB, free: 1.438 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002136/0.5437, allocations: 1.574 MB / 0.5133 GB, free: 15.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.5438, allocations: 41.7 kB / 0.5134 GB, free: 15.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.5439, allocations: 162.4 kB / 0.5135 GB, free: 15.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.841e-05/0.544, allocations: 67.17 kB / 0.5136 GB, free: 15.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.544, allocations: 19.94 kB / 0.5136 GB, free: 15.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.5442, allocations: 378.7 kB / 0.514 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005738/0.5448, allocations: 455.8 kB / 0.5144 GB, free: 14.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.5453, allocations: 454.6 kB / 0.5148 GB, free: 14.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.5457, allocations: 295.8 kB / 0.5151 GB, free: 14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.5457, allocations: 4 kB / 0.5151 GB, free: 13.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001147/0.5469, allocations: 0.8941 MB / 0.516 GB, free: 13.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.5469, allocations: 8 kB / 0.516 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.5469, allocations: 0 / 0.516 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.5469, allocations: 0 / 0.516 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.029e-05/0.5469, allocations: 0 / 0.516 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.5469, allocations: 11.98 kB / 0.516 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.5473, allocations: 43.81 kB / 0.5161 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.5474, allocations: 118.7 kB / 0.5162 GB, free: 12.92 MB / 394.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.0003499/0.5478, allocations: 443.8 kB / 0.5166 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.548, allocations: 134.4 kB / 0.5167 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003907/0.5484, allocations: 255.9 kB / 0.517 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.5484, allocations: 4 kB / 0.517 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5484, allocations: 0 / 0.517 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.5484, allocations: 0 / 0.517 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/0.5507, allocations: 1.877 MB / 0.5188 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.5507, allocations: 3.984 kB / 0.5188 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.848e-06/0.5507, allocations: 7.922 kB / 0.5188 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.5507, allocations: 7.906 kB / 0.5188 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.089e-05/0.5508, allocations: 35.98 kB / 0.5189 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5508, allocations: 0 / 0.5189 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5508, allocations: 0 / 0.5189 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001341/0.5522, allocations: 1.144 MB / 0.52 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001432/0.5536, allocations: 1.527 MB / 0.5215 GB, free: 7.352 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.5546, allocations: 0.6941 MB / 0.5221 GB, free: 6.637 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.5548, allocations: 59.97 kB / 0.5222 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.5552, allocations: 39.88 kB / 0.5222 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005365/0.5557, allocations: 387.6 kB / 0.5226 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/0.5559, allocations: 135.9 kB / 0.5227 GB, free: 6.027 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001588/0.5575, allocations: 1.279 MB / 0.524 GB, free: 4.746 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009982/0.5585, allocations: 136 kB / 0.5241 GB, free: 4.613 MB / 394.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.0002305/0.5587, allocations: 181.6 kB / 0.5243 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.5602, allocations: 1.435 MB / 0.5257 GB, free: 2.938 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5602, allocations: 4 kB / 0.5257 GB, free: 2.934 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.5613, allocations: 1.216 MB / 0.5269 GB, free: 1.668 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.5624, allocations: 285 kB / 0.5271 GB, free: 1.391 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.5658, allocations: 2.516 MB / 0.5296 GB, free: 14.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009705/0.5668, allocations: 1.242 MB / 0.5308 GB, free: 13.57 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5668, allocations: 0 / 0.5308 GB, free: 13.57 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1)