Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH",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.134 MB, free: 2.219 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.188/1.188, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009577/0.0009576, allocations: 104 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09485/0.09584, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.2894, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0829/0.3724, allocations: 82.44 MB / 469.4 MB, free: 4.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.3726, allocations: 71.89 kB / 469.5 MB, free: 4.254 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.0581/0.4307, allocations: 31.71 MB / 0.4895 GB, free: 4.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.4308, allocations: 8 kB / 0.4895 GB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.431, allocations: 134.4 kB / 0.4896 GB, free: 4.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007631/0.4318, allocations: 0.5172 MB / 0.4901 GB, free: 3.855 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.4318, allocations: 16 kB / 0.4901 GB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.938e-05/0.4319, allocations: 27.91 kB / 0.4902 GB, free: 3.812 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006197/0.4325, allocations: 471.8 kB / 0.4906 GB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008139/0.4334, allocations: 0.5984 MB / 0.4912 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.4334, allocations: 0 / 0.4912 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.837e-05/0.4335, allocations: 15.94 kB / 0.4912 GB, free: 2.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.4335, allocations: 4 kB / 0.4912 GB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.4354, allocations: 1.168 MB / 0.4923 GB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007229/0.4361, allocations: 0.6897 MB / 0.493 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006749/0.4368, allocations: 0.6764 MB / 0.4937 GB, free: 144 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.4368, allocations: 4 kB / 0.4937 GB, free: 140 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1465/0.5833, allocations: 0.7074 MB / 0.4944 GB, free: 76.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 4.959e-06/0.5834, allocations: 0 / 0.4944 GB, free: 76.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001413/0.5848, allocations: 0.9558 MB / 0.4953 GB, free: 76.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.585, allocations: 330.3 kB / 0.4956 GB, free: 75.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002876/0.5879, allocations: 1.565 MB / 0.4972 GB, free: 75.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.277e-05/0.5879, allocations: 43.55 kB / 0.4972 GB, free: 75.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.5881, allocations: 165.1 kB / 0.4974 GB, free: 75.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.759e-05/0.5882, allocations: 74.34 kB / 0.4974 GB, free: 75.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.5882, allocations: 14.06 kB / 0.4974 GB, free: 75.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.5884, allocations: 384.1 kB / 0.4978 GB, free: 75.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004984/0.5889, allocations: 453.3 kB / 0.4982 GB, free: 75.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004856/0.5894, allocations: 452 kB / 0.4987 GB, free: 75.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.5897, allocations: 304.8 kB / 0.499 GB, free: 75.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5897, allocations: 0 / 0.499 GB, free: 75.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001034/0.5907, allocations: 0.8968 MB / 0.4998 GB, free: 74.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.5908, allocations: 6.812 kB / 0.4998 GB, free: 74.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.5908, allocations: 0 / 0.4998 GB, free: 74.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.5908, allocations: 3.469 kB / 0.4998 GB, free: 74.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.566e-05/0.5908, allocations: 0 / 0.4998 GB, free: 74.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.5908, allocations: 3.984 kB / 0.4998 GB, free: 74.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.5912, allocations: 46.44 kB / 0.4999 GB, free: 74.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.5914, allocations: 122.3 kB / 0.5 GB, free: 74.95 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.0003237/0.5917, allocations: 457.6 kB / 0.5004 GB, free: 74.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.5919, allocations: 133 kB / 0.5006 GB, free: 74.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000479/0.5924, allocations: 253.4 kB / 0.5008 GB, free: 74.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.5924, allocations: 0 / 0.5008 GB, free: 74.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.5924, allocations: 3.906 kB / 0.5008 GB, free: 74.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.5924, allocations: 0 / 0.5008 GB, free: 74.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.5946, allocations: 1.875 MB / 0.5026 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5946, allocations: 0 / 0.5026 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.317e-06/0.5946, allocations: 0 / 0.5026 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.5946, allocations: 3.938 kB / 0.5027 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.846e-05/0.5947, allocations: 38.42 kB / 0.5027 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.5947, allocations: 3.531 kB / 0.5027 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5947, allocations: 0 / 0.5027 GB, free: 73.97 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001129/0.5958, allocations: 1.14 MB / 0.5038 GB, free: 73.76 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001175/0.597, allocations: 1.537 MB / 0.5053 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009453/0.598, allocations: 0.6886 MB / 0.506 GB, free: 72.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.5982, allocations: 64.08 kB / 0.506 GB, free: 72.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/0.5986, allocations: 38.7 kB / 0.5061 GB, free: 72.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004886/0.5991, allocations: 389.1 kB / 0.5064 GB, free: 72.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.5992, allocations: 133.1 kB / 0.5066 GB, free: 72.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001565/0.6008, allocations: 1.28 MB / 0.5078 GB, free: 72.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001605/0.6024, allocations: 138.5 kB / 0.508 GB, free: 72.58 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.0002827/0.6027, allocations: 181.6 kB / 0.5081 GB, free: 72.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.6046, allocations: 1.439 MB / 0.5095 GB, free: 72.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6046, allocations: 1.062 kB / 0.5095 GB, free: 72.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.6057, allocations: 1.22 MB / 0.5107 GB, free: 71.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.6069, allocations: 292.5 kB / 0.511 GB, free: 71.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/0.6108, allocations: 2.522 MB / 0.5135 GB, free: 70.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009233/0.6118, allocations: 1.239 MB / 0.5147 GB, free: 69.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.6118, allocations: 0 / 0.5147 GB, free: 69.66 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1)