Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL",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.001512/0.001512, allocations: 205.6 kB / 8.54 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.187/1.187, 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.00104/0.00104, allocations: 94 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.122/0.123, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.2261, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2355/0.4617, allocations: 83.16 MB / 477.9 MB, free: 9.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.462, allocations: 68.62 kB / 477.9 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.06801/0.53, allocations: 38.28 MB / 0.5041 GB, free: 9.461 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.53, allocations: 8 kB / 0.5041 GB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.5302, allocations: 86.97 kB / 0.5042 GB, free: 9.367 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006447/0.5309, allocations: 435.5 kB / 0.5046 GB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/0.5309, allocations: 16 kB / 0.5046 GB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.998e-05/0.531, allocations: 20 kB / 0.5047 GB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005024/0.5315, allocations: 360.1 kB / 0.505 GB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006687/0.5322, allocations: 0.4905 MB / 0.5055 GB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.5322, allocations: 3.938 kB / 0.5055 GB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/0.5323, allocations: 12 kB / 0.5055 GB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.5323, allocations: 4 kB / 0.5055 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.5337, allocations: 0.8444 MB / 0.5063 GB, free: 7.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.5343, allocations: 0.4945 MB / 0.5068 GB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/0.5348, allocations: 496.8 kB / 0.5073 GB, free: 6.117 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.5348, allocations: 8 kB / 0.5073 GB, free: 6.109 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006428/0.5355, allocations: 0.6197 MB / 0.5079 GB, free: 5.449 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.124e-06/0.5355, allocations: 0 / 0.5079 GB, free: 5.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001124/0.5366, allocations: 0.7689 MB / 0.5086 GB, free: 4.676 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.5368, allocations: 279.3 kB / 0.5089 GB, free: 4.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.538, allocations: 0.9996 MB / 0.5099 GB, free: 3.344 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.849e-05/0.5381, allocations: 41.69 kB / 0.5099 GB, free: 3.297 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.5382, allocations: 122 kB / 0.51 GB, free: 3.172 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.5383, allocations: 86.98 kB / 0.5101 GB, free: 3.086 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.717e-05/0.5384, allocations: 12 kB / 0.5101 GB, free: 3.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5385, allocations: 338.8 kB / 0.5105 GB, free: 2.734 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004476/0.5389, allocations: 348.2 kB / 0.5108 GB, free: 2.395 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.5394, allocations: 348.4 kB / 0.5111 GB, free: 2.055 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.5397, allocations: 257 kB / 0.5114 GB, free: 1.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.5397, allocations: 0 / 0.5114 GB, free: 1.805 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009935/0.5407, allocations: 0.7318 MB / 0.5121 GB, free: 1.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.5408, allocations: 8 kB / 0.5121 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.5408, allocations: 0 / 0.5121 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.5408, allocations: 4 kB / 0.5121 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.808e-05/0.5408, allocations: 7.922 kB / 0.5121 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.5408, allocations: 7.938 kB / 0.5121 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.5411, allocations: 27.89 kB / 0.5121 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.5413, allocations: 146.4 kB / 0.5123 GB, free: 0.8711 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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.0003551/0.5417, allocations: 409.9 kB / 0.5127 GB, free: 432 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.5418, allocations: 83.06 kB / 0.5127 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.5421, allocations: 147.7 kB / 0.5129 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.5421, allocations: 7.906 kB / 0.5129 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5421, allocations: 0 / 0.5129 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.5421, allocations: 0 / 0.5129 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.544, allocations: 1.483 MB / 0.5143 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.544, allocations: 3.938 kB / 0.5143 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.342e-05/0.544, allocations: 8 kB / 0.5144 GB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.544, allocations: 0 / 0.5144 GB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-05/0.5441, allocations: 39.97 kB / 0.5144 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5441, allocations: 3.938 kB / 0.5144 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5441, allocations: 0 / 0.5144 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001176/0.5453, allocations: 0.9317 MB / 0.5153 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00126/0.5466, allocations: 1.322 MB / 0.5166 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008584/0.5475, allocations: 0.5776 MB / 0.5172 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.5476, allocations: 59.97 kB / 0.5172 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.548, allocations: 35.88 kB / 0.5173 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/0.5484, allocations: 239.8 kB / 0.5175 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.5485, allocations: 156.1 kB / 0.5176 GB, free: 11.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001109/0.5497, allocations: 0.8421 MB / 0.5185 GB, free: 10.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001074/0.5507, allocations: 104 kB / 0.5186 GB, free: 10.29 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.0002768/0.551, allocations: 184.5 kB / 0.5187 GB, free: 10.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.5523, allocations: 1.105 MB / 0.5198 GB, free: 8.953 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5523, allocations: 0 / 0.5198 GB, free: 8.953 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009465/0.5532, allocations: 0.9215 MB / 0.5207 GB, free: 7.988 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.5543, allocations: 267.8 kB / 0.521 GB, free: 7.734 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.5571, allocations: 1.734 MB / 0.5227 GB, free: 5.969 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007797/0.5579, allocations: 1.053 MB / 0.5237 GB, free: 4.891 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5579, allocations: 0 / 0.5237 GB, free: 4.891 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1)