Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL",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.00111/0.00111, allocations: 195.7 kB / 8.539 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.14/1.14, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008415/0.0008416, allocations: 95.38 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09221/0.09308, allocations: 56.89 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07788/0.171, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2154/0.3864, allocations: 83.41 MB / 478.1 MB, free: 9.449 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001687/0.3866, allocations: 67.78 kB / 478.2 MB, free: 9.426 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.05553/0.4421, allocations: 33.71 MB / 0.4999 GB, free: 13.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.4422, allocations: 8 kB / 0.4999 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/0.4424, allocations: 134.4 kB / 0.5 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007996/0.4432, allocations: 0.5246 MB / 0.5005 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.565e-05/0.4432, allocations: 27.91 kB / 0.5006 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.003e-05/0.4433, allocations: 20 kB / 0.5006 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006404/0.444, allocations: 455.8 kB / 0.501 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008159/0.4448, allocations: 0.6112 MB / 0.5016 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.4448, allocations: 0 / 0.5016 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.121e-05/0.4449, allocations: 8 kB / 0.5016 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.4449, allocations: 4 kB / 0.5016 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.4466, allocations: 1.063 MB / 0.5027 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007297/0.4474, allocations: 0.682 MB / 0.5033 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006786/0.448, allocations: 0.6764 MB / 0.504 GB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.4481, allocations: 0 / 0.504 GB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008314/0.4489, allocations: 0.7361 MB / 0.5047 GB, free: 8.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.724e-06/0.4489, allocations: 0 / 0.5047 GB, free: 8.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001405/0.4503, allocations: 0.9619 MB / 0.5057 GB, free: 7.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001827/0.4505, allocations: 325 kB / 0.506 GB, free: 7.363 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002194/0.4527, allocations: 1.553 MB / 0.5075 GB, free: 5.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.016e-05/0.4528, allocations: 41.7 kB / 0.5075 GB, free: 5.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.4529, allocations: 150.5 kB / 0.5077 GB, free: 5.598 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.453, allocations: 87 kB / 0.5077 GB, free: 5.512 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.4531, allocations: 16 kB / 0.5078 GB, free: 5.496 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.4533, allocations: 378.7 kB / 0.5081 GB, free: 5.117 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006014/0.4539, allocations: 454.8 kB / 0.5086 GB, free: 4.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005818/0.4545, allocations: 444 kB / 0.509 GB, free: 4.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.4549, allocations: 312.1 kB / 0.5093 GB, free: 3.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4549, allocations: 0 / 0.5093 GB, free: 3.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001239/0.4561, allocations: 0.8997 MB / 0.5102 GB, free: 3.027 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.4562, allocations: 4 kB / 0.5102 GB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.4562, allocations: 0 / 0.5102 GB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.4562, allocations: 8 kB / 0.5102 GB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.793e-05/0.4562, allocations: 3.938 kB / 0.5102 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.4562, allocations: 4 kB / 0.5102 GB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.4566, allocations: 39.88 kB / 0.5102 GB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.4568, allocations: 146.4 kB / 0.5104 GB, free: 2.828 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * 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.0004416/0.4572, allocations: 470.3 kB / 0.5108 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.4574, allocations: 134.5 kB / 0.5109 GB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004829/0.4579, allocations: 251.6 kB / 0.5112 GB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4579, allocations: 0 / 0.5112 GB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4579, allocations: 4 kB / 0.5112 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4579, allocations: 3.906 kB / 0.5112 GB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/0.4604, allocations: 1.876 MB / 0.513 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4605, allocations: 0 / 0.513 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.63e-05/0.4605, allocations: 0 / 0.513 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.4605, allocations: 7.938 kB / 0.513 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.583e-05/0.4606, allocations: 35.94 kB / 0.5131 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4606, allocations: 0 / 0.5131 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.82e-06/0.4606, allocations: 3.984 kB / 0.5131 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001373/0.462, allocations: 1.136 MB / 0.5142 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001448/0.4634, allocations: 1.519 MB / 0.5156 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.4645, allocations: 0.7059 MB / 0.5163 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002088/0.4647, allocations: 59.97 kB / 0.5164 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.4651, allocations: 35.97 kB / 0.5164 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000526/0.4656, allocations: 375.5 kB / 0.5168 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/0.4658, allocations: 155.9 kB / 0.5169 GB, free: 11.91 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001787/0.4676, allocations: 1.27 MB / 0.5182 GB, free: 10.64 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001126/0.4688, allocations: 132 kB / 0.5183 GB, free: 10.51 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * 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.0002469/0.469, allocations: 186.8 kB / 0.5185 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.4706, allocations: 1.457 MB / 0.5199 GB, free: 8.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4706, allocations: 0 / 0.5199 GB, free: 8.816 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.4716, allocations: 1.173 MB / 0.5211 GB, free: 7.594 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.4727, allocations: 293.7 kB / 0.5213 GB, free: 7.316 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.4762, allocations: 2.48 MB / 0.5238 GB, free: 4.797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009436/0.4771, allocations: 1.247 MB / 0.525 GB, free: 3.523 MB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4771, allocations: 0 / 0.525 GB, free: 3.523 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1)