Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009427/0.0009427, allocations: 182.4 kB / 8.475 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.147/1.147, allocations: 205.2 MB / 214.1 MB, free: 5.5 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.0008829/0.0008829, allocations: 94.75 kB / 262.1 MB, free: 5.559 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1548/0.1557, allocations: 52.96 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0699/0.2256, allocations: 47.58 MB / 362.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2109/0.4365, allocations: 81.2 MB / 443.8 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.4368, allocations: 68.34 kB / 443.9 MB, free: 10.68 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.04267/0.4795, allocations: 27.13 MB / 471 MB, free: 1.645 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.4795, allocations: 9.25 kB / 471 MB, free: 1.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.4797, allocations: 87.5 kB / 471.1 MB, free: 1.602 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.4802, allocations: 417.6 kB / 471.5 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.4802, allocations: 16.28 kB / 471.5 MB, free: 1.312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.4803, allocations: 27.69 kB / 471.6 MB, free: 1.305 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004599/0.4808, allocations: 351.6 kB / 471.9 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.4814, allocations: 485.6 kB / 472.4 MB, free: 1.129 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.4814, allocations: 0 / 472.4 MB, free: 1.129 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.336e-05/0.4815, allocations: 19.78 kB / 472.4 MB, free: 1.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.4815, allocations: 2.031 kB / 472.4 MB, free: 1.121 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.4828, allocations: 0.9065 MB / 473.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.4833, allocations: 0.4906 MB / 473.8 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.4837, allocations: 496.6 kB / 474.3 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.4837, allocations: 0 / 474.3 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005881/0.4843, allocations: 0.5941 MB / 474.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.373e-06/0.4843, allocations: 0 / 474.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001057/0.4854, allocations: 0.745 MB / 475.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001834/0.4855, allocations: 281.4 kB / 475.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.4868, allocations: 0.9981 MB / 476.9 MB, free: 13.99 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.212e-05/0.4868, allocations: 33.7 kB / 476.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.4869, allocations: 119.8 kB / 477.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.89e-05/0.487, allocations: 64.55 kB / 477.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.4871, allocations: 11 kB / 477.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4872, allocations: 343.1 kB / 477.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004096/0.4876, allocations: 349.1 kB / 477.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.488, allocations: 341.4 kB / 478.1 MB, free: 12.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.4883, allocations: 256.3 kB / 478.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4883, allocations: 0 / 478.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009272/0.4892, allocations: 0.7034 MB / 479.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.4893, allocations: 4 kB / 479.1 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.4893, allocations: 4 kB / 479.1 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.4893, allocations: 0 / 479.1 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.21e-05/0.4893, allocations: 3.938 kB / 479.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.4893, allocations: 0 / 479.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003161/0.4897, allocations: 46.94 kB / 479.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/0.4898, allocations: 119.9 kB / 479.3 MB, free: 12.09 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.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.0003359/0.4902, allocations: 404.3 kB / 479.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.4903, allocations: 86.97 kB / 479.7 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.4905, allocations: 152 kB / 479.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.4905, allocations: 7.938 kB / 479.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4905, allocations: 4 kB / 479.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4906, allocations: 0 / 479.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.4923, allocations: 1.464 MB / 481.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.4923, allocations: 0 / 481.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-06/0.4923, allocations: 0 / 481.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4923, allocations: 0 / 481.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.029e-05/0.4924, allocations: 39.75 kB / 481.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4924, allocations: 4 kB / 481.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4924, allocations: 8 kB / 481.4 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001072/0.4935, allocations: 0.9183 MB / 482.3 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001164/0.4946, allocations: 1.301 MB / 483.6 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00078/0.4954, allocations: 0.576 MB / 484.2 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.4956, allocations: 58.28 kB / 484.3 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.4959, allocations: 36.53 kB / 484.3 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/0.4963, allocations: 242.7 kB / 484.5 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.4965, allocations: 128.7 kB / 484.7 MB, free: 7.559 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0009965/0.4975, allocations: 0.8294 MB / 485.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009316/0.4984, allocations: 108 kB / 485.6 MB, free: 6.785 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,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.0002209/0.4986, allocations: 182.2 kB / 485.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.4998, allocations: 1.075 MB / 486.9 MB, free: 5.605 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4998, allocations: 4 kB / 486.9 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008331/0.5007, allocations: 0.9528 MB / 487.8 MB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009453/0.5016, allocations: 249.2 kB / 488.1 MB, free: 4.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.504, allocations: 1.717 MB / 489.8 MB, free: 2.625 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007598/0.5048, allocations: 1.053 MB / 490.8 MB, free: 1.543 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5048, allocations: 0 / 490.8 MB, free: 1.543 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1)