Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001458/0.001458, allocations: 176.1 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.138/1.138, allocations: 205.2 MB / 214.1 MB, free: 5.145 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008749/0.0008749, allocations: 83.28 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.158/0.1589, allocations: 52.97 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06617/0.2251, allocations: 47.57 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.218/0.4431, allocations: 81.24 MB / 443.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001576/0.4433, allocations: 67.48 kB / 443.9 MB, free: 10.7 MB / 314.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.05423/0.4976, allocations: 33.63 MB / 477.6 MB, free: 13.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.4976, allocations: 8 kB / 477.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.4978, allocations: 94.91 kB / 477.7 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.4984, allocations: 424 kB / 478.1 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.336e-05/0.4984, allocations: 15.69 kB / 478.1 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-05/0.4985, allocations: 23.98 kB / 478.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004733/0.499, allocations: 352 kB / 478.5 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.4996, allocations: 484 kB / 478.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.4996, allocations: 0 / 478.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.058e-05/0.4997, allocations: 11.5 kB / 478.9 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.4997, allocations: 4 kB / 479 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.5012, allocations: 0.9233 MB / 479.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.5018, allocations: 0.496 MB / 480.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.5023, allocations: 489.2 kB / 480.8 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.5023, allocations: 4 kB / 480.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006257/0.5029, allocations: 0.5886 MB / 481.4 MB, free: 10.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.593e-06/0.503, allocations: 0 / 481.4 MB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009808/0.5039, allocations: 0.7397 MB / 482.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.5041, allocations: 288.2 kB / 482.5 MB, free: 9.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.5054, allocations: 0.9914 MB / 483.5 MB, free: 8.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.79e-05/0.5055, allocations: 45.62 kB / 483.5 MB, free: 8.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.5055, allocations: 105.8 kB / 483.6 MB, free: 8.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.169e-05/0.5056, allocations: 74.84 kB / 483.7 MB, free: 8.531 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.5057, allocations: 8 kB / 483.7 MB, free: 8.523 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.5058, allocations: 338.4 kB / 484 MB, free: 8.195 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004173/0.5062, allocations: 346.3 kB / 484.3 MB, free: 7.965 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004076/0.5066, allocations: 343.4 kB / 484.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.507, allocations: 253.7 kB / 484.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.507, allocations: 4 kB / 484.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009567/0.5079, allocations: 0.703 MB / 485.6 MB, free: 7.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.508, allocations: 5.719 kB / 485.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.508, allocations: 0 / 485.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.508, allocations: 15.91 kB / 485.7 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.231e-05/0.508, allocations: 4 kB / 485.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.508, allocations: 0 / 485.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.5084, allocations: 35.83 kB / 485.7 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.5085, allocations: 127.2 kB / 485.8 MB, free: 6.84 MB / 330.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.0003283/0.5088, allocations: 394 kB / 486.2 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.509, allocations: 86.97 kB / 486.3 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002448/0.5092, allocations: 152.1 kB / 486.4 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.5092, allocations: 0 / 486.4 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5092, allocations: 0 / 486.4 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.5093, allocations: 7.984 kB / 486.4 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.511, allocations: 1.471 MB / 487.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.511, allocations: 3.938 kB / 487.9 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.235e-06/0.511, allocations: 0 / 487.9 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.511, allocations: 0 / 487.9 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-05/0.5111, allocations: 31.98 kB / 488 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5111, allocations: 0 / 488 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5111, allocations: 0 / 488 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001111/0.5122, allocations: 0.9278 MB / 488.9 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0012/0.5134, allocations: 1.311 MB / 490.2 MB, free: 2.461 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008196/0.5143, allocations: 0.5698 MB / 490.8 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.5145, allocations: 59.94 kB / 490.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.5148, allocations: 35.98 kB / 490.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003759/0.5152, allocations: 235.8 kB / 491.1 MB, free: 1.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/0.5153, allocations: 135.8 kB / 491.2 MB, free: 1.418 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0009548/0.5163, allocations: 0.8265 MB / 492 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009366/0.5172, allocations: 107.9 kB / 492.2 MB, free: 0.4922 MB / 330.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.0002561/0.5175, allocations: 180.3 kB / 492.3 MB, free: 312 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.5187, allocations: 1.082 MB / 493.4 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.5187, allocations: 0 / 493.4 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009031/0.5196, allocations: 0.9528 MB / 494.4 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009504/0.5206, allocations: 246.8 kB / 494.6 MB, free: 13.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.523, allocations: 1.72 MB / 496.3 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007382/0.5238, allocations: 1.057 MB / 497.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5238, allocations: 0 / 497.4 MB, free: 11.11 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1)