Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 181.2 kB / 8.133 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.12/1.12, allocations: 221.4 MB / 229.9 MB, free: 3.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008577/0.0008577, allocations: 108.1 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09926/0.1001, allocations: 55.81 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.2978, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08621/0.3841, allocations: 82.3 MB / 469.3 MB, free: 4.461 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.3843, allocations: 71.89 kB / 469.4 MB, free: 4.391 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.05252/0.4369, allocations: 28.57 MB / 497.9 MB, free: 7.852 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4369, allocations: 12 kB / 498 MB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.4372, allocations: 86.97 kB / 498 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007208/0.4379, allocations: 431.5 kB / 498.5 MB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.137e-05/0.438, allocations: 15.98 kB / 498.5 MB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-05/0.438, allocations: 24 kB / 498.5 MB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005254/0.4386, allocations: 360.1 kB / 498.9 MB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007324/0.4393, allocations: 0.4943 MB / 499.3 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.4393, allocations: 0 / 499.3 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.472e-05/0.4394, allocations: 12 kB / 499.4 MB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.4394, allocations: 4 kB / 499.4 MB, free: 6.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.4407, allocations: 0.8444 MB / 0.4885 GB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005656/0.4413, allocations: 0.4989 MB / 0.489 GB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005459/0.4419, allocations: 496.7 kB / 0.4894 GB, free: 4.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.4419, allocations: 0 / 0.4894 GB, free: 4.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006419/0.4426, allocations: 0.6159 MB / 0.49 GB, free: 3.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.794e-06/0.4426, allocations: 0 / 0.49 GB, free: 3.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001087/0.4437, allocations: 0.7728 MB / 0.4908 GB, free: 3.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.4438, allocations: 279.2 kB / 0.4911 GB, free: 2.738 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.4451, allocations: 1.004 MB / 0.492 GB, free: 1.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.729e-05/0.4452, allocations: 41.7 kB / 0.4921 GB, free: 1.684 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.352e-05/0.4453, allocations: 121.9 kB / 0.4922 GB, free: 1.559 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.284e-05/0.4454, allocations: 71.17 kB / 0.4923 GB, free: 1.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/0.4454, allocations: 8 kB / 0.4923 GB, free: 1.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4455, allocations: 350.8 kB / 0.4926 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000452/0.446, allocations: 344.2 kB / 0.4929 GB, free: 0.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.4464, allocations: 356.4 kB / 0.4933 GB, free: 456 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.4467, allocations: 249 kB / 0.4935 GB, free: 208 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.4467, allocations: 0 / 0.4935 GB, free: 208 kB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.1046/0.5514, allocations: 0.7386 MB / 0.4942 GB, free: 135.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.5514, allocations: 3.969 kB / 0.4942 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/0.5514, allocations: 7.25 kB / 0.4943 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.5514, allocations: 0 / 0.4943 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.827e-05/0.5515, allocations: 7.359 kB / 0.4943 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.5515, allocations: 9.344 kB / 0.4943 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.5518, allocations: 27.53 kB / 0.4943 GB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.5519, allocations: 150.5 kB / 0.4944 GB, free: 135.2 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.0003078/0.5523, allocations: 401.1 kB / 0.4948 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.823e-05/0.5524, allocations: 90.47 kB / 0.4949 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000348/0.5527, allocations: 147 kB / 0.495 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.5527, allocations: 6.766 kB / 0.4951 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.5527, allocations: 0 / 0.4951 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.5527, allocations: 3.672 kB / 0.4951 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.5543, allocations: 1.485 MB / 0.4965 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.5543, allocations: 3.797 kB / 0.4965 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.679e-06/0.5543, allocations: 0 / 0.4965 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.5543, allocations: 0 / 0.4965 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.669e-05/0.5544, allocations: 40.09 kB / 0.4965 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.5544, allocations: 0 / 0.4965 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5544, allocations: 7.562 kB / 0.4966 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000903/0.5553, allocations: 0.9386 MB / 0.4975 GB, free: 134.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009699/0.5563, allocations: 1.305 MB / 0.4987 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007077/0.557, allocations: 0.5858 MB / 0.4993 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.5572, allocations: 62.84 kB / 0.4994 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.5575, allocations: 33.89 kB / 0.4994 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/0.5578, allocations: 248.5 kB / 0.4996 GB, free: 133.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.558, allocations: 154 kB / 0.4998 GB, free: 133.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008316/0.5588, allocations: 0.8315 MB / 0.5006 GB, free: 133.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009651/0.5598, allocations: 106.2 kB / 0.5007 GB, free: 133.4 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.0001951/0.56, allocations: 188.3 kB / 0.5009 GB, free: 133.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.561, allocations: 1.096 MB / 0.502 GB, free: 133.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.561, allocations: 0 / 0.502 GB, free: 133.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000659/0.5617, allocations: 0.9292 MB / 0.5029 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009624/0.5627, allocations: 267.3 kB / 0.5031 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.5647, allocations: 1.733 MB / 0.5048 GB, free: 132.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005362/0.5653, allocations: 1.056 MB / 0.5058 GB, free: 131.7 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5653, allocations: 0 / 0.5058 GB, free: 131.7 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1)