Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH") [: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.001531/0.001531, allocations: 194 kB / 8.138 MB, free: 2.629 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.301/1.301, allocations: 194.2 MB / 202.8 MB, free: 12.92 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.1321/0.1321, allocations: 131 kB / 247.8 MB, free: 6.375 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 8.085e-06/8.125e-06, allocations: 0 / 297.6 MB, free: 12.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1143, allocations: 44.48 MB / 342 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2006/0.3149, allocations: 77.39 MB / 419.4 MB, free: 22.83 MB / 318.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.3151, allocations: 69.12 kB / 419.5 MB, free: 22.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 0.05031/0.3654, allocations: 30.47 MB / 450 MB, free: 15.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.925e-05/0.3655, allocations: 12 kB / 450 MB, free: 15.72 MB / 334.1 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.001376/0.3669, allocations: 1.304 MB / 451.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.3669, allocations: 11.97 kB / 451.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/0.3671, allocations: 126.5 kB / 451.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007437/0.3679, allocations: 0.5174 MB / 451.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.3679, allocations: 15.5 kB / 452 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.404e-05/0.368, allocations: 24 kB / 452 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000633/0.3687, allocations: 457.4 kB / 452.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008464/0.3695, allocations: 0.6096 MB / 453 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3695, allocations: 7.938 kB / 453.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.079e-05/0.3696, allocations: 14.8 kB / 453.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.3696, allocations: 4 kB / 453.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.3712, allocations: 1.066 MB / 454.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.3719, allocations: 0.6936 MB / 454.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006646/0.3726, allocations: 0.6784 MB / 455.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.3726, allocations: 4 kB / 455.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007765/0.3734, allocations: 0.7172 MB / 456.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.3734, allocations: 4 kB / 456.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.001432/0.3748, allocations: 0.9678 MB / 457.2 MB, free: 9.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001772/0.375, allocations: 327.4 kB / 457.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.3771, allocations: 1.55 MB / 459.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.188e-05/0.3772, allocations: 41.2 kB / 459.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.3773, allocations: 163.7 kB / 459.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.3774, allocations: 76.92 kB / 459.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.3775, allocations: 11.5 kB / 459.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3776, allocations: 383.3 kB / 459.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.3782, allocations: 448.9 kB / 460.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005556/0.3788, allocations: 450.5 kB / 460.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.3792, allocations: 302.3 kB / 460.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3792, allocations: 0 / 460.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001248/0.3805, allocations: 0.9106 MB / 461.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3805, allocations: 7.906 kB / 461.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3805, allocations: 0 / 461.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3805, allocations: 4 kB / 461.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.925e-05/0.3805, allocations: 7.047 kB / 461.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.3806, allocations: 4 kB / 461.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/0.3809, allocations: 35.89 kB / 461.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/0.3811, allocations: 152.5 kB / 462 MB, free: 5.848 MB / 334.1 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.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.0004238/0.3815, allocations: 459.3 kB / 462.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.3817, allocations: 134.5 kB / 462.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004296/0.3821, allocations: 249.8 kB / 462.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3822, allocations: 3.984 kB / 462.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3822, allocations: 0 / 462.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3822, allocations: 7.984 kB / 462.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002554/0.3847, allocations: 1.874 MB / 464.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3848, allocations: 0 / 464.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.097e-05/0.3848, allocations: 4 kB / 464.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3848, allocations: 4 kB / 464.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.274e-05/0.3849, allocations: 43.97 kB / 464.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3849, allocations: 0 / 464.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.3849, allocations: 0 / 464.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00148/0.3864, allocations: 1.128 MB / 465.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.3875, allocations: 0.6942 MB / 466.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002188/0.3877, allocations: 67.88 kB / 466.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000347/0.3881, allocations: 39.97 kB / 466.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005535/0.3887, allocations: 363.6 kB / 467.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/0.3889, allocations: 163.9 kB / 467.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 0.001625/0.3905, allocations: 1.262 MB / 468.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000467/0.391, allocations: 132 kB / 468.6 MB, free: 15.27 MB / 350.1 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0002588/0.3912, allocations: 201.6 kB / 468.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.3928, allocations: 1.443 MB / 470.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3928, allocations: 0 / 470.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.3939, allocations: 1.177 MB / 471.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.3951, allocations: 305.8 kB / 471.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.3987, allocations: 2.48 MB / 474.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.3998, allocations: 1.24 MB / 475.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3998, allocations: 4 kB / 475.5 MB, free: 8.262 MB / 350.1 MB Notification: Performance of Templates: time 0.02074/0.4205, allocations: 15.58 MB / 491 MB, free: 8.297 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1)