Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0009803/0.0009804, allocations: 196 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008485/0.0008487, allocations: 98.25 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.756e-06/8.796e-06, allocations: 7.938 kB / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09214, allocations: 51.48 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2265/0.3187, allocations: 83.41 MB / 478 MB, free: 9.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.3189, allocations: 66.53 kB / 478.1 MB, free: 9.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05567/0.3746, allocations: 32.39 MB / 0.4985 GB, free: 15.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.931e-05/0.3747, allocations: 16 kB / 0.4985 GB, free: 15.11 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.001307/0.376, allocations: 1.301 MB / 0.4998 GB, free: 13.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.376, allocations: 12.02 kB / 0.4998 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.3762, allocations: 133.2 kB / 0.4999 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007554/0.377, allocations: 0.5206 MB / 0.5004 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.75e-05/0.377, allocations: 19.09 kB / 0.5005 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-05/0.3771, allocations: 24 kB / 0.5005 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006249/0.3778, allocations: 453 kB / 0.5009 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008598/0.3786, allocations: 0.6073 MB / 0.5015 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3786, allocations: 0 / 0.5015 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.206e-05/0.3787, allocations: 15.98 kB / 0.5015 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3787, allocations: 8 kB / 0.5015 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.3804, allocations: 1.063 MB / 0.5026 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007658/0.3812, allocations: 0.6859 MB / 0.5032 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007075/0.3819, allocations: 0.6764 MB / 0.5039 GB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.3819, allocations: 4 kB / 0.5039 GB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008046/0.3827, allocations: 0.7244 MB / 0.5046 GB, free: 8.793 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.763e-06/0.3828, allocations: 0 / 0.5046 GB, free: 8.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001394/0.3842, allocations: 0.9658 MB / 0.5056 GB, free: 7.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001775/0.3843, allocations: 332.9 kB / 0.5059 GB, free: 7.434 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/0.3863, allocations: 1.553 MB / 0.5074 GB, free: 5.867 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.435e-05/0.3864, allocations: 37.7 kB / 0.5074 GB, free: 5.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.3865, allocations: 158.4 kB / 0.5076 GB, free: 5.664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.3866, allocations: 83.02 kB / 0.5077 GB, free: 5.582 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.3867, allocations: 12 kB / 0.5077 GB, free: 5.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3869, allocations: 378.7 kB / 0.508 GB, free: 5.191 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.3874, allocations: 454.8 kB / 0.5085 GB, free: 4.746 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/0.388, allocations: 444 kB / 0.5089 GB, free: 4.312 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.3884, allocations: 308.1 kB / 0.5092 GB, free: 4.012 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3885, allocations: 8 kB / 0.5092 GB, free: 4.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00123/0.3897, allocations: 0.9036 MB / 0.5101 GB, free: 3.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3897, allocations: 4 kB / 0.5101 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3897, allocations: 0 / 0.5101 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3897, allocations: 4 kB / 0.5101 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.408e-05/0.3898, allocations: 0 / 0.5101 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.3898, allocations: 4 kB / 0.5101 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.3901, allocations: 35.88 kB / 0.5101 GB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.3903, allocations: 154.4 kB / 0.5103 GB, free: 2.898 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.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.0003924/0.3907, allocations: 466.3 kB / 0.5107 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.3909, allocations: 130.5 kB / 0.5108 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003964/0.3913, allocations: 247.6 kB / 0.5111 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3913, allocations: 0 / 0.5111 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3913, allocations: 0 / 0.5111 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.3913, allocations: 11.89 kB / 0.5111 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.3937, allocations: 1.88 MB / 0.5129 GB, free: 72 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3937, allocations: 0 / 0.5129 GB, free: 72 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-06/0.3937, allocations: 0 / 0.5129 GB, free: 72 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3937, allocations: 4 kB / 0.5129 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.933e-05/0.3938, allocations: 35.98 kB / 0.513 GB, free: 32 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.3938, allocations: 3.984 kB / 0.513 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3938, allocations: 4 kB / 0.513 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001403/0.3952, allocations: 1.136 MB / 0.5141 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.3963, allocations: 0.6981 MB / 0.5148 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.3965, allocations: 63.97 kB / 0.5148 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/0.3969, allocations: 39.88 kB / 0.5149 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005601/0.3975, allocations: 363.7 kB / 0.5152 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001793/0.3976, allocations: 159.9 kB / 0.5154 GB, free: 13.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001614/0.3993, allocations: 1.266 MB / 0.5166 GB, free: 12.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004629/0.3997, allocations: 128 kB / 0.5167 GB, free: 12.14 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,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.0002446/0.4, allocations: 189.6 kB / 0.5169 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.4016, allocations: 1.45 MB / 0.5183 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4016, allocations: 3.938 kB / 0.5183 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.4028, allocations: 1.184 MB / 0.5195 GB, free: 9.215 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.4039, allocations: 284.6 kB / 0.5197 GB, free: 8.945 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/0.4074, allocations: 2.476 MB / 0.5222 GB, free: 6.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/0.4084, allocations: 1.255 MB / 0.5234 GB, free: 5.148 MB / 394.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4085, allocations: 0 / 0.5234 GB, free: 5.148 MB / 394.7 MB Notification: Performance of Templates: time 0.0212/0.4297, allocations: 15.57 MB / 0.5386 GB, free: 5.258 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches