Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL") [: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.2+maint.om/package.mo): time 0.001988/0.001988, allocations: 197.1 kB / 8.139 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.193/1.193, allocations: 194.2 MB / 202.8 MB, free: 8.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001782/0.001782, allocations: 116 kB / 247.7 MB, free: 6.398 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.564e-06/7.605e-06, allocations: 3.938 kB / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07497/0.07499, allocations: 44.5 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2136/0.2886, allocations: 77 MB / 419.1 MB, free: 18.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.2889, allocations: 66.97 kB / 419.1 MB, free: 18 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.05717/0.346, allocations: 32.59 MB / 451.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.02e-05/0.3461, allocations: 8 kB / 451.7 MB, free: 7.781 MB / 330.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.0009639/0.3471, allocations: 1.002 MB / 452.7 MB, free: 6.742 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3471, allocations: 8.031 kB / 452.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.3473, allocations: 90.91 kB / 452.8 MB, free: 6.645 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005973/0.3479, allocations: 430 kB / 453.2 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.3479, allocations: 20 kB / 453.2 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.348, allocations: 23.62 kB / 453.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005136/0.3485, allocations: 353.6 kB / 453.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.3492, allocations: 489.1 kB / 454.1 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.3492, allocations: 0 / 454.1 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.601e-05/0.3493, allocations: 15.8 kB / 454.1 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3493, allocations: 0 / 454.1 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.3507, allocations: 0.909 MB / 455 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006008/0.3513, allocations: 0.4954 MB / 455.5 MB, free: 4.484 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005198/0.3519, allocations: 484.6 kB / 456 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.3519, allocations: 4 kB / 456 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007221/0.3526, allocations: 0.6001 MB / 456.6 MB, free: 3.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.843e-06/0.3526, allocations: 0 / 456.6 MB, free: 3.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001091/0.3537, allocations: 0.7437 MB / 457.3 MB, free: 3.105 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.3539, allocations: 279.5 kB / 457.6 MB, free: 2.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.3551, allocations: 1.001 MB / 458.6 MB, free: 1.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.3552, allocations: 41.02 kB / 458.7 MB, free: 1.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.3553, allocations: 113.8 kB / 458.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.417e-05/0.3554, allocations: 77.98 kB / 458.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.3554, allocations: 11.69 kB / 458.8 MB, free: 1.738 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3555, allocations: 341 kB / 459.2 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.356, allocations: 337.5 kB / 459.5 MB, free: 1.184 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004531/0.3564, allocations: 346 kB / 459.8 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/0.3568, allocations: 247.4 kB / 460.1 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3568, allocations: 0 / 460.1 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009964/0.3578, allocations: 0.7195 MB / 460.8 MB, free: 28 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.3578, allocations: 4 kB / 460.8 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3578, allocations: 4 kB / 460.8 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3578, allocations: 0 / 460.8 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.29e-05/0.3579, allocations: 4 kB / 460.8 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.3579, allocations: 0 / 460.8 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.3582, allocations: 35.81 kB / 460.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.3584, allocations: 121.7 kB / 461 MB, free: 15.86 MB / 346.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.0003378/0.3587, allocations: 413.8 kB / 461.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.3588, allocations: 90.97 kB / 461.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.3591, allocations: 147.5 kB / 461.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3591, allocations: 0 / 461.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3591, allocations: 0 / 461.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3591, allocations: 0 / 461.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.361, allocations: 1.455 MB / 463.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.361, allocations: 0 / 463.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.849e-06/0.361, allocations: 8 kB / 463.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.361, allocations: 0 / 463.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.528e-05/0.3611, allocations: 35.97 kB / 463.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3611, allocations: 0 / 463.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3611, allocations: 0 / 463.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001207/0.3623, allocations: 0.9277 MB / 464 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009224/0.3632, allocations: 0.5814 MB / 464.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.3634, allocations: 59.97 kB / 464.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003171/0.3638, allocations: 35.97 kB / 464.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/0.3642, allocations: 243.7 kB / 465 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/0.3644, allocations: 128 kB / 465.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00103/0.3654, allocations: 0.8265 MB / 465.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004301/0.3658, allocations: 108 kB / 466 MB, free: 10.69 MB / 346.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.0002337/0.3661, allocations: 180.5 kB / 466.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.3674, allocations: 1.066 MB / 467.3 MB, free: 9.398 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3674, allocations: 3.938 kB / 467.3 MB, free: 9.395 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009442/0.3683, allocations: 0.9566 MB / 468.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.3695, allocations: 251.8 kB / 468.5 MB, free: 8.152 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.3721, allocations: 1.718 MB / 470.2 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007777/0.3729, allocations: 1.045 MB / 471.2 MB, free: 5.332 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3729, allocations: 0 / 471.2 MB, free: 5.332 MB / 346.7 MB Notification: Performance of Templates: time 0.01541/0.3883, allocations: 12.15 MB / 483.4 MB, free: 8.945 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1)