Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002089/0.002089, allocations: 181.7 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.186/3.186, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001273/0.001273, allocations: 86.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005617, allocations: 11.94 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4332/0.4338, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1905/0.6244, allocations: 82.5 MB / 458.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003727/0.6249, allocations: 71.95 kB / 458.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.111/0.7359, allocations: 31.1 MB / 489.4 MB, free: 14.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.988e-06/0.736, allocations: 0 / 489.4 MB, free: 14.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.757e-05/0.7361, allocations: 20 kB / 489.4 MB, free: 14.95 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.004663/0.7408, allocations: 1.481 MB / 490.9 MB, free: 13.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.442e-05/0.7409, allocations: 8.031 kB / 490.9 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007556/0.7416, allocations: 135.3 kB / 491 MB, free: 13.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/0.7437, allocations: 0.5713 MB / 491.6 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.7439, allocations: 28.31 kB / 491.6 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.7442, allocations: 28.38 kB / 491.7 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/0.7465, allocations: 0.6233 MB / 492.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.7466, allocations: 4.188 kB / 492.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.7467, allocations: 19.94 kB / 492.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.7467, allocations: 0 / 492.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.7481, allocations: 463.7 kB / 492.8 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004385/0.7526, allocations: 1.088 MB / 493.8 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.7544, allocations: 0.6858 MB / 494.5 MB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.7561, allocations: 0.6804 MB / 495.2 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.7562, allocations: 7.938 kB / 495.2 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001886/0.7581, allocations: 0.7654 MB / 496 MB, free: 8.105 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 6.152e-06/0.7581, allocations: 4 kB / 496 MB, free: 8.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.005854/0.764, allocations: 1.868 MB / 497.9 MB, free: 6.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003715/0.7644, allocations: 336.9 kB / 498.2 MB, free: 5.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007932/0.7724, allocations: 1.825 MB / 0.4883 GB, free: 3.941 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004394/0.7729, allocations: 41.7 kB / 0.4883 GB, free: 3.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006091/0.7735, allocations: 246.3 kB / 0.4886 GB, free: 3.648 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005243/0.7741, allocations: 75.16 kB / 0.4886 GB, free: 3.574 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.7744, allocations: 16 kB / 0.4887 GB, free: 3.559 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004525/0.7749, allocations: 386.7 kB / 0.489 GB, free: 3.172 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.7767, allocations: 443.7 kB / 0.4894 GB, free: 2.738 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/0.7782, allocations: 478.3 kB / 0.4899 GB, free: 2.262 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002801/0.7811, allocations: 1.161 MB / 0.491 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.7811, allocations: 3.938 kB / 0.491 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.4708/1.252, allocations: 1.36 MB / 0.4924 GB, free: 105.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005801/1.253, allocations: 292.5 kB / 0.4926 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.352e-05/1.253, allocations: 0.5312 kB / 0.4926 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.849e-05/1.253, allocations: 4.281 kB / 0.4927 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.505e-05/1.253, allocations: 6.844 kB / 0.4927 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/1.253, allocations: 1.625 kB / 0.4927 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/1.254, allocations: 41.94 kB / 0.4927 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007339/1.255, allocations: 151.8 kB / 0.4928 GB, free: 105 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.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.003437/1.258, allocations: 1.006 MB / 0.4938 GB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/1.259, allocations: 132.7 kB / 0.494 GB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/1.26, allocations: 250.6 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/1.26, allocations: 2.156 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/1.26, allocations: 0 / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/1.26, allocations: 4.844 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009218/1.269, allocations: 2.421 MB / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/1.269, allocations: 0 / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.516e-05/1.27, allocations: 3.25 kB / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/1.27, allocations: 0 / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/1.27, allocations: 44.03 kB / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.685e-06/1.27, allocations: 3.219 kB / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/1.27, allocations: 0 / 0.4966 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004199/1.274, allocations: 1.648 MB / 0.4982 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002548/1.277, allocations: 0.6787 MB / 0.4989 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003499/1.277, allocations: 61.48 kB / 0.4989 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006089/1.278, allocations: 43.83 kB / 0.499 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/1.279, allocations: 352.6 kB / 0.4993 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004207/1.279, allocations: 163.4 kB / 0.4995 GB, free: 103.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004735/1.284, allocations: 1.333 MB / 0.5008 GB, free: 102.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.284, allocations: 0 / 0.5008 GB, free: 102.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001784/1.286, allocations: 146.9 kB / 0.5009 GB, free: 102.7 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) * 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.0006167/1.286, allocations: 204.5 kB / 0.5011 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003564/1.29, allocations: 1.915 MB / 0.503 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.29, allocations: 2.078 kB / 0.503 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001941/1.292, allocations: 1.399 MB / 0.5043 GB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/1.294, allocations: 314.2 kB / 0.5046 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009255/1.304, allocations: 3.187 MB / 0.5078 GB, free: 99.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/1.306, allocations: 1.195 MB / 0.5089 GB, free: 98.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/1.306, allocations: 29.34 kB / 0.509 GB, free: 98.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.815e-06/1.306, allocations: 0 / 0.509 GB, free: 98.48 MB / 378.7 MB Notification: Performance of Templates: time 0.02923/1.335, allocations: 11.66 MB / 0.5203 GB, free: 93.02 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches