Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRL",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.001005/0.001005, allocations: 185.6 kB / 8.136 MB, free: 2.223 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.116/1.116, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0009207/0.0009207, allocations: 103.4 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09851/0.09946, allocations: 55.81 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.3056, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08567/0.3913, allocations: 82.6 MB / 469.6 MB, free: 4.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.3915, allocations: 71.91 kB / 469.7 MB, free: 4.125 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0611/0.4526, allocations: 33.65 MB / 0.4915 GB, free: 2.477 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.4527, allocations: 12 kB / 0.4915 GB, free: 2.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.4529, allocations: 134.4 kB / 0.4917 GB, free: 2.332 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.4537, allocations: 0.5129 MB / 0.4922 GB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.4538, allocations: 23.98 kB / 0.4922 GB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-05/0.4539, allocations: 35.83 kB / 0.4922 GB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000641/0.4545, allocations: 451.8 kB / 0.4927 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008483/0.4554, allocations: 0.614 MB / 0.4933 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.4554, allocations: 0 / 0.4933 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.355e-05/0.4555, allocations: 11.98 kB / 0.4933 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.4555, allocations: 4 kB / 0.4933 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1435/0.599, allocations: 1.056 MB / 0.4943 GB, free: 75.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007506/0.5998, allocations: 0.6921 MB / 0.495 GB, free: 75.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.6004, allocations: 0.6752 MB / 0.4956 GB, free: 75.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.6005, allocations: 3.656 kB / 0.4956 GB, free: 75.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007266/0.6012, allocations: 0.7254 MB / 0.4963 GB, free: 75.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.075e-06/0.6012, allocations: 0 / 0.4963 GB, free: 75.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001146/0.6024, allocations: 0.9646 MB / 0.4973 GB, free: 75.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.6025, allocations: 329.4 kB / 0.4976 GB, free: 75.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.6044, allocations: 1.546 MB / 0.4991 GB, free: 74.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/0.6044, allocations: 48.17 kB / 0.4992 GB, free: 74.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.6045, allocations: 155 kB / 0.4993 GB, free: 74.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.637e-05/0.6046, allocations: 88.47 kB / 0.4994 GB, free: 74.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.196e-05/0.6047, allocations: 13.84 kB / 0.4994 GB, free: 74.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.741e-05/0.6048, allocations: 379 kB / 0.4998 GB, free: 74.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00047/0.6053, allocations: 453.3 kB / 0.5002 GB, free: 74.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.6057, allocations: 444.1 kB / 0.5006 GB, free: 74.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.606, allocations: 305.3 kB / 0.5009 GB, free: 74.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.6061, allocations: 0 / 0.5009 GB, free: 74.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001019/0.6071, allocations: 0.9156 MB / 0.5018 GB, free: 74.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.6071, allocations: 7.906 kB / 0.5018 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.6071, allocations: 3.984 kB / 0.5018 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.6071, allocations: 0 / 0.5018 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.839e-05/0.6072, allocations: 2.438 kB / 0.5018 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.6072, allocations: 7.484 kB / 0.5018 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.6076, allocations: 37.92 kB / 0.5019 GB, free: 74.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.6077, allocations: 151.5 kB / 0.502 GB, free: 74.07 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.000296/0.608, allocations: 453.5 kB / 0.5024 GB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.6082, allocations: 126.9 kB / 0.5026 GB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000362/0.6085, allocations: 248 kB / 0.5028 GB, free: 73.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-06/0.6085, allocations: 3.891 kB / 0.5028 GB, free: 73.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.6085, allocations: 7.328 kB / 0.5028 GB, free: 73.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.6086, allocations: 0 / 0.5028 GB, free: 73.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.6104, allocations: 1.881 MB / 0.5046 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.6105, allocations: 0 / 0.5046 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.031e-05/0.6105, allocations: 3.375 kB / 0.5047 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.6105, allocations: 0 / 0.5047 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.12e-05/0.6106, allocations: 38.62 kB / 0.5047 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.6106, allocations: 3.828 kB / 0.5047 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.6106, allocations: 3.656 kB / 0.5047 GB, free: 73.09 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001095/0.6117, allocations: 1.14 MB / 0.5058 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001157/0.6128, allocations: 1.516 MB / 0.5073 GB, free: 72.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000893/0.6138, allocations: 0.698 MB / 0.508 GB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002/0.614, allocations: 65.77 kB / 0.508 GB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.6143, allocations: 39.52 kB / 0.5081 GB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004539/0.6148, allocations: 371.7 kB / 0.5084 GB, free: 72.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.6149, allocations: 164 kB / 0.5086 GB, free: 72.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001786/0.6167, allocations: 1.262 MB / 0.5098 GB, free: 71.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001125/0.6179, allocations: 137.1 kB / 0.5099 GB, free: 71.7 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0002392/0.6181, allocations: 179.5 kB / 0.5101 GB, free: 71.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.6195, allocations: 1.445 MB / 0.5115 GB, free: 71.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.6195, allocations: 0.5938 kB / 0.5115 GB, free: 71.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009503/0.6205, allocations: 1.181 MB / 0.5127 GB, free: 71.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.6217, allocations: 300.2 kB / 0.513 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003271/0.6249, allocations: 2.484 MB / 0.5154 GB, free: 69.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007971/0.6258, allocations: 1.249 MB / 0.5166 GB, free: 68.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6258, allocations: 0.6875 kB / 0.5166 GB, free: 68.27 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1)