Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL",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.001142/0.001142, allocations: 181.6 kB / 8.135 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.092/1.092, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0009151/0.0009151, allocations: 109.4 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09244/0.09338, allocations: 55.81 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.2851, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08398/0.3692, allocations: 82.16 MB / 469.2 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001759/0.3694, allocations: 63.97 kB / 469.2 MB, free: 4.594 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.06688/0.4363, allocations: 33.99 MB / 0.4914 GB, free: 2.613 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4363, allocations: 8 kB / 0.4914 GB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.4365, allocations: 86.97 kB / 0.4915 GB, free: 2.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007431/0.4373, allocations: 415.6 kB / 0.4919 GB, free: 2.074 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.971e-05/0.4373, allocations: 23.97 kB / 0.4919 GB, free: 2.051 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.721e-05/0.4374, allocations: 20 kB / 0.492 GB, free: 2.031 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005334/0.438, allocations: 352.1 kB / 0.4923 GB, free: 1.684 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007017/0.4387, allocations: 486.3 kB / 0.4928 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.4387, allocations: 0 / 0.4928 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.4388, allocations: 12 kB / 0.4928 GB, free: 1.191 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4388, allocations: 7.938 kB / 0.4928 GB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.4406, allocations: 0.9145 MB / 0.4937 GB, free: 236 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.122/0.5626, allocations: 0.4922 MB / 0.4941 GB, free: 136.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005557/0.5632, allocations: 495.4 kB / 0.4946 GB, free: 136.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.5632, allocations: 0 / 0.4946 GB, free: 136.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005871/0.5638, allocations: 0.5971 MB / 0.4952 GB, free: 136 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.244e-06/0.5638, allocations: 0 / 0.4952 GB, free: 136 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.000997/0.5648, allocations: 0.7389 MB / 0.4959 GB, free: 135.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.906e-05/0.5649, allocations: 285.1 kB / 0.4962 GB, free: 135.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.5662, allocations: 0.9937 MB / 0.4972 GB, free: 135.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.5663, allocations: 38.3 kB / 0.4972 GB, free: 135.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.672e-05/0.5663, allocations: 117.6 kB / 0.4973 GB, free: 135.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.43e-05/0.5664, allocations: 65.25 kB / 0.4974 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.5665, allocations: 15.14 kB / 0.4974 GB, free: 135.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/0.5665, allocations: 345.2 kB / 0.4977 GB, free: 135.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.5669, allocations: 345.1 kB / 0.4981 GB, free: 135.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003723/0.5673, allocations: 343.2 kB / 0.4984 GB, free: 135.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.5676, allocations: 250.8 kB / 0.4986 GB, free: 135.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5676, allocations: 0 / 0.4986 GB, free: 135.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000822/0.5684, allocations: 0.7085 MB / 0.4993 GB, free: 135 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.5684, allocations: 11.02 kB / 0.4993 GB, free: 135 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.5684, allocations: 3.844 kB / 0.4993 GB, free: 135 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.5685, allocations: 0 / 0.4993 GB, free: 135 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.559e-05/0.5685, allocations: 3 kB / 0.4993 GB, free: 135 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.5685, allocations: 4.453 kB / 0.4993 GB, free: 135 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.5688, allocations: 37.48 kB / 0.4994 GB, free: 135 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.569, allocations: 118.1 kB / 0.4995 GB, free: 135 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * 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.0002597/0.5692, allocations: 405.5 kB / 0.4999 GB, free: 134.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-05/0.5693, allocations: 89.06 kB / 0.5 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.5696, allocations: 154.1 kB / 0.5001 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.5696, allocations: 3.719 kB / 0.5001 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.5696, allocations: 0 / 0.5001 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.5696, allocations: 0 / 0.5001 GB, free: 134.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.5711, allocations: 1.455 MB / 0.5015 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5711, allocations: 0 / 0.5015 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.557e-06/0.5712, allocations: 7.047 kB / 0.5015 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.5712, allocations: 3.719 kB / 0.5015 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.155e-05/0.5712, allocations: 31.09 kB / 0.5016 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.5712, allocations: 3.938 kB / 0.5016 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5712, allocations: 0 / 0.5016 GB, free: 134.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009784/0.5722, allocations: 0.9303 MB / 0.5025 GB, free: 134 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001017/0.5733, allocations: 1.314 MB / 0.5038 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007456/0.574, allocations: 0.5672 MB / 0.5043 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.5742, allocations: 64.92 kB / 0.5044 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003048/0.5745, allocations: 36.03 kB / 0.5044 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/0.5749, allocations: 238.3 kB / 0.5046 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.575, allocations: 131.4 kB / 0.5048 GB, free: 133.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009287/0.576, allocations: 0.8238 MB / 0.5056 GB, free: 133.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001047/0.577, allocations: 105.3 kB / 0.5057 GB, free: 133.1 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * 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.0002106/0.5773, allocations: 181 kB / 0.5058 GB, free: 133 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.5783, allocations: 1.074 MB / 0.5069 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5783, allocations: 0 / 0.5069 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007877/0.5791, allocations: 0.9562 MB / 0.5078 GB, free: 132.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.5801, allocations: 250 kB / 0.5081 GB, free: 132.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.5825, allocations: 1.713 MB / 0.5097 GB, free: 132.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000624/0.5832, allocations: 1.048 MB / 0.5108 GB, free: 131.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5832, allocations: 1.062 kB / 0.5108 GB, free: 131.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1)