Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",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.0009365/0.0009365, allocations: 182.3 kB / 8.131 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.123/1.123, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008895/0.0008895, allocations: 100.2 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09748/0.0984, allocations: 55.81 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.2816, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0793/0.3609, allocations: 82.13 MB / 469.1 MB, free: 4.641 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.3612, allocations: 63.97 kB / 469.2 MB, free: 4.578 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.0498/0.411, allocations: 27.43 MB / 496.6 MB, free: 9.184 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.4111, allocations: 12 kB / 496.6 MB, free: 9.172 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.4112, allocations: 87.06 kB / 496.7 MB, free: 9.086 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006132/0.4118, allocations: 431.5 kB / 497.1 MB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.4119, allocations: 16 kB / 497.2 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.648e-05/0.412, allocations: 20 kB / 497.2 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004983/0.4125, allocations: 352.1 kB / 497.5 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006574/0.4131, allocations: 486.3 kB / 498 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.4131, allocations: 0 / 498 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.4132, allocations: 15.89 kB / 498 MB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.4132, allocations: 7.938 kB / 498 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.4147, allocations: 0.9069 MB / 498.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.4153, allocations: 0.4947 MB / 499.4 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.4158, allocations: 497 kB / 499.9 MB, free: 5.797 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.4158, allocations: 4 kB / 499.9 MB, free: 5.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006237/0.4164, allocations: 0.5954 MB / 0.4888 GB, free: 5.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.306e-06/0.4164, allocations: 3.984 kB / 0.4888 GB, free: 5.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001025/0.4175, allocations: 0.7319 MB / 0.4895 GB, free: 4.418 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.4177, allocations: 287.3 kB / 0.4898 GB, free: 4.082 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.4189, allocations: 0.9916 MB / 0.4907 GB, free: 3.082 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.265e-05/0.419, allocations: 41.7 kB / 0.4908 GB, free: 3.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.4191, allocations: 117.9 kB / 0.4909 GB, free: 2.918 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.892e-05/0.4192, allocations: 71.17 kB / 0.4909 GB, free: 2.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.4192, allocations: 8 kB / 0.491 GB, free: 2.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4193, allocations: 342.8 kB / 0.4913 GB, free: 2.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004278/0.4198, allocations: 339.7 kB / 0.4916 GB, free: 2.164 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004236/0.4202, allocations: 343.8 kB / 0.4919 GB, free: 1.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.4205, allocations: 255.9 kB / 0.4922 GB, free: 1.578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4205, allocations: 4 kB / 0.4922 GB, free: 1.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009341/0.4215, allocations: 0.7115 MB / 0.4929 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.4215, allocations: 4 kB / 0.4929 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4215, allocations: 0 / 0.4929 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.4215, allocations: 7.875 kB / 0.4929 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.078e-05/0.4215, allocations: 4 kB / 0.4929 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.4215, allocations: 0 / 0.4929 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.4218, allocations: 39.88 kB / 0.4929 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.422, allocations: 123.9 kB / 0.493 GB, free: 0.6797 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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.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.0003265/0.4223, allocations: 398 kB / 0.4934 GB, free: 248 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.4225, allocations: 94.97 kB / 0.4935 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.4227, allocations: 147.5 kB / 0.4937 GB, free: 0 / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4227, allocations: 0 / 0.4937 GB, free: 0 / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4227, allocations: 0 / 0.4937 GB, free: 0 / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.5135, allocations: 3.672 kB / 0.4937 GB, free: 136.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.5152, allocations: 1.457 MB / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5152, allocations: 0 / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.091e-05/0.5152, allocations: 3.375 kB / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.5152, allocations: 3.594 kB / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-05/0.5153, allocations: 32.14 kB / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5153, allocations: 0 / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5153, allocations: 3.891 kB / 0.4951 GB, free: 136.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008708/0.5162, allocations: 0.9285 MB / 0.496 GB, free: 136.1 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008924/0.5171, allocations: 1.315 MB / 0.4973 GB, free: 135.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006941/0.5178, allocations: 0.5658 MB / 0.4979 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/0.518, allocations: 59.22 kB / 0.4979 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.5183, allocations: 38.98 kB / 0.498 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/0.5186, allocations: 241.2 kB / 0.4982 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5187, allocations: 125.5 kB / 0.4983 GB, free: 135.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007999/0.5195, allocations: 0.8239 MB / 0.4991 GB, free: 135.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009811/0.5205, allocations: 111.1 kB / 0.4992 GB, free: 135.2 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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.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.0001924/0.5207, allocations: 175.9 kB / 0.4994 GB, free: 135.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009535/0.5217, allocations: 1.076 MB / 0.5004 GB, free: 134.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5217, allocations: 0 / 0.5004 GB, free: 134.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.5224, allocations: 0.9513 MB / 0.5014 GB, free: 134.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009011/0.5233, allocations: 254.9 kB / 0.5016 GB, free: 134.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.5254, allocations: 1.716 MB / 0.5033 GB, free: 134.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005185/0.5259, allocations: 1.058 MB / 0.5043 GB, free: 133.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5259, allocations: 0 / 0.5043 GB, free: 133.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1)