Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001181/0.001181, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.116/1.116, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008191/0.0008192, allocations: 94.31 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09233/0.09317, allocations: 56.9 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.1833, allocations: 51.47 MB / 394.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/0.3992, allocations: 82.98 MB / 477.7 MB, free: 9.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/0.3995, allocations: 65.91 kB / 477.7 MB, free: 9.676 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.06099/0.4605, allocations: 34.04 MB / 0.4998 GB, free: 13.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4605, allocations: 8 kB / 0.4998 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.4607, allocations: 90.97 kB / 0.4999 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006691/0.4614, allocations: 431.5 kB / 0.5003 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.4614, allocations: 12 kB / 0.5003 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.161e-05/0.4615, allocations: 20 kB / 0.5003 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005378/0.4621, allocations: 356.1 kB / 0.5007 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007128/0.4628, allocations: 494.2 kB / 0.5011 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.4628, allocations: 0 / 0.5011 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.165e-05/0.4629, allocations: 8 kB / 0.5011 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4629, allocations: 4 kB / 0.5011 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.4644, allocations: 0.9108 MB / 0.502 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005895/0.465, allocations: 0.4908 MB / 0.5025 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005396/0.4656, allocations: 488.9 kB / 0.503 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.4656, allocations: 4 kB / 0.503 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006551/0.4662, allocations: 0.5915 MB / 0.5036 GB, free: 9.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.724e-06/0.4663, allocations: 4 kB / 0.5036 GB, free: 9.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001137/0.4674, allocations: 0.7453 MB / 0.5043 GB, free: 9.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/0.4676, allocations: 279.3 kB / 0.5046 GB, free: 8.816 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.4689, allocations: 0.9955 MB / 0.5055 GB, free: 7.812 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.255e-05/0.469, allocations: 41.81 kB / 0.5056 GB, free: 7.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/0.469, allocations: 114 kB / 0.5057 GB, free: 7.652 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.109e-05/0.4691, allocations: 71.17 kB / 0.5058 GB, free: 7.582 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/0.4692, allocations: 8 kB / 0.5058 GB, free: 7.574 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4693, allocations: 342.8 kB / 0.5061 GB, free: 7.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.4697, allocations: 347.8 kB / 0.5064 GB, free: 6.891 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/0.4702, allocations: 343.8 kB / 0.5067 GB, free: 6.555 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.4705, allocations: 239.8 kB / 0.507 GB, free: 6.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4705, allocations: 4 kB / 0.507 GB, free: 6.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009877/0.4715, allocations: 0.717 MB / 0.5077 GB, free: 5.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.4715, allocations: 4 kB / 0.5077 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4716, allocations: 0 / 0.5077 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.4716, allocations: 3.984 kB / 0.5077 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.095e-05/0.4716, allocations: 8 kB / 0.5077 GB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.4716, allocations: 4 kB / 0.5077 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.4719, allocations: 39.81 kB / 0.5077 GB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.4721, allocations: 122.4 kB / 0.5079 GB, free: 5.418 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.0003245/0.4724, allocations: 394.1 kB / 0.5082 GB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.4725, allocations: 94.91 kB / 0.5083 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002418/0.4728, allocations: 151.5 kB / 0.5085 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.4728, allocations: 0 / 0.5085 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4728, allocations: 0 / 0.5085 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4728, allocations: 0 / 0.5085 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.4746, allocations: 1.462 MB / 0.5099 GB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4746, allocations: 8 kB / 0.5099 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.875e-06/0.4746, allocations: 0 / 0.5099 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.4746, allocations: 0 / 0.5099 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.678e-05/0.4747, allocations: 39.97 kB / 0.5099 GB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4747, allocations: 0 / 0.5099 GB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4747, allocations: 3.906 kB / 0.5099 GB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001148/0.4759, allocations: 0.9201 MB / 0.5108 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001284/0.4772, allocations: 1.311 MB / 0.5121 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008504/0.478, allocations: 0.5776 MB / 0.5127 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.4782, allocations: 55.97 kB / 0.5127 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.4785, allocations: 31.97 kB / 0.5128 GB, free: 228 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004166/0.4789, allocations: 239.8 kB / 0.513 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/0.4791, allocations: 131.9 kB / 0.5131 GB, free: 15.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001043/0.4802, allocations: 0.8226 MB / 0.5139 GB, free: 15.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009765/0.4812, allocations: 107.9 kB / 0.514 GB, free: 14.93 MB / 394.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.0002488/0.4814, allocations: 184.4 kB / 0.5142 GB, free: 14.74 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.4827, allocations: 1.078 MB / 0.5153 GB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4827, allocations: 0 / 0.5153 GB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009438/0.4837, allocations: 0.9527 MB / 0.5162 GB, free: 12.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009842/0.4847, allocations: 249.3 kB / 0.5164 GB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.4872, allocations: 1.716 MB / 0.5181 GB, free: 10.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007831/0.488, allocations: 1.045 MB / 0.5191 GB, free: 9.582 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.488, allocations: 4 kB / 0.5191 GB, free: 9.578 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1)