Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009535/0.0009535, allocations: 183.2 kB / 8.475 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.077/1.077, allocations: 205.2 MB / 214.1 MB, free: 5.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008295/0.0008295, allocations: 83.39 kB / 262.1 MB, free: 5.512 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1559/0.1567, allocations: 52.97 MB / 315.1 MB, free: 41.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06446/0.2212, allocations: 47.58 MB / 362.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2114/0.4326, allocations: 81.39 MB / 444 MB, free: 10.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.4328, allocations: 65.06 kB / 444.1 MB, free: 10.91 MB / 314.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.04676/0.4796, allocations: 28.26 MB / 472.3 MB, free: 1.375 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.4796, allocations: 9.562 kB / 472.3 MB, free: 1.375 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.4799, allocations: 87.16 kB / 472.4 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006731/0.4806, allocations: 435 kB / 472.9 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.4807, allocations: 20.22 kB / 472.9 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.288e-05/0.4807, allocations: 18.75 kB / 472.9 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004824/0.4812, allocations: 359 kB / 473.2 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005946/0.4818, allocations: 0.4919 MB / 473.7 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.4819, allocations: 0 / 473.7 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.471e-05/0.4819, allocations: 15.52 kB / 473.8 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.4819, allocations: 3.906 kB / 473.8 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.4832, allocations: 0.8461 MB / 474.6 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.4837, allocations: 0.499 MB / 475.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.4842, allocations: 0.49 MB / 475.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.4843, allocations: 4 kB / 475.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006104/0.4849, allocations: 0.6165 MB / 476.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 3.106e-06/0.4849, allocations: 0 / 476.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001068/0.486, allocations: 0.7771 MB / 477 MB, free: 14.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.4861, allocations: 276 kB / 477.3 MB, free: 13.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.4874, allocations: 1.003 MB / 478.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.062e-05/0.4875, allocations: 40.77 kB / 478.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.4876, allocations: 115.5 kB / 478.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4877, allocations: 83.98 kB / 478.5 MB, free: 12.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.251e-05/0.4877, allocations: 15.92 kB / 478.5 MB, free: 12.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4879, allocations: 344.2 kB / 478.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004239/0.4883, allocations: 346.8 kB / 479.2 MB, free: 12.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003979/0.4887, allocations: 351.2 kB / 479.5 MB, free: 12.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003073/0.489, allocations: 253.5 kB / 479.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4891, allocations: 0 / 479.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009526/0.49, allocations: 0.7339 MB / 480.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.49, allocations: 4 kB / 480.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.49, allocations: 7.938 kB / 480.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.4901, allocations: 0 / 480.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.763e-05/0.4901, allocations: 4 kB / 480.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.4901, allocations: 7.844 kB / 480.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.4905, allocations: 27.97 kB / 480.6 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.4906, allocations: 148 kB / 480.7 MB, free: 11.1 MB / 330.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.0003382/0.491, allocations: 400.8 kB / 481.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.4911, allocations: 94.95 kB / 481.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000314/0.4914, allocations: 150.8 kB / 481.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4915, allocations: 0 / 481.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4915, allocations: 0 / 481.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4915, allocations: 4 kB / 481.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.4933, allocations: 1.483 MB / 482.8 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4934, allocations: 0 / 482.8 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.066e-05/0.4934, allocations: 0 / 482.8 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/0.4934, allocations: 4 kB / 482.8 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.977e-05/0.4935, allocations: 39.72 kB / 482.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4935, allocations: 0 / 482.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.4935, allocations: 4 kB / 482.9 MB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001149/0.4946, allocations: 0.9374 MB / 483.8 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001245/0.4959, allocations: 1.326 MB / 485.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008937/0.4968, allocations: 0.5814 MB / 485.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000197/0.497, allocations: 58.97 kB / 485.8 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.4973, allocations: 37.33 kB / 485.8 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004072/0.4978, allocations: 247.4 kB / 486 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/0.498, allocations: 152.9 kB / 486.2 MB, free: 6.477 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001098/0.4991, allocations: 0.8265 MB / 487 MB, free: 5.656 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001044/0.5001, allocations: 116 kB / 487.1 MB, free: 5.543 MB / 330.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.0002402/0.5004, allocations: 176.5 kB / 487.3 MB, free: 5.359 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.5016, allocations: 1.105 MB / 488.4 MB, free: 4.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5016, allocations: 4 kB / 488.4 MB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008434/0.5025, allocations: 0.921 MB / 489.3 MB, free: 3.246 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.5035, allocations: 270.4 kB / 489.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.5061, allocations: 1.73 MB / 491.3 MB, free: 1.227 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007051/0.5068, allocations: 1.053 MB / 492.4 MB, free: 148 kB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5068, allocations: 0 / 492.4 MB, free: 148 kB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1)