Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 185.8 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 98.34 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003988, allocations: 12 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.327, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4584, allocations: 82.51 MB / 457 MB, free: 14.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.4587, allocations: 79.95 kB / 457.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1047/0.5634, allocations: 32.65 MB / 489.8 MB, free: 13.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.606e-06/0.5634, allocations: 0 / 489.8 MB, free: 13.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.813e-05/0.5635, allocations: 16 kB / 489.8 MB, free: 13.52 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.002517/0.566, allocations: 1.504 MB / 491.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5661, allocations: 11.97 kB / 491.3 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003574/0.5665, allocations: 138.4 kB / 491.4 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.5676, allocations: 0.5013 MB / 491.9 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.281e-05/0.5677, allocations: 23.98 kB / 492 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.5679, allocations: 28 kB / 492 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.5696, allocations: 0.6346 MB / 492.6 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.5696, allocations: 0 / 492.6 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.5697, allocations: 27.92 kB / 492.6 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.5697, allocations: 0 / 492.6 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.571, allocations: 463.7 kB / 493.1 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.5736, allocations: 1.092 MB / 494.2 MB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.5753, allocations: 0.6975 MB / 494.9 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.5753, allocations: 0 / 494.9 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001661/0.577, allocations: 0.777 MB / 495.7 MB, free: 7.375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.016e-06/0.577, allocations: 0 / 495.7 MB, free: 7.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.004901/0.5819, allocations: 2.129 MB / 497.8 MB, free: 5.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002773/0.5822, allocations: 329 kB / 498.1 MB, free: 4.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/0.5864, allocations: 1.608 MB / 499.7 MB, free: 3.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00027/0.5867, allocations: 45.69 kB / 499.8 MB, free: 3.078 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.587, allocations: 245 kB / 0.4883 GB, free: 2.836 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.5872, allocations: 87.05 kB / 0.4884 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.5874, allocations: 12 kB / 0.4884 GB, free: 2.738 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.5875, allocations: 322.8 kB / 0.4887 GB, free: 2.414 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.5887, allocations: 455.9 kB / 0.4891 GB, free: 1.965 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.5899, allocations: 482.7 kB / 0.4896 GB, free: 1.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.591, allocations: 0.5908 MB / 0.4902 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.591, allocations: 0 / 0.4902 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.2663/0.8573, allocations: 1.316 MB / 0.4914 GB, free: 105.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003288/0.8576, allocations: 291.3 kB / 0.4917 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.8577, allocations: 1.688 kB / 0.4917 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.8577, allocations: 2.062 kB / 0.4917 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.639e-05/0.8578, allocations: 9.906 kB / 0.4917 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.8578, allocations: 1.562 kB / 0.4917 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006853/0.8585, allocations: 49.19 kB / 0.4918 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003678/0.8589, allocations: 148.2 kB / 0.4919 GB, free: 105.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.001945/0.8608, allocations: 1 MB / 0.4929 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002743/0.8611, allocations: 131 kB / 0.493 GB, free: 104.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007143/0.8618, allocations: 247.2 kB / 0.4933 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.8619, allocations: 2 kB / 0.4933 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.8619, allocations: 1 kB / 0.4933 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.8619, allocations: 3.844 kB / 0.4933 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004882/0.8668, allocations: 2.423 MB / 0.4956 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.8668, allocations: 1.594 kB / 0.4956 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.17e-05/0.8669, allocations: 1.219 kB / 0.4956 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.8669, allocations: 1.094 kB / 0.4956 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.867, allocations: 41.78 kB / 0.4957 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.867, allocations: 0 / 0.4957 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.867, allocations: 4.281 kB / 0.4957 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003396/0.8704, allocations: 1.633 MB / 0.4973 GB, free: 103.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001735/0.8722, allocations: 0.6777 MB / 0.4979 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.8726, allocations: 68.08 kB / 0.498 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005856/0.8731, allocations: 40.84 kB / 0.498 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008945/0.8741, allocations: 354 kB / 0.4984 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/0.8744, allocations: 161.8 kB / 0.4985 GB, free: 103.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003188/0.8776, allocations: 1.329 MB / 0.4998 GB, free: 102.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8776, allocations: 0 / 0.4998 GB, free: 102.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009974/0.8786, allocations: 152.4 kB / 0.5 GB, free: 102.9 MB / 378.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) * Number of clocked states: 0 () * 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.0003558/0.879, allocations: 191.9 kB / 0.5002 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003063/0.8821, allocations: 1.937 MB / 0.5021 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.8821, allocations: 7.219 kB / 0.5021 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.8839, allocations: 1.406 MB / 0.5034 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.8859, allocations: 297.5 kB / 0.5037 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006091/0.892, allocations: 3.201 MB / 0.5068 GB, free: 99.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.8932, allocations: 1.222 MB / 0.508 GB, free: 98.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.8933, allocations: 29.38 kB / 0.5081 GB, free: 98.63 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.8933, allocations: 0 / 0.5081 GB, free: 98.63 MB / 378.7 MB Notification: Performance of Templates: time 0.02073/0.9141, allocations: 11.42 MB / 0.5192 GB, free: 93.48 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches