Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRH",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.001617/0.001617, allocations: 181.2 kB / 8.134 MB, free: 2.195 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.135/1.135, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0009678/0.0009677, allocations: 101.7 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09491/0.09591, allocations: 55.82 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.2864, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08507/0.3715, allocations: 82.55 MB / 469.5 MB, free: 4.332 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3717, allocations: 75.89 kB / 469.6 MB, free: 4.258 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.05881/0.4306, allocations: 32.12 MB / 0.49 GB, free: 4.145 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.4306, allocations: 8 kB / 0.49 GB, free: 4.137 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.4308, allocations: 134.4 kB / 0.4901 GB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007842/0.4316, allocations: 0.5246 MB / 0.4906 GB, free: 3.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/0.4317, allocations: 20 kB / 0.4906 GB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.737e-05/0.4318, allocations: 20 kB / 0.4907 GB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006151/0.4324, allocations: 451.8 kB / 0.4911 GB, free: 2.949 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008204/0.4332, allocations: 0.6218 MB / 0.4917 GB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.4333, allocations: 3.938 kB / 0.4917 GB, free: 2.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.996e-05/0.4333, allocations: 12 kB / 0.4917 GB, free: 2.309 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.4333, allocations: 4 kB / 0.4917 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.4351, allocations: 1.055 MB / 0.4928 GB, free: 1.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007378/0.4359, allocations: 0.6859 MB / 0.4934 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1059/0.5418, allocations: 0.6773 MB / 0.4941 GB, free: 133.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.5419, allocations: 0 / 0.4941 GB, free: 133.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009972/0.5429, allocations: 0.7239 MB / 0.4948 GB, free: 133.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.705e-06/0.5429, allocations: 0 / 0.4948 GB, free: 133.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001295/0.5442, allocations: 0.972 MB / 0.4957 GB, free: 133.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.5444, allocations: 326 kB / 0.4961 GB, free: 133.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002727/0.5471, allocations: 1.549 MB / 0.4976 GB, free: 132.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.5472, allocations: 53.94 kB / 0.4976 GB, free: 132.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.5474, allocations: 148 kB / 0.4978 GB, free: 132.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.5475, allocations: 89.64 kB / 0.4978 GB, free: 132.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/0.5476, allocations: 10.03 kB / 0.4979 GB, free: 132.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.5477, allocations: 382.4 kB / 0.4982 GB, free: 132.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.5483, allocations: 442.7 kB / 0.4986 GB, free: 132.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.5488, allocations: 448.5 kB / 0.4991 GB, free: 132.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.5491, allocations: 309.1 kB / 0.4994 GB, free: 132.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5491, allocations: 3.719 kB / 0.4994 GB, free: 132.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001154/0.5503, allocations: 0.9036 MB / 0.5002 GB, free: 132.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.5503, allocations: 7.062 kB / 0.5003 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5503, allocations: 0 / 0.5003 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.5504, allocations: 3.391 kB / 0.5003 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.103e-05/0.5504, allocations: 13.69 kB / 0.5003 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.5504, allocations: 0 / 0.5003 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004236/0.5508, allocations: 39.94 kB / 0.5003 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.551, allocations: 151.5 kB / 0.5005 GB, free: 132.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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.0003467/0.5514, allocations: 463.6 kB / 0.5009 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.5515, allocations: 130.7 kB / 0.501 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005272/0.5521, allocations: 250.1 kB / 0.5013 GB, free: 131.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.5521, allocations: 3.938 kB / 0.5013 GB, free: 131.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.5521, allocations: 2.688 kB / 0.5013 GB, free: 131.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.5521, allocations: 3.891 kB / 0.5013 GB, free: 131.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.5543, allocations: 1.873 MB / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5544, allocations: 0 / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.278e-05/0.5544, allocations: 6.188 kB / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.5544, allocations: 0 / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.446e-05/0.5545, allocations: 38.75 kB / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.5545, allocations: 0 / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5545, allocations: 0 / 0.5031 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0012/0.5557, allocations: 1.145 MB / 0.5043 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001229/0.5569, allocations: 1.507 MB / 0.5057 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.558, allocations: 0.7011 MB / 0.5064 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.5582, allocations: 62.11 kB / 0.5065 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.5586, allocations: 44.56 kB / 0.5065 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005052/0.5591, allocations: 369.5 kB / 0.5069 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/0.5593, allocations: 162.3 kB / 0.507 GB, free: 130.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00165/0.5609, allocations: 1.271 MB / 0.5083 GB, free: 129.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001066/0.562, allocations: 132.9 kB / 0.5084 GB, free: 129.8 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0003034/0.5623, allocations: 187.3 kB / 0.5086 GB, free: 129.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.5639, allocations: 1.45 MB / 0.51 GB, free: 129.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5639, allocations: 0 / 0.51 GB, free: 129.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.5651, allocations: 1.18 MB / 0.5111 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.5663, allocations: 296.5 kB / 0.5114 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004436/0.5707, allocations: 2.487 MB / 0.5139 GB, free: 128.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001078/0.5718, allocations: 1.245 MB / 0.5151 GB, free: 127.7 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5718, allocations: 0 / 0.5151 GB, free: 127.7 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRH_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRH.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1)