Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001002/0.001002, allocations: 195.8 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 96.23 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.961e-06, allocations: 0 / 343.1 MB, free: 8.816 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.08331, allocations: 51.47 MB / 394.6 MB, free: 5.289 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2279/0.3112, allocations: 83.38 MB / 478 MB, free: 9.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.3115, allocations: 63.06 kB / 478 MB, free: 9.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05472/0.3662, allocations: 30.85 MB / 0.497 GB, free: 0.6367 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.3663, allocations: 16 kB / 0.497 GB, free: 0.6211 MB / 362.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.001319/0.3676, allocations: 1.295 MB / 0.4982 GB, free: 15.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3676, allocations: 12.03 kB / 0.4983 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.3678, allocations: 131.3 kB / 0.4984 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007497/0.3686, allocations: 0.5337 MB / 0.4989 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.3686, allocations: 15.19 kB / 0.4989 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.027e-05/0.3687, allocations: 26.75 kB / 0.4989 GB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006336/0.3693, allocations: 464.3 kB / 0.4994 GB, free: 14.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008262/0.3702, allocations: 0.5995 MB / 0.5 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.3702, allocations: 0 / 0.5 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.682e-05/0.3703, allocations: 16 kB / 0.5 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3703, allocations: 0 / 0.5 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.372, allocations: 1.078 MB / 0.501 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007576/0.3728, allocations: 0.6858 MB / 0.5017 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000708/0.3735, allocations: 0.6695 MB / 0.5024 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.3735, allocations: 7.984 kB / 0.5024 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008066/0.3743, allocations: 0.7203 MB / 0.5031 GB, free: 10.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.894e-06/0.3743, allocations: 4 kB / 0.5031 GB, free: 10.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001413/0.3758, allocations: 0.9621 MB / 0.504 GB, free: 9.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001739/0.3759, allocations: 328.9 kB / 0.5043 GB, free: 9.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002055/0.378, allocations: 1.549 MB / 0.5058 GB, free: 7.523 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.166e-05/0.3781, allocations: 53.62 kB / 0.5059 GB, free: 7.465 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3782, allocations: 154.4 kB / 0.506 GB, free: 7.309 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.3783, allocations: 75.16 kB / 0.5061 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.3784, allocations: 11.94 kB / 0.5061 GB, free: 7.223 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3786, allocations: 390.6 kB / 0.5065 GB, free: 6.832 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006011/0.3792, allocations: 454.8 kB / 0.5069 GB, free: 6.387 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005945/0.3798, allocations: 448 kB / 0.5074 GB, free: 5.949 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003975/0.3802, allocations: 300.2 kB / 0.5076 GB, free: 5.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3802, allocations: 0 / 0.5076 GB, free: 5.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001241/0.3815, allocations: 0.9152 MB / 0.5085 GB, free: 4.734 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3815, allocations: 4 kB / 0.5085 GB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3815, allocations: 0 / 0.5085 GB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.3815, allocations: 0 / 0.5085 GB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.069e-05/0.3816, allocations: 4 kB / 0.5086 GB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3816, allocations: 4 kB / 0.5086 GB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.382, allocations: 39.81 kB / 0.5086 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001859/0.3822, allocations: 154.4 kB / 0.5087 GB, free: 4.535 MB / 378.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.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.0004126/0.3826, allocations: 450.5 kB / 0.5092 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.3827, allocations: 138.4 kB / 0.5093 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003972/0.3831, allocations: 251.6 kB / 0.5095 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3832, allocations: 0 / 0.5095 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3832, allocations: 0 / 0.5095 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3832, allocations: 0 / 0.5095 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.3856, allocations: 1.876 MB / 0.5114 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3856, allocations: 0 / 0.5114 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.138e-05/0.3856, allocations: 7.938 kB / 0.5114 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3856, allocations: 0 / 0.5114 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-05/0.3857, allocations: 39.98 kB / 0.5114 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3857, allocations: 7.984 kB / 0.5114 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3857, allocations: 0 / 0.5114 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001368/0.3871, allocations: 1.132 MB / 0.5125 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.3882, allocations: 0.6941 MB / 0.5132 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/0.3884, allocations: 59.97 kB / 0.5133 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003472/0.3887, allocations: 47.95 kB / 0.5133 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000551/0.3893, allocations: 359.7 kB / 0.5137 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001676/0.3895, allocations: 159.9 kB / 0.5138 GB, free: 15.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001613/0.3911, allocations: 1.27 MB / 0.515 GB, free: 13.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000467/0.3916, allocations: 132 kB / 0.5152 GB, free: 13.79 MB / 394.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,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.0002472/0.3918, allocations: 185.6 kB / 0.5154 GB, free: 13.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.3935, allocations: 1.45 MB / 0.5168 GB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3935, allocations: 8 kB / 0.5168 GB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.3946, allocations: 1.169 MB / 0.5179 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.3958, allocations: 299.4 kB / 0.5182 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003668/0.3994, allocations: 2.48 MB / 0.5206 GB, free: 8.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/0.4005, allocations: 1.247 MB / 0.5218 GB, free: 6.797 MB / 394.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4005, allocations: 4 kB / 0.5218 GB, free: 6.793 MB / 394.7 MB Notification: Performance of Templates: time 0.01989/0.4204, allocations: 15.57 MB / 0.5371 GB, free: 6.895 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches