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.001657/0.001657, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.96/1.96, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001038/0.001038, allocations: 78.67 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.838e-05/2.844e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09778, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.52, allocations: 82.37 MB / 451.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5204, allocations: 75.48 kB / 451.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1064/0.6268, allocations: 31.26 MB / 482.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6269, allocations: 0 / 482.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.632e-05/0.6269, allocations: 12 kB / 482.8 MB, free: 13.51 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002168/0.6291, allocations: 1.311 MB / 484.1 MB, free: 12.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.6292, allocations: 8.031 kB / 484.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003333/0.6295, allocations: 126.5 kB / 484.2 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.6307, allocations: 0.5051 MB / 484.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.829e-05/0.6308, allocations: 20 kB / 484.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.631, allocations: 32 kB / 484.8 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.6326, allocations: 0.6299 MB / 485.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.6326, allocations: 0 / 485.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.6327, allocations: 23.98 kB / 485.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.6327, allocations: 0 / 485.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.6339, allocations: 459.8 kB / 485.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.6366, allocations: 1.088 MB / 487 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.638, allocations: 0.682 MB / 487.7 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.6395, allocations: 0.6764 MB / 488.3 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.6395, allocations: 4 kB / 488.3 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001557/0.6411, allocations: 0.761 MB / 489.1 MB, free: 6.934 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 3.547e-06/0.6411, allocations: 3.938 kB / 489.1 MB, free: 6.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.003317/0.6445, allocations: 1.415 MB / 490.5 MB, free: 5.457 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003093/0.6448, allocations: 329 kB / 490.8 MB, free: 5.074 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003958/0.6488, allocations: 1.602 MB / 492.5 MB, free: 3.457 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.6491, allocations: 41.7 kB / 492.5 MB, free: 3.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.6494, allocations: 249 kB / 492.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.6496, allocations: 91.14 kB / 492.8 MB, free: 3.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-05/0.6497, allocations: 12 kB / 492.8 MB, free: 3.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.6499, allocations: 326.8 kB / 493.2 MB, free: 2.734 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.651, allocations: 452 kB / 493.6 MB, free: 2.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.6521, allocations: 448.2 kB / 494 MB, free: 1.852 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.6531, allocations: 0.584 MB / 494.6 MB, free: 1.219 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.6531, allocations: 4 kB / 494.6 MB, free: 1.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002958/0.6561, allocations: 1.304 MB / 495.9 MB, free: 15.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003121/0.6564, allocations: 293.5 kB / 496.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.6565, allocations: 0 / 496.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.6565, allocations: 8 kB / 496.2 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.952e-05/0.6565, allocations: 7.875 kB / 496.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.6566, allocations: 4 kB / 496.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006591/0.6572, allocations: 39.97 kB / 496.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002878/0.6575, allocations: 159.8 kB / 496.4 MB, free: 15.3 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.000644/0.6582, allocations: 462.4 kB / 496.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002835/0.6585, allocations: 134.4 kB / 497 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008277/0.6593, allocations: 255.7 kB / 497.3 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.6594, allocations: 0 / 497.3 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.6594, allocations: 0 / 497.3 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.6594, allocations: 4 kB / 497.3 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005054/0.6645, allocations: 2.395 MB / 499.7 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.6645, allocations: 4 kB / 499.7 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.479e-05/0.6645, allocations: 4 kB / 499.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.6646, allocations: 0 / 499.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.6647, allocations: 43.97 kB / 499.7 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.6647, allocations: 0 / 499.7 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6647, allocations: 0 / 499.7 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003419/0.6681, allocations: 1.618 MB / 0.4896 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/0.6702, allocations: 0.6786 MB / 0.4902 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.6705, allocations: 67.95 kB / 0.4903 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006268/0.6712, allocations: 35.97 kB / 0.4903 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009431/0.6721, allocations: 355.6 kB / 0.4907 GB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002868/0.6724, allocations: 155.9 kB / 0.4908 GB, free: 8.863 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003257/0.6757, allocations: 1.323 MB / 0.4921 GB, free: 7.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6757, allocations: 0 / 0.4921 GB, free: 7.535 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008552/0.6766, allocations: 159.9 kB / 0.4923 GB, free: 7.379 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.0003968/0.677, allocations: 197.6 kB / 0.4925 GB, free: 7.176 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003376/0.6804, allocations: 1.913 MB / 0.4943 GB, free: 5.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.6805, allocations: 0 / 0.4943 GB, free: 5.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/0.6826, allocations: 1.39 MB / 0.4957 GB, free: 3.672 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.6847, allocations: 314.1 kB / 0.496 GB, free: 3.363 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006261/0.691, allocations: 2.571 MB / 0.4985 GB, free: 0.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001563/0.6926, allocations: 1.213 MB / 0.4997 GB, free: 15.51 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.169e-05/0.6927, allocations: 31.44 kB / 0.4997 GB, free: 15.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6927, allocations: 0 / 0.4997 GB, free: 15.48 MB / 394.7 MB Notification: Performance of Templates: time 0.02565/0.7184, allocations: 11.42 MB / 0.5109 GB, free: 3.82 MB / 394.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