Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG") [: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.001517/0.001517, allocations: 203.9 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009438/0.0009437, allocations: 94.7 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.895e-06/7.935e-06, allocations: 4 kB / 343.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.09353, allocations: 51.48 MB / 394.6 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2283/0.3219, allocations: 83.12 MB / 477.7 MB, free: 9.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.3222, allocations: 65.3 kB / 477.8 MB, free: 9.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0492/0.3714, allocations: 27.6 MB / 0.4936 GB, free: 3.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.3714, allocations: 8.844 kB / 0.4936 GB, free: 3.824 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009604/0.3724, allocations: 1.012 MB / 0.4946 GB, free: 2.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.3724, allocations: 12.03 kB / 0.4946 GB, free: 2.781 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.3726, allocations: 86.97 kB / 0.4946 GB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.3732, allocations: 432.4 kB / 0.4951 GB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.3733, allocations: 23.48 kB / 0.4951 GB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.3733, allocations: 20 kB / 0.4951 GB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005553/0.3739, allocations: 348.4 kB / 0.4954 GB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006866/0.3746, allocations: 0.5016 MB / 0.4959 GB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.3746, allocations: 0.9375 kB / 0.4959 GB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.3747, allocations: 8 kB / 0.4959 GB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.3747, allocations: 7.906 kB / 0.4959 GB, free: 1.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.3761, allocations: 0.8456 MB / 0.4968 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.3767, allocations: 0.4945 MB / 0.4972 GB, free: 332 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005814/0.3773, allocations: 0.4889 MB / 0.4977 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.3773, allocations: 0 / 0.4977 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000724/0.3781, allocations: 0.6159 MB / 0.4983 GB, free: 15.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.084e-06/0.3781, allocations: 0 / 0.4983 GB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001275/0.3794, allocations: 0.7805 MB / 0.4991 GB, free: 14.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/0.3796, allocations: 280 kB / 0.4994 GB, free: 14.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.3809, allocations: 0.9957 MB / 0.5003 GB, free: 13.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.567e-05/0.381, allocations: 41.7 kB / 0.5004 GB, free: 13.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.3811, allocations: 113.9 kB / 0.5005 GB, free: 12.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.3812, allocations: 79.17 kB / 0.5006 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.3813, allocations: 11.98 kB / 0.5006 GB, free: 12.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3814, allocations: 342.8 kB / 0.5009 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004872/0.3819, allocations: 356.1 kB / 0.5012 GB, free: 12.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00048/0.3824, allocations: 348.4 kB / 0.5016 GB, free: 11.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.3828, allocations: 260.9 kB / 0.5018 GB, free: 11.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3828, allocations: 0 / 0.5018 GB, free: 11.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009956/0.3838, allocations: 0.7279 MB / 0.5025 GB, free: 10.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.3838, allocations: 4 kB / 0.5025 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3838, allocations: 4 kB / 0.5025 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3838, allocations: 0 / 0.5025 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.704e-05/0.3839, allocations: 7.906 kB / 0.5025 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.3839, allocations: 0 / 0.5025 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.3842, allocations: 39.84 kB / 0.5026 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.3844, allocations: 146.4 kB / 0.5027 GB, free: 10.59 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0003401/0.3847, allocations: 398 kB / 0.5031 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.3849, allocations: 94.97 kB / 0.5032 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.3851, allocations: 151.7 kB / 0.5033 GB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3851, allocations: 0 / 0.5033 GB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3851, allocations: 4 kB / 0.5033 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3851, allocations: 0 / 0.5033 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.3869, allocations: 1.498 MB / 0.5048 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.387, allocations: 0 / 0.5048 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.858e-06/0.387, allocations: 0 / 0.5048 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.387, allocations: 4 kB / 0.5048 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.462e-05/0.3871, allocations: 39.97 kB / 0.5048 GB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3871, allocations: 0 / 0.5048 GB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.3871, allocations: 4 kB / 0.5048 GB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001131/0.3882, allocations: 0.9286 MB / 0.5057 GB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008423/0.3891, allocations: 0.5777 MB / 0.5063 GB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.3893, allocations: 63.95 kB / 0.5064 GB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.3896, allocations: 31.89 kB / 0.5064 GB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003855/0.39, allocations: 243.7 kB / 0.5066 GB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.3902, allocations: 160.1 kB / 0.5068 GB, free: 6.289 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001046/0.3912, allocations: 0.8265 MB / 0.5076 GB, free: 5.465 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000444/0.3917, allocations: 108 kB / 0.5077 GB, free: 5.359 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0002376/0.3919, allocations: 188.4 kB / 0.5079 GB, free: 5.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.3932, allocations: 1.097 MB / 0.5089 GB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3932, allocations: 0 / 0.5089 GB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008727/0.3941, allocations: 0.9294 MB / 0.5099 GB, free: 3.055 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3951, allocations: 273.2 kB / 0.5101 GB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.3977, allocations: 1.73 MB / 0.5118 GB, free: 1.035 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007416/0.3985, allocations: 1.057 MB / 0.5128 GB, free: 15.95 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3985, allocations: 0 / 0.5128 GB, free: 15.95 MB / 394.7 MB Notification: Performance of Templates: time 0.01663/0.4151, allocations: 13 MB / 0.5255 GB, free: 2.754 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches