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.001388/0.001388, allocations: 179.4 kB / 8.363 MB, free: 0.7148 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.952/1.952, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001257/0.001257, allocations: 95.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.742e-05/2.75e-05, allocations: 4 kB / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.3751, allocations: 47.56 MB / 362.3 MB, free: 45.81 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1452/0.5204, allocations: 81.71 MB / 444 MB, free: 4.586 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.5208, allocations: 71.97 kB / 444.1 MB, free: 4.516 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1108/0.6316, allocations: 31.07 MB / 475.2 MB, free: 5.566 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.6317, allocations: 4 kB / 475.2 MB, free: 5.562 MB / 363.1 MB Notification: Performance of Transformations before backend: time 5.522e-05/0.6318, allocations: 16 kB / 475.2 MB, free: 5.547 MB / 363.1 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.002461/0.6342, allocations: 1.302 MB / 476.5 MB, free: 4.148 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.6343, allocations: 8.031 kB / 476.5 MB, free: 4.141 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004525/0.6348, allocations: 126.5 kB / 476.6 MB, free: 4.016 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.6362, allocations: 0.5129 MB / 477.1 MB, free: 3.453 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.034e-05/0.6363, allocations: 20 kB / 477.2 MB, free: 3.434 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.6365, allocations: 27.98 kB / 477.2 MB, free: 3.406 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001135/0.6376, allocations: 446.6 kB / 477.6 MB, free: 2.973 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.6391, allocations: 0.5949 MB / 478.2 MB, free: 2.371 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.6392, allocations: 0 / 478.2 MB, free: 2.371 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.6393, allocations: 11.98 kB / 478.2 MB, free: 2.359 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.6393, allocations: 4 kB / 478.2 MB, free: 2.355 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002864/0.6422, allocations: 1.047 MB / 479.3 MB, free: 1.266 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.6437, allocations: 0.6703 MB / 480 MB, free: 0.5859 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.6451, allocations: 0.6569 MB / 480.6 MB, free: 15.92 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.6452, allocations: 4 kB / 480.6 MB, free: 15.92 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00162/0.6468, allocations: 0.7617 MB / 481.4 MB, free: 15.12 MB / 379.1 MB Notification: Performance of pre-optimization done (n=36): time 4.348e-06/0.6469, allocations: 3.938 kB / 481.4 MB, free: 15.12 MB / 379.1 MB Notification: Performance of matching and sorting (n=36): time 0.002896/0.6498, allocations: 1.097 MB / 482.5 MB, free: 14.01 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002893/0.6501, allocations: 321 kB / 482.8 MB, free: 13.64 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0042/0.6543, allocations: 1.542 MB / 484.3 MB, free: 12.08 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003302/0.6547, allocations: 41.7 kB / 484.4 MB, free: 12.04 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003486/0.6551, allocations: 245 kB / 484.6 MB, free: 11.79 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.6554, allocations: 86.97 kB / 484.7 MB, free: 11.71 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.321e-05/0.6555, allocations: 12 kB / 484.7 MB, free: 11.7 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6556, allocations: 330.8 kB / 485 MB, free: 11.37 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.6567, allocations: 436 kB / 485.5 MB, free: 10.94 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009923/0.6577, allocations: 440 kB / 485.9 MB, free: 10.51 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006787/0.6584, allocations: 293.6 kB / 486.2 MB, free: 10.22 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.6584, allocations: 0 / 486.2 MB, free: 10.22 MB / 379.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002578/0.661, allocations: 0.9939 MB / 487.2 MB, free: 9.223 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003399/0.6614, allocations: 293.5 kB / 487.5 MB, free: 8.887 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.6615, allocations: 0 / 487.5 MB, free: 8.887 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.744e-05/0.6615, allocations: 0 / 487.5 MB, free: 8.887 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.03e-05/0.6616, allocations: 3.938 kB / 487.5 MB, free: 8.883 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.6616, allocations: 11.94 kB / 487.5 MB, free: 8.871 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007445/0.6623, allocations: 40.05 kB / 487.5 MB, free: 8.832 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003321/0.6627, allocations: 151.9 kB / 487.7 MB, free: 8.684 MB / 379.1 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.0007189/0.6634, allocations: 466.4 kB / 488.1 MB, free: 8.172 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/0.6638, allocations: 134.4 kB / 488.2 MB, free: 8.039 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009181/0.6647, allocations: 260 kB / 488.5 MB, free: 7.781 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.6647, allocations: 0 / 488.5 MB, free: 7.781 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6647, allocations: 0 / 488.5 MB, free: 7.781 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.6648, allocations: 0 / 488.5 MB, free: 7.781 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/0.6699, allocations: 2.005 MB / 490.5 MB, free: 5.727 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.67, allocations: 0 / 490.5 MB, free: 5.727 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.001e-05/0.67, allocations: 0 / 490.5 MB, free: 5.727 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.67, allocations: 8 kB / 490.5 MB, free: 5.719 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.6702, allocations: 39.97 kB / 490.6 MB, free: 5.68 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6702, allocations: 0 / 490.6 MB, free: 5.68 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.6702, allocations: 0 / 490.6 MB, free: 5.68 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003081/0.6733, allocations: 1.272 MB / 491.8 MB, free: 4.391 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/0.6757, allocations: 0.6786 MB / 492.5 MB, free: 3.691 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003537/0.6761, allocations: 63.97 kB / 492.6 MB, free: 3.629 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006767/0.6768, allocations: 43.91 kB / 492.6 MB, free: 3.586 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/0.6778, allocations: 351.6 kB / 493 MB, free: 3.242 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/0.6782, allocations: 159.9 kB / 493.1 MB, free: 3.086 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.003573/0.6818, allocations: 1.259 MB / 494.4 MB, free: 1.824 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.262e-06/0.6818, allocations: 3.938 kB / 494.4 MB, free: 1.82 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001151/0.683, allocations: 147.9 kB / 494.5 MB, free: 1.676 MB / 379.1 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.0004553/0.6835, allocations: 193.7 kB / 494.7 MB, free: 1.477 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.003453/0.687, allocations: 1.878 MB / 496.6 MB, free: 15.5 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.687, allocations: 0 / 496.6 MB, free: 15.5 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002237/0.6893, allocations: 1.37 MB / 498 MB, free: 14.03 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.6916, allocations: 296 kB / 498.2 MB, free: 13.75 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007014/0.6987, allocations: 2.547 MB / 0.4891 GB, free: 11.15 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001708/0.7005, allocations: 1.217 MB / 0.4902 GB, free: 9.91 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.7006, allocations: 27.44 kB / 0.4903 GB, free: 9.883 MB / 395.1 MB Notification: Performance of SimCode: time 1.923e-06/0.7006, allocations: 0 / 0.4903 GB, free: 9.883 MB / 395.1 MB Notification: Performance of Templates: time 0.3028/1.003, allocations: 11.35 MB / 0.5013 GB, free: 116.6 MB / 395.1 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