Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG") translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG") [: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.1+maint.om/package.mo): time 0.003256/0.003256, allocations: 178.6 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.287/1.287, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001709/0.001709, allocations: 115.8 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.175e-05/1.178e-05, allocations: 4 kB / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09015, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.271/0.3612, allocations: 71.66 MB / 372.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.3615, allocations: 63.97 kB / 372.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.05263/0.4141, allocations: 26 MB / 398.2 MB, free: 7.848 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.667e-05/0.4142, allocations: 8 kB / 398.2 MB, free: 7.84 MB / 282.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.00124/0.4155, allocations: 1.003 MB / 399.2 MB, free: 6.801 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.4155, allocations: 15.91 kB / 399.2 MB, free: 6.785 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.4157, allocations: 90.95 kB / 399.3 MB, free: 6.695 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007442/0.4164, allocations: 420.1 kB / 399.7 MB, free: 6.277 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.4165, allocations: 19.19 kB / 399.8 MB, free: 6.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.009e-05/0.4166, allocations: 16 kB / 399.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005375/0.4171, allocations: 356.5 kB / 400.1 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000676/0.4178, allocations: 477.4 kB / 400.6 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.4178, allocations: 0 / 400.6 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.836e-05/0.4179, allocations: 11.56 kB / 400.6 MB, free: 5.633 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.4179, allocations: 4 kB / 400.6 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.4196, allocations: 0.9113 MB / 401.5 MB, free: 4.867 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005972/0.4202, allocations: 491 kB / 402 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/0.4209, allocations: 485.7 kB / 402.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.4209, allocations: 0 / 402.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008463/0.4217, allocations: 0.5982 MB / 403.1 MB, free: 3.785 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 2.505e-06/0.4218, allocations: 0 / 403.1 MB, free: 3.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.001507/0.4233, allocations: 0.722 MB / 403.8 MB, free: 3.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002882/0.4236, allocations: 287.6 kB / 404.1 MB, free: 2.902 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.4252, allocations: 0.9783 MB / 405.1 MB, free: 2.098 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.014e-05/0.4253, allocations: 43.81 kB / 405.1 MB, free: 2.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4254, allocations: 114.8 kB / 405.2 MB, free: 1.945 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.4256, allocations: 66.14 kB / 405.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.963e-05/0.4256, allocations: 17.48 kB / 405.3 MB, free: 1.875 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.4258, allocations: 342.6 kB / 405.6 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005411/0.4264, allocations: 336.7 kB / 406 MB, free: 1.285 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004751/0.4269, allocations: 343.7 kB / 406.3 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.4272, allocations: 231.8 kB / 406.5 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4273, allocations: 0 / 406.5 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001073/0.4283, allocations: 0.6997 MB / 407.2 MB, free: 16 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.4284, allocations: 4 kB / 407.2 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.4284, allocations: 4 kB / 407.2 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.4284, allocations: 0 / 407.2 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.346e-05/0.4285, allocations: 7.938 kB / 407.2 MB, free: 0 / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.4285, allocations: 0 / 407.2 MB, free: 0 / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.4289, allocations: 43.94 kB / 407.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.4291, allocations: 119.9 kB / 407.4 MB, free: 15.84 MB / 298.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.0004436/0.4295, allocations: 402 kB / 407.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.4296, allocations: 94.97 kB / 407.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002793/0.4299, allocations: 147.5 kB / 408 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4299, allocations: 4 kB / 408 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.43, allocations: 0 / 408 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.43, allocations: 0 / 408 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.432, allocations: 1.443 MB / 409.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.432, allocations: 0 / 409.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.026e-05/0.4321, allocations: 4 kB / 409.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4321, allocations: 4 kB / 409.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.819e-05/0.4322, allocations: 31.98 kB / 409.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4322, allocations: 0 / 409.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4322, allocations: 0 / 409.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001247/0.4334, allocations: 0.912 MB / 410.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009124/0.4344, allocations: 0.5699 MB / 411 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.4345, allocations: 59.88 kB / 411.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.4349, allocations: 35.97 kB / 411.1 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/0.4353, allocations: 235.8 kB / 411.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.4355, allocations: 131.9 kB / 411.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.001148/0.4367, allocations: 0.8148 MB / 412.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004655/0.4372, allocations: 108 kB / 412.4 MB, free: 10.73 MB / 298.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.0002901/0.4375, allocations: 184.5 kB / 412.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.4388, allocations: 1.062 MB / 413.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4388, allocations: 0 / 413.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.4399, allocations: 0.9489 MB / 414.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.441, allocations: 268 kB / 414.8 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/0.4441, allocations: 1.689 MB / 416.5 MB, free: 6.461 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009625/0.445, allocations: 1.045 MB / 417.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of SimCode: time 1.072e-06/0.445, allocations: 0 / 417.6 MB, free: 5.387 MB / 298.7 MB Notification: Performance of Templates: time 0.01917/0.4642, allocations: 12.1 MB / 429.7 MB, free: 9.008 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1)