Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG",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.001842/0.001842, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 225.5 MB / 234.4 MB, free: 3.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009885/0.0009885, allocations: 95 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1227/0.1237, allocations: 56.89 MB / 343.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.2274, allocations: 51.48 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.233/0.4604, allocations: 83.11 MB / 477.8 MB, free: 9.594 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.4606, allocations: 67.95 kB / 477.9 MB, free: 9.57 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.04993/0.5106, allocations: 28.63 MB / 0.4946 GB, free: 2.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.5106, allocations: 11.98 kB / 0.4947 GB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.5109, allocations: 94.91 kB / 0.4947 GB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.5115, allocations: 425.6 kB / 0.4952 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/0.5116, allocations: 14.94 kB / 0.4952 GB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.03e-05/0.5117, allocations: 20 kB / 0.4952 GB, free: 2.207 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005251/0.5122, allocations: 356.1 kB / 0.4955 GB, free: 1.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007892/0.513, allocations: 0.4974 MB / 0.496 GB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.513, allocations: 0 / 0.496 GB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.112e-05/0.5131, allocations: 18.47 kB / 0.496 GB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.5131, allocations: 7.891 kB / 0.496 GB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.5145, allocations: 0.8359 MB / 0.4969 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005592/0.515, allocations: 0.5012 MB / 0.4973 GB, free: 344 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005511/0.5156, allocations: 494 kB / 0.4978 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.5156, allocations: 4 kB / 0.4978 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00065/0.5163, allocations: 0.6199 MB / 0.4984 GB, free: 15.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.974e-06/0.5163, allocations: 4 kB / 0.4984 GB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001167/0.5175, allocations: 0.7758 MB / 0.4992 GB, free: 14.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.5176, allocations: 279.3 kB / 0.4995 GB, free: 14.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.5189, allocations: 0.9996 MB / 0.5004 GB, free: 13.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.217e-05/0.519, allocations: 41.7 kB / 0.5005 GB, free: 13.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.096e-05/0.5191, allocations: 117.9 kB / 0.5006 GB, free: 12.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.5192, allocations: 71.17 kB / 0.5006 GB, free: 12.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.5193, allocations: 12 kB / 0.5007 GB, free: 12.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.5194, allocations: 342.8 kB / 0.501 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004383/0.5198, allocations: 352.2 kB / 0.5013 GB, free: 12.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/0.5203, allocations: 352.4 kB / 0.5017 GB, free: 11.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.5206, allocations: 257.9 kB / 0.5019 GB, free: 11.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5206, allocations: 0 / 0.5019 GB, free: 11.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009868/0.5216, allocations: 0.7318 MB / 0.5026 GB, free: 10.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.5216, allocations: 4 kB / 0.5026 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.5216, allocations: 0 / 0.5026 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.5216, allocations: 0 / 0.5026 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.971e-05/0.5217, allocations: 7.906 kB / 0.5026 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.5217, allocations: 3.984 kB / 0.5026 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.522, allocations: 39.84 kB / 0.5027 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.5222, allocations: 142.4 kB / 0.5028 GB, free: 10.61 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0003294/0.5225, allocations: 409.9 kB / 0.5032 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.5226, allocations: 90.97 kB / 0.5033 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002366/0.5229, allocations: 151.7 kB / 0.5034 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.5229, allocations: 0 / 0.5034 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.5229, allocations: 0 / 0.5034 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.5229, allocations: 3.984 kB / 0.5034 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.5247, allocations: 1.49 MB / 0.5049 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.5248, allocations: 0 / 0.5049 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.263e-05/0.5248, allocations: 4 kB / 0.5049 GB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5248, allocations: 4 kB / 0.5049 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.069e-05/0.5249, allocations: 35.98 kB / 0.5049 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.5249, allocations: 4 kB / 0.5049 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5249, allocations: 0 / 0.5049 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001182/0.5261, allocations: 0.9355 MB / 0.5058 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00123/0.5273, allocations: 1.319 MB / 0.5071 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008241/0.5281, allocations: 0.5737 MB / 0.5077 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.5283, allocations: 63.95 kB / 0.5078 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.5287, allocations: 35.88 kB / 0.5078 GB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004043/0.5291, allocations: 243.7 kB / 0.508 GB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001804/0.5293, allocations: 160.1 kB / 0.5082 GB, free: 4.961 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001103/0.5304, allocations: 0.8304 MB / 0.509 GB, free: 4.133 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009853/0.5314, allocations: 108 kB / 0.5091 GB, free: 4.027 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0002511/0.5316, allocations: 184.4 kB / 0.5093 GB, free: 3.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.5329, allocations: 1.105 MB / 0.5103 GB, free: 2.691 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5329, allocations: 0 / 0.5103 GB, free: 2.691 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009084/0.5338, allocations: 0.9216 MB / 0.5112 GB, free: 1.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.5349, allocations: 266.9 kB / 0.5115 GB, free: 1.477 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.5374, allocations: 1.73 MB / 0.5132 GB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000766/0.5382, allocations: 1.057 MB / 0.5142 GB, free: 14.62 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5382, allocations: 0 / 0.5142 GB, free: 14.62 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1)