Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001015/0.001016, allocations: 204.4 kB / 8.543 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 225.5 MB / 234.4 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008565/0.0008565, allocations: 89.98 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09064/0.09152, allocations: 56.9 MB / 343.2 MB, free: 8.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.1735, allocations: 51.48 MB / 394.7 MB, free: 4.867 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2095/0.3831, allocations: 82.94 MB / 477.6 MB, free: 9.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001595/0.3833, allocations: 69.7 kB / 477.7 MB, free: 9.734 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.04847/0.4318, allocations: 27.48 MB / 0.4934 GB, free: 3.859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.4318, allocations: 8 kB / 0.4934 GB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.432, allocations: 86.97 kB / 0.4934 GB, free: 3.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007096/0.4327, allocations: 420.5 kB / 0.4938 GB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.4328, allocations: 13.69 kB / 0.4939 GB, free: 3.336 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.931e-05/0.4329, allocations: 21.38 kB / 0.4939 GB, free: 3.316 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005206/0.4334, allocations: 352.9 kB / 0.4942 GB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000661/0.4341, allocations: 489.8 kB / 0.4947 GB, free: 2.703 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4341, allocations: 5.781 kB / 0.4947 GB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.15e-05/0.4341, allocations: 14.94 kB / 0.4947 GB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.4341, allocations: 0 / 0.4947 GB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.4357, allocations: 0.9199 MB / 0.4956 GB, free: 1.746 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005674/0.4363, allocations: 498.6 kB / 0.4961 GB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005596/0.4369, allocations: 496.8 kB / 0.4966 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.4369, allocations: 7.906 kB / 0.4966 GB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006429/0.4375, allocations: 0.5893 MB / 0.4971 GB, free: 128 kB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.964e-06/0.4375, allocations: 0 / 0.4971 GB, free: 128 kB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001104/0.4387, allocations: 0.7415 MB / 0.4979 GB, free: 15.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001871/0.4389, allocations: 291.2 kB / 0.4981 GB, free: 15.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/0.4403, allocations: 0.9878 MB / 0.4991 GB, free: 14.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.647e-05/0.4404, allocations: 45.69 kB / 0.4991 GB, free: 13.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.057e-05/0.4405, allocations: 110 kB / 0.4993 GB, free: 13.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.4406, allocations: 75.11 kB / 0.4993 GB, free: 13.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-05/0.4407, allocations: 12.09 kB / 0.4993 GB, free: 13.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4408, allocations: 342.8 kB / 0.4997 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.4412, allocations: 343.8 kB / 0.5 GB, free: 13.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004482/0.4417, allocations: 343.8 kB / 0.5003 GB, free: 12.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.442, allocations: 239.8 kB / 0.5005 GB, free: 12.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.442, allocations: 0.6562 kB / 0.5005 GB, free: 12.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001003/0.443, allocations: 0.7171 MB / 0.5012 GB, free: 11.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.4431, allocations: 7.938 kB / 0.5013 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4431, allocations: 0 / 0.5013 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.4431, allocations: 0 / 0.5013 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.874e-05/0.4431, allocations: 7.984 kB / 0.5013 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.4431, allocations: 0 / 0.5013 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.4435, allocations: 36.64 kB / 0.5013 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.4436, allocations: 118.4 kB / 0.5014 GB, free: 11.66 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.00036/0.444, allocations: 409.9 kB / 0.5018 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.4441, allocations: 87.06 kB / 0.5019 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000338/0.4445, allocations: 147.5 kB / 0.502 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4445, allocations: 0 / 0.502 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-05/0.4445, allocations: 4 kB / 0.502 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.4445, allocations: 0 / 0.502 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.4465, allocations: 1.463 MB / 0.5035 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.4465, allocations: 4 kB / 0.5035 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.186e-05/0.4465, allocations: 0 / 0.5035 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.4465, allocations: 11.83 kB / 0.5035 GB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.333e-05/0.4466, allocations: 31.98 kB / 0.5035 GB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4466, allocations: 3.938 kB / 0.5035 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4467, allocations: 4 kB / 0.5035 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001179/0.4478, allocations: 0.9278 MB / 0.5044 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0013/0.4491, allocations: 1.299 MB / 0.5057 GB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009281/0.4501, allocations: 0.5659 MB / 0.5062 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.4503, allocations: 63.95 kB / 0.5063 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.4507, allocations: 35.92 kB / 0.5063 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000393/0.4511, allocations: 247.6 kB / 0.5066 GB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/0.4512, allocations: 131.9 kB / 0.5067 GB, free: 6.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00107/0.4523, allocations: 0.8226 MB / 0.5075 GB, free: 5.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001057/0.4534, allocations: 104 kB / 0.5076 GB, free: 5.168 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.0002274/0.4536, allocations: 180.5 kB / 0.5078 GB, free: 4.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.4548, allocations: 1.078 MB / 0.5088 GB, free: 3.863 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4548, allocations: 0 / 0.5088 GB, free: 3.863 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008951/0.4557, allocations: 0.9528 MB / 0.5098 GB, free: 2.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.4567, allocations: 255.8 kB / 0.51 GB, free: 2.617 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.4592, allocations: 1.716 MB / 0.5117 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007799/0.46, allocations: 1.045 MB / 0.5127 GB, free: 15.81 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.46, allocations: 0 / 0.5127 GB, free: 15.81 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1)