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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000791/0.0007911, allocations: 100.1 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.68e-05/1.681e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09434, allocations: 51.47 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3135/0.4079, allocations: 83.45 MB / 478.6 MB, free: 9.477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.4081, allocations: 64.69 kB / 478.7 MB, free: 9.453 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05427/0.4624, allocations: 31.44 MB / 0.4982 GB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4624, allocations: 0 / 0.4982 GB, free: 15.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.867e-05/0.4625, allocations: 16 kB / 0.4982 GB, free: 15.87 MB / 378.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.001332/0.4638, allocations: 1.303 MB / 0.4994 GB, free: 14.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.4638, allocations: 8.031 kB / 0.4994 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.464, allocations: 130.5 kB / 0.4996 GB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006581/0.4647, allocations: 0.5167 MB / 0.5001 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.4647, allocations: 20 kB / 0.5001 GB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.4648, allocations: 27.98 kB / 0.5001 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005983/0.4654, allocations: 443.7 kB / 0.5005 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.4663, allocations: 0.5977 MB / 0.5011 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4663, allocations: 0 / 0.5011 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.4664, allocations: 11.98 kB / 0.5011 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.4664, allocations: 4 kB / 0.5011 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.4679, allocations: 1.047 MB / 0.5022 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007234/0.4686, allocations: 0.6742 MB / 0.5028 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006735/0.4693, allocations: 0.6608 MB / 0.5035 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.4693, allocations: 4 kB / 0.5035 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008497/0.4702, allocations: 0.7477 MB / 0.5042 GB, free: 9.438 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.923e-06/0.4702, allocations: 0 / 0.5042 GB, free: 9.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001591/0.4718, allocations: 1.106 MB / 0.5053 GB, free: 8.324 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/0.472, allocations: 325 kB / 0.5056 GB, free: 7.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.4739, allocations: 1.542 MB / 0.5071 GB, free: 6.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.292e-05/0.4741, allocations: 45.69 kB / 0.5071 GB, free: 6.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.4743, allocations: 230.5 kB / 0.5074 GB, free: 6.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.4744, allocations: 86.95 kB / 0.5074 GB, free: 6.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.4745, allocations: 11.98 kB / 0.5075 GB, free: 6.012 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.4747, allocations: 386.7 kB / 0.5078 GB, free: 5.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005486/0.4752, allocations: 428 kB / 0.5082 GB, free: 5.199 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005457/0.4758, allocations: 440 kB / 0.5087 GB, free: 4.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.4762, allocations: 293 kB / 0.5089 GB, free: 4.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4762, allocations: 4 kB / 0.5089 GB, free: 4.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001371/0.4776, allocations: 1.029 MB / 0.5099 GB, free: 3.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001978/0.4778, allocations: 289.5 kB / 0.5102 GB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4778, allocations: 0 / 0.5102 GB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.4778, allocations: 3.984 kB / 0.5102 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.272e-05/0.4778, allocations: 3.938 kB / 0.5102 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.4779, allocations: 4 kB / 0.5102 GB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.4782, allocations: 39.88 kB / 0.5103 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/0.4784, allocations: 155.4 kB / 0.5104 GB, free: 2.914 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.0003904/0.4788, allocations: 466.4 kB / 0.5109 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.479, allocations: 138.4 kB / 0.511 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003789/0.4793, allocations: 248.1 kB / 0.5112 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.4794, allocations: 0 / 0.5112 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4794, allocations: 0 / 0.5112 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4794, allocations: 3.984 kB / 0.5112 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002478/0.4819, allocations: 2.001 MB / 0.5132 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4819, allocations: 0 / 0.5132 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.167e-05/0.4819, allocations: 0 / 0.5132 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.4819, allocations: 4 kB / 0.5132 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.398e-05/0.482, allocations: 43.92 kB / 0.5132 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.482, allocations: 0 / 0.5132 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.482, allocations: 0 / 0.5132 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.4836, allocations: 1.28 MB / 0.5145 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009233/0.4845, allocations: 0.6708 MB / 0.5151 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.4847, allocations: 63.95 kB / 0.5152 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000331/0.485, allocations: 43.91 kB / 0.5152 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005277/0.4856, allocations: 347.6 kB / 0.5156 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.4858, allocations: 167.8 kB / 0.5157 GB, free: 13.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001668/0.4874, allocations: 1.255 MB / 0.517 GB, free: 12.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4875, allocations: 0 / 0.517 GB, free: 12.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004827/0.4879, allocations: 140 kB / 0.5171 GB, free: 11.92 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.0002648/0.4882, allocations: 193.7 kB / 0.5173 GB, free: 11.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.4901, allocations: 1.872 MB / 0.5191 GB, free: 9.754 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4901, allocations: 0 / 0.5191 GB, free: 9.754 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.4912, allocations: 1.376 MB / 0.5204 GB, free: 8.281 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.4924, allocations: 301.7 kB / 0.5207 GB, free: 7.992 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.4958, allocations: 2.447 MB / 0.5231 GB, free: 5.504 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009509/0.4968, allocations: 1.22 MB / 0.5243 GB, free: 4.254 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003178/0.4971, allocations: 193.2 kB / 0.5245 GB, free: 4.066 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.4971, allocations: 27.44 kB / 0.5245 GB, free: 4.043 MB / 394.7 MB Notification: Performance of SimCode: time 9.92e-07/0.4971, allocations: 0 / 0.5245 GB, free: 4.043 MB / 394.7 MB Notification: Performance of Templates: time 0.0222/0.5193, allocations: 15.79 MB / 0.5399 GB, free: 3.941 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