Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009832/0.0009832, allocations: 185.5 kB / 8.135 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.129/1.129, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008992/0.0008991, allocations: 106.3 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.785e-06/7.815e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1839, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08704/0.271, allocations: 82.55 MB / 469.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.2712, allocations: 71.89 kB / 469.5 MB, free: 4.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05726/0.3285, allocations: 30.79 MB / 0.4886 GB, free: 5.484 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.3285, allocations: 16 kB / 0.4886 GB, free: 5.469 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.001201/0.3297, allocations: 1.303 MB / 0.4899 GB, free: 4.066 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.3298, allocations: 12.03 kB / 0.4899 GB, free: 4.055 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.33, allocations: 130.4 kB / 0.49 GB, free: 3.926 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000733/0.3307, allocations: 0.5246 MB / 0.4905 GB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.3308, allocations: 19.98 kB / 0.4905 GB, free: 3.332 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.423e-05/0.3309, allocations: 32 kB / 0.4906 GB, free: 3.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006298/0.3315, allocations: 451.8 kB / 0.491 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008253/0.3323, allocations: 0.6139 MB / 0.4916 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.3323, allocations: 0 / 0.4916 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.941e-05/0.3325, allocations: 19.94 kB / 0.4916 GB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.3325, allocations: 0 / 0.4916 GB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.3341, allocations: 1.071 MB / 0.4927 GB, free: 1.109 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007323/0.3349, allocations: 0.6858 MB / 0.4933 GB, free: 424 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1191/0.454, allocations: 0.6715 MB / 0.494 GB, free: 134.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.4541, allocations: 3.812 kB / 0.494 GB, free: 134.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009091/0.455, allocations: 0.7212 MB / 0.4947 GB, free: 133.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.815e-06/0.455, allocations: 0 / 0.4947 GB, free: 133.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001258/0.4563, allocations: 0.9691 MB / 0.4957 GB, free: 133.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.4564, allocations: 325 kB / 0.496 GB, free: 133.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.4584, allocations: 1.553 MB / 0.4975 GB, free: 133.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.243e-05/0.4585, allocations: 43.66 kB / 0.4975 GB, free: 133.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.456e-05/0.4585, allocations: 152.9 kB / 0.4977 GB, free: 133.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4587, allocations: 87.72 kB / 0.4978 GB, free: 133.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.4587, allocations: 9.656 kB / 0.4978 GB, free: 133.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.4588, allocations: 382.1 kB / 0.4981 GB, free: 132.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004801/0.4593, allocations: 451.5 kB / 0.4986 GB, free: 132.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000457/0.4598, allocations: 442.9 kB / 0.499 GB, free: 132.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.4601, allocations: 309.7 kB / 0.4993 GB, free: 132.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.4601, allocations: 0 / 0.4993 GB, free: 132.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001114/0.4612, allocations: 0.9136 MB / 0.5002 GB, free: 132.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.4613, allocations: 3.156 kB / 0.5002 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4613, allocations: 0 / 0.5002 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.4613, allocations: 3.594 kB / 0.5002 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.962e-05/0.4613, allocations: 3.094 kB / 0.5002 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.4613, allocations: 3.125 kB / 0.5002 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000362/0.4617, allocations: 43.3 kB / 0.5002 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.4619, allocations: 151 kB / 0.5004 GB, free: 132.6 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.0003377/0.4622, allocations: 460.9 kB / 0.5008 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.4623, allocations: 130.6 kB / 0.5009 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003705/0.4627, allocations: 249.2 kB / 0.5012 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.4627, allocations: 0 / 0.5012 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4627, allocations: 3.656 kB / 0.5012 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.4627, allocations: 7.25 kB / 0.5012 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.4649, allocations: 1.879 MB / 0.503 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.4649, allocations: 0 / 0.503 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.107e-05/0.4649, allocations: 0 / 0.503 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.4649, allocations: 3.625 kB / 0.503 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-05/0.465, allocations: 42.81 kB / 0.5031 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.465, allocations: 0 / 0.5031 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.465, allocations: 0 / 0.5031 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001194/0.4662, allocations: 1.143 MB / 0.5042 GB, free: 131.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009209/0.4671, allocations: 0.6952 MB / 0.5048 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002085/0.4673, allocations: 63.14 kB / 0.5049 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.4677, allocations: 36.05 kB / 0.5049 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000466/0.4682, allocations: 366.9 kB / 0.5053 GB, free: 131.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/0.4684, allocations: 163.6 kB / 0.5054 GB, free: 131.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001676/0.4701, allocations: 1.265 MB / 0.5067 GB, free: 130.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005309/0.4706, allocations: 135.5 kB / 0.5068 GB, free: 130.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,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.0002759/0.4709, allocations: 192.8 kB / 0.507 GB, free: 130.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.4724, allocations: 1.447 MB / 0.5084 GB, free: 130.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4724, allocations: 0 / 0.5084 GB, free: 130.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.4735, allocations: 1.174 MB / 0.5096 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.4747, allocations: 288.1 kB / 0.5098 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.479, allocations: 2.482 MB / 0.5123 GB, free: 129.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/0.4802, allocations: 1.245 MB / 0.5135 GB, free: 128.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.4802, allocations: 0 / 0.5135 GB, free: 128.8 MB / 378.7 MB Notification: Performance of Templates: time 0.02269/0.5029, allocations: 15.57 MB / 0.5287 GB, free: 121.9 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches