Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.000975/0.000975, allocations: 176.1 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.131/1.131, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008305/0.0008305, allocations: 82.25 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.583e-06/6.623e-06, allocations: 4 kB / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06789/0.06791, allocations: 47.57 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.2922, allocations: 81.63 MB / 444.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.2925, allocations: 66.03 kB / 444.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04991/0.3424, allocations: 30.5 MB / 474.7 MB, free: 15.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.306e-05/0.3425, allocations: 12 kB / 474.7 MB, free: 15.5 MB / 330.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.001401/0.3439, allocations: 1.301 MB / 476 MB, free: 14.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.3439, allocations: 8.031 kB / 476.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.3441, allocations: 130.4 kB / 476.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007562/0.3449, allocations: 0.5257 MB / 476.7 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.3449, allocations: 16 kB / 476.7 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.749e-05/0.345, allocations: 23.94 kB / 476.7 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005985/0.3456, allocations: 461.6 kB / 477.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008154/0.3465, allocations: 0.6082 MB / 477.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.3465, allocations: 0 / 477.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.401e-05/0.3465, allocations: 11.81 kB / 477.8 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3466, allocations: 4 kB / 477.8 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.3482, allocations: 1.071 MB / 478.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.3488, allocations: 0.687 MB / 479.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000613/0.3495, allocations: 0.6821 MB / 480.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.3495, allocations: 0 / 480.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007311/0.3502, allocations: 0.7298 MB / 481 MB, free: 10.4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 1.723e-06/0.3502, allocations: 4 kB / 481 MB, free: 10.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001254/0.3515, allocations: 0.9597 MB / 482 MB, free: 9.637 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.3517, allocations: 325.5 kB / 482.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.3537, allocations: 1.552 MB / 483.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.963e-05/0.3538, allocations: 45.12 kB / 483.9 MB, free: 7.941 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.3539, allocations: 152.7 kB / 484 MB, free: 7.805 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.354, allocations: 81.53 kB / 484.1 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.277e-05/0.3541, allocations: 8 kB / 484.1 MB, free: 7.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3543, allocations: 383.4 kB / 484.5 MB, free: 7.371 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.3549, allocations: 461.3 kB / 484.9 MB, free: 7.055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/0.3554, allocations: 446.3 kB / 485.4 MB, free: 6.754 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003676/0.3558, allocations: 310.1 kB / 485.7 MB, free: 6.543 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3558, allocations: 0 / 485.7 MB, free: 6.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001283/0.3571, allocations: 0.9057 MB / 486.6 MB, free: 5.848 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.3571, allocations: 4 kB / 486.6 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3571, allocations: 4 kB / 486.6 MB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3571, allocations: 3.938 kB / 486.6 MB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.791e-05/0.3572, allocations: 1.062 kB / 486.6 MB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3572, allocations: 4 kB / 486.6 MB, free: 5.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.3575, allocations: 49.02 kB / 486.6 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.3577, allocations: 150.9 kB / 486.8 MB, free: 5.641 MB / 330.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.0004213/0.3582, allocations: 454.3 kB / 487.2 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.3583, allocations: 138.4 kB / 487.4 MB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004558/0.3588, allocations: 254.1 kB / 487.6 MB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3588, allocations: 4 kB / 487.6 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3588, allocations: 3.938 kB / 487.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3588, allocations: 0 / 487.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.3612, allocations: 1.86 MB / 489.5 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3613, allocations: 0 / 489.5 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.285e-05/0.3613, allocations: 11.94 kB / 489.5 MB, free: 3.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3613, allocations: 0 / 489.5 MB, free: 3.086 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-05/0.3614, allocations: 39.98 kB / 489.5 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3614, allocations: 0 / 489.5 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3614, allocations: 0 / 489.5 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001427/0.3628, allocations: 1.14 MB / 490.7 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.3639, allocations: 0.698 MB / 491.4 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.3641, allocations: 59.97 kB / 491.4 MB, free: 1.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.3645, allocations: 39.97 kB / 491.5 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005542/0.3651, allocations: 370.7 kB / 491.8 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001768/0.3652, allocations: 167.8 kB / 492 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001751/0.367, allocations: 1.266 MB / 493.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004789/0.3675, allocations: 132 kB / 493.4 MB, free: 15.14 MB / 346.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.0002579/0.3678, allocations: 189.7 kB / 493.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.3694, allocations: 1.452 MB / 495 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3694, allocations: 0 / 495 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.3705, allocations: 1.169 MB / 496.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.3716, allocations: 305.6 kB / 496.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.3752, allocations: 2.483 MB / 499 MB, free: 9.414 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/0.3763, allocations: 1.243 MB / 0.4885 GB, free: 8.141 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3763, allocations: 0 / 0.4885 GB, free: 8.141 MB / 346.7 MB Notification: Performance of Templates: time 0.0198/0.3961, allocations: 15.56 MB / 0.5037 GB, free: 8.195 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches