Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL") [: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.001619/0.001619, allocations: 191.2 kB / 8.136 MB, free: 2.219 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.086/1.086, allocations: 194.2 MB / 202.8 MB, free: 8.754 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.001768/0.001768, allocations: 111.4 kB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.091e-06/6.121e-06, allocations: 0 / 297.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.0782, allocations: 44.5 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.2938, allocations: 77.44 MB / 419.5 MB, free: 17.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.294, allocations: 65.83 kB / 419.6 MB, free: 17.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.05504/0.3491, allocations: 32 MB / 451.6 MB, free: 7.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.038e-05/0.3492, allocations: 16 kB / 451.6 MB, free: 7.254 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001443/0.3506, allocations: 1.297 MB / 452.9 MB, free: 5.934 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.3506, allocations: 8.031 kB / 452.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.3509, allocations: 134.4 kB / 453 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000869/0.3517, allocations: 0.5234 MB / 453.5 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.63e-05/0.3518, allocations: 19.19 kB / 453.6 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.752e-05/0.3519, allocations: 28 kB / 453.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006813/0.3526, allocations: 461.4 kB / 454 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008922/0.3535, allocations: 0.6061 MB / 454.6 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3535, allocations: 0 / 454.6 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.207e-05/0.3536, allocations: 19.66 kB / 454.7 MB, free: 4.414 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3536, allocations: 4 kB / 454.7 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.3554, allocations: 1.063 MB / 455.7 MB, free: 3.523 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007662/0.3562, allocations: 0.6835 MB / 456.4 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007173/0.3569, allocations: 0.6747 MB / 457.1 MB, free: 2.746 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.3569, allocations: 3.938 kB / 457.1 MB, free: 2.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009269/0.3579, allocations: 0.7226 MB / 457.8 MB, free: 2.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 1.834e-06/0.3579, allocations: 0 / 457.8 MB, free: 2.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001444/0.3593, allocations: 0.9686 MB / 458.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002355/0.3596, allocations: 329.7 kB / 459.1 MB, free: 1.008 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.3619, allocations: 1.549 MB / 460.6 MB, free: 15.72 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.3621, allocations: 41.64 kB / 460.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3622, allocations: 153.6 kB / 460.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.3623, allocations: 82.95 kB / 460.9 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-05/0.3624, allocations: 15.88 kB / 460.9 MB, free: 15.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3626, allocations: 386.3 kB / 461.3 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006566/0.3633, allocations: 448.5 kB / 461.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006173/0.3639, allocations: 448.2 kB / 462.2 MB, free: 14.49 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.3643, allocations: 303 kB / 462.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3643, allocations: 0 / 462.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001349/0.3657, allocations: 0.9151 MB / 463.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3657, allocations: 4 kB / 463.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3657, allocations: 0 / 463.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3657, allocations: 0 / 463.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.661e-05/0.3658, allocations: 15.92 kB / 463.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3658, allocations: 0 / 463.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/0.3662, allocations: 43.97 kB / 463.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.3664, allocations: 149.7 kB / 463.6 MB, free: 13.24 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0004895/0.3669, allocations: 470.1 kB / 464.1 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.3671, allocations: 130.4 kB / 464.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004837/0.3676, allocations: 251.6 kB / 464.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3676, allocations: 4 kB / 464.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3676, allocations: 0 / 464.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3676, allocations: 3.984 kB / 464.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.3701, allocations: 1.868 MB / 466.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3701, allocations: 0 / 466.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.164e-05/0.3701, allocations: 4 kB / 466.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.3701, allocations: 3.906 kB / 466.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.845e-05/0.3702, allocations: 43.97 kB / 466.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3702, allocations: 0 / 466.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3703, allocations: 0 / 466.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001496/0.3718, allocations: 1.136 MB / 467.5 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.3729, allocations: 0.6942 MB / 468.2 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.3732, allocations: 63.97 kB / 468.3 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004015/0.3736, allocations: 39.91 kB / 468.3 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000589/0.3742, allocations: 367.6 kB / 468.7 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.3744, allocations: 159.8 kB / 468.8 MB, free: 7.879 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001873/0.3763, allocations: 1.266 MB / 470.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005619/0.3768, allocations: 132 kB / 470.2 MB, free: 6.48 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0002781/0.3771, allocations: 189.7 kB / 470.4 MB, free: 6.281 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.3788, allocations: 1.447 MB / 471.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3788, allocations: 0 / 471.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.3801, allocations: 1.181 MB / 473 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.3813, allocations: 298.8 kB / 473.3 MB, free: 3.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004068/0.3854, allocations: 2.487 MB / 475.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/0.3865, allocations: 1.244 MB / 477 MB, free: 15.47 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3865, allocations: 4 kB / 477 MB, free: 15.46 MB / 362.7 MB Notification: Performance of Templates: time 0.02234/0.4089, allocations: 15.57 MB / 492.6 MB, free: 15.5 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1)