Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009894/0.0009894, allocations: 181.4 kB / 8.131 MB, free: 2.207 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.122/1.122, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008875/0.0008876, allocations: 94.08 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09598/0.0969, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.2876, allocations: 50.4 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08394/0.3716, allocations: 82.34 MB / 469.3 MB, free: 4.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.3718, allocations: 63.97 kB / 469.4 MB, free: 4.43 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.2091/0.5809, allocations: 38.23 MB / 0.4957 GB, free: 101.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.581, allocations: 11.25 kB / 0.4957 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.5811, allocations: 87 kB / 0.4958 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.5816, allocations: 437.7 kB / 0.4962 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.5817, allocations: 16.66 kB / 0.4963 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.5817, allocations: 21.27 kB / 0.4963 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004084/0.5821, allocations: 357 kB / 0.4966 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.5827, allocations: 0.4904 MB / 0.4971 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.5827, allocations: 0 / 0.4971 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.5828, allocations: 12.19 kB / 0.4971 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.5828, allocations: 4.75 kB / 0.4971 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.5839, allocations: 0.8349 MB / 0.4979 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.5843, allocations: 0.5022 MB / 0.4984 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/0.5848, allocations: 494.9 kB / 0.4989 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.5848, allocations: 3.125 kB / 0.4989 GB, free: 100.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005179/0.5853, allocations: 0.6264 MB / 0.4995 GB, free: 100.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.673e-06/0.5853, allocations: 0 / 0.4995 GB, free: 100.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009268/0.5863, allocations: 0.7706 MB / 0.5003 GB, free: 100.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.5864, allocations: 281.6 kB / 0.5005 GB, free: 99.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009777/0.5873, allocations: 0.9995 MB / 0.5015 GB, free: 99.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.847e-05/0.5874, allocations: 42.73 kB / 0.5016 GB, free: 99.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.905e-05/0.5875, allocations: 119.5 kB / 0.5017 GB, free: 99.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.109e-05/0.5875, allocations: 77.8 kB / 0.5017 GB, free: 99.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.471e-05/0.5876, allocations: 16.62 kB / 0.5018 GB, free: 99.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.253e-05/0.5876, allocations: 343.1 kB / 0.5021 GB, free: 99.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.588, allocations: 345.5 kB / 0.5024 GB, free: 99.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.5884, allocations: 353.8 kB / 0.5027 GB, free: 99.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.5887, allocations: 250.8 kB / 0.503 GB, free: 99.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.5887, allocations: 0 / 0.503 GB, free: 99.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008066/0.5895, allocations: 0.7384 MB / 0.5037 GB, free: 99.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.5895, allocations: 7.125 kB / 0.5037 GB, free: 99.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.5895, allocations: 0 / 0.5037 GB, free: 99.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.5895, allocations: 0 / 0.5037 GB, free: 99.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.407e-05/0.5896, allocations: 7.906 kB / 0.5037 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.5896, allocations: 6.406 kB / 0.5037 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.5899, allocations: 26.14 kB / 0.5038 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.59, allocations: 147.7 kB / 0.5039 GB, free: 99.09 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.0002534/0.5903, allocations: 412.3 kB / 0.5043 GB, free: 98.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.232e-05/0.5904, allocations: 89.91 kB / 0.5044 GB, free: 98.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.5906, allocations: 153.6 kB / 0.5045 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.5906, allocations: 0 / 0.5045 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5906, allocations: 0 / 0.5045 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.5906, allocations: 0 / 0.5045 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.5921, allocations: 1.488 MB / 0.506 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5921, allocations: 4 kB / 0.506 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.728e-06/0.5921, allocations: 3.844 kB / 0.506 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.5921, allocations: 0 / 0.506 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-05/0.5922, allocations: 34.8 kB / 0.506 GB, free: 98.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5922, allocations: 3.5 kB / 0.506 GB, free: 98.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5922, allocations: 3.797 kB / 0.506 GB, free: 98.04 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009479/0.5931, allocations: 0.9419 MB / 0.5069 GB, free: 97.66 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000934/0.5941, allocations: 1.316 MB / 0.5082 GB, free: 96.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007083/0.5948, allocations: 0.5797 MB / 0.5088 GB, free: 96.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.595, allocations: 62.92 kB / 0.5089 GB, free: 96.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.5954, allocations: 33.72 kB / 0.5089 GB, free: 96.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/0.5959, allocations: 240.5 kB / 0.5091 GB, free: 96.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/0.5961, allocations: 163 kB / 0.5093 GB, free: 96.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001074/0.5972, allocations: 0.8304 MB / 0.5101 GB, free: 96.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001001/0.5982, allocations: 106.4 kB / 0.5102 GB, free: 96.07 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,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.0002321/0.5985, allocations: 180.7 kB / 0.5104 GB, free: 95.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.5996, allocations: 1.098 MB / 0.5114 GB, free: 95.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5996, allocations: 6.469 kB / 0.5114 GB, free: 95.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006769/0.6002, allocations: 0.9185 MB / 0.5123 GB, free: 94.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009566/0.6012, allocations: 270.3 kB / 0.5126 GB, free: 94.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.6032, allocations: 1.738 MB / 0.5143 GB, free: 92.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/0.6037, allocations: 1.054 MB / 0.5153 GB, free: 91.88 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.6037, allocations: 0 / 0.5153 GB, free: 91.88 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1)