Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH",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.001236/0.001236, allocations: 204.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009123/0.0009123, allocations: 89.64 kB / 286.3 MB, free: 5.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09619/0.09713, allocations: 56.9 MB / 343.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.1838, allocations: 51.47 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2198/0.4036, allocations: 83.37 MB / 478.1 MB, free: 9.461 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.4039, allocations: 72.09 kB / 478.1 MB, free: 9.434 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.05541/0.4593, allocations: 32.17 MB / 0.4984 GB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.4593, allocations: 12 kB / 0.4984 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.4596, allocations: 130.4 kB / 0.4985 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008346/0.4605, allocations: 0.5258 MB / 0.499 GB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.4605, allocations: 18.48 kB / 0.499 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.243e-05/0.4606, allocations: 30.31 kB / 0.499 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006673/0.4613, allocations: 451.6 kB / 0.4995 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.4622, allocations: 0.6073 MB / 0.5001 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4623, allocations: 0 / 0.5001 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.4623, allocations: 15.98 kB / 0.5001 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.4623, allocations: 3.906 kB / 0.5001 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.4642, allocations: 1.067 MB / 0.5011 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007548/0.465, allocations: 0.6898 MB / 0.5018 GB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000706/0.4657, allocations: 0.6686 MB / 0.5025 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.4657, allocations: 4 kB / 0.5025 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008243/0.4666, allocations: 0.7242 MB / 0.5032 GB, free: 10.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.746e-06/0.4666, allocations: 0 / 0.5032 GB, free: 10.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001384/0.468, allocations: 0.9737 MB / 0.5041 GB, free: 9.395 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.4682, allocations: 325 kB / 0.5044 GB, free: 9.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.4704, allocations: 1.545 MB / 0.5059 GB, free: 7.457 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.235e-05/0.4705, allocations: 49.69 kB / 0.506 GB, free: 7.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.4707, allocations: 158.3 kB / 0.5061 GB, free: 7.242 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.4708, allocations: 83.08 kB / 0.5062 GB, free: 7.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.669e-05/0.4709, allocations: 12 kB / 0.5062 GB, free: 7.148 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.4711, allocations: 386.6 kB / 0.5066 GB, free: 6.762 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006173/0.4717, allocations: 450.9 kB / 0.507 GB, free: 6.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/0.4723, allocations: 448 kB / 0.5075 GB, free: 5.883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.4728, allocations: 304.3 kB / 0.5077 GB, free: 5.586 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.4728, allocations: 0 / 0.5077 GB, free: 5.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001282/0.4741, allocations: 0.9113 MB / 0.5086 GB, free: 4.668 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4741, allocations: 4 kB / 0.5086 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4741, allocations: 0 / 0.5086 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4741, allocations: 0 / 0.5086 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.319e-05/0.4742, allocations: 11.94 kB / 0.5086 GB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.4742, allocations: 0 / 0.5086 GB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004076/0.4746, allocations: 39.88 kB / 0.5087 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.4748, allocations: 150.4 kB / 0.5088 GB, free: 4.469 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.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.0004108/0.4752, allocations: 450.5 kB / 0.5093 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.4754, allocations: 134.4 kB / 0.5094 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004735/0.4759, allocations: 251.6 kB / 0.5096 GB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4759, allocations: 0 / 0.5096 GB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.4759, allocations: 4 kB / 0.5096 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.4759, allocations: 3.984 kB / 0.5096 GB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.4784, allocations: 1.876 MB / 0.5115 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4784, allocations: 4 kB / 0.5115 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.165e-05/0.4784, allocations: 0 / 0.5115 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.4784, allocations: 3.984 kB / 0.5115 GB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-05/0.4785, allocations: 35.98 kB / 0.5115 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4785, allocations: 4 kB / 0.5115 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4785, allocations: 0 / 0.5115 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001397/0.4799, allocations: 1.14 MB / 0.5126 GB, free: 460 kB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001501/0.4814, allocations: 1.527 MB / 0.5141 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.4826, allocations: 0.6903 MB / 0.5148 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/0.4828, allocations: 71.86 kB / 0.5149 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.4832, allocations: 31.97 kB / 0.5149 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000554/0.4838, allocations: 367.7 kB / 0.5152 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/0.484, allocations: 155.9 kB / 0.5154 GB, free: 13.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001742/0.4857, allocations: 1.262 MB / 0.5166 GB, free: 12.31 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001094/0.4868, allocations: 136 kB / 0.5168 GB, free: 12.18 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.000284/0.4871, allocations: 194.8 kB / 0.5169 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.4889, allocations: 1.447 MB / 0.5184 GB, free: 10.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4889, allocations: 7.938 kB / 0.5184 GB, free: 10.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.49, allocations: 1.177 MB / 0.5195 GB, free: 9.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.4912, allocations: 288.2 kB / 0.5198 GB, free: 8.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.4952, allocations: 2.48 MB / 0.5222 GB, free: 6.457 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/0.4963, allocations: 1.255 MB / 0.5234 GB, free: 5.176 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4963, allocations: 0 / 0.5234 GB, free: 5.176 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1)