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.00151/0.001514, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.901/1.901, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.00113/0.001129, allocations: 84.44 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003984, allocations: 12 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3419, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.474, allocations: 82.46 MB / 457 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.4744, allocations: 75.97 kB / 457.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1015/0.5759, allocations: 31.1 MB / 488.2 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.576, allocations: 0 / 488.2 MB, free: 15.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.257e-05/0.5761, allocations: 16 kB / 488.2 MB, free: 15.12 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.002261/0.5783, allocations: 1.497 MB / 489.7 MB, free: 13.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.5784, allocations: 8.031 kB / 489.7 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002921/0.5787, allocations: 138.4 kB / 489.8 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.5797, allocations: 0.509 MB / 490.3 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.5798, allocations: 20 kB / 490.4 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.58, allocations: 35.92 kB / 490.4 MB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001679/0.5816, allocations: 0.6385 MB / 491 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.5817, allocations: 0 / 491 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.5818, allocations: 12 kB / 491 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.5818, allocations: 4 kB / 491 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.583, allocations: 475.6 kB / 491.5 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.5857, allocations: 1.076 MB / 492.6 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/0.5876, allocations: 0.7053 MB / 493.3 MB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.5877, allocations: 144 / 493.3 MB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001929/0.5896, allocations: 0.7732 MB / 494.1 MB, free: 8.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 5.07e-06/0.5897, allocations: 0 / 494.1 MB, free: 8.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.005232/0.5949, allocations: 2.125 MB / 496.2 MB, free: 6.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002983/0.5953, allocations: 329 kB / 496.5 MB, free: 6.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/0.6, allocations: 1.619 MB / 498.1 MB, free: 4.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002682/0.6003, allocations: 45.69 kB / 498.2 MB, free: 4.676 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/0.6006, allocations: 241 kB / 498.4 MB, free: 4.438 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.6008, allocations: 83.06 kB / 498.5 MB, free: 4.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.601, allocations: 15.98 kB / 498.5 MB, free: 4.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.6011, allocations: 330.7 kB / 498.8 MB, free: 4.008 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.6023, allocations: 447.9 kB / 499.3 MB, free: 3.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.6035, allocations: 486.7 kB / 499.7 MB, free: 3.082 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.6046, allocations: 0.5984 MB / 0.4886 GB, free: 2.434 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.6047, allocations: 3.938 kB / 0.4886 GB, free: 2.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003152/0.6078, allocations: 1.307 MB / 0.4899 GB, free: 1.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000305/0.6082, allocations: 293.5 kB / 0.4902 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.6082, allocations: 0 / 0.4902 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.6082, allocations: 3.953 kB / 0.4902 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.149e-05/0.6083, allocations: 4 kB / 0.4902 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.6083, allocations: 12 kB / 0.4902 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006974/0.609, allocations: 43.88 kB / 0.4902 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/0.6093, allocations: 155.9 kB / 0.4904 GB, free: 0.5156 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.2747/0.8841, allocations: 0.9825 MB / 0.4913 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003385/0.8844, allocations: 131.8 kB / 0.4915 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008451/0.8853, allocations: 253.9 kB / 0.4917 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.8853, allocations: 6.562 kB / 0.4917 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.8853, allocations: 3.516 kB / 0.4917 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.8853, allocations: 0 / 0.4917 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00528/0.8906, allocations: 2.421 MB / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.8907, allocations: 3.625 kB / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.417e-05/0.8907, allocations: 1.812 kB / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-06/0.8907, allocations: 4.594 kB / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.8909, allocations: 39.36 kB / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.8909, allocations: 1.156 kB / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.8909, allocations: 0 / 0.4941 GB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003441/0.8944, allocations: 1.627 MB / 0.4957 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/0.8961, allocations: 0.6837 MB / 0.4964 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002962/0.8964, allocations: 65.83 kB / 0.4964 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000599/0.897, allocations: 50.41 kB / 0.4965 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008777/0.8979, allocations: 353.9 kB / 0.4968 GB, free: 103.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002801/0.8982, allocations: 157.9 kB / 0.497 GB, free: 103.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003157/0.9014, allocations: 1.328 MB / 0.4983 GB, free: 103.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.9015, allocations: 0 / 0.4983 GB, free: 103.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009922/0.9025, allocations: 149.1 kB / 0.4984 GB, free: 103.2 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.0003644/0.9028, allocations: 193.9 kB / 0.4986 GB, free: 103.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003278/0.9061, allocations: 1.93 MB / 0.5005 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.9062, allocations: 2.078 kB / 0.5005 GB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.9081, allocations: 1.41 MB / 0.5019 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.91, allocations: 301.6 kB / 0.5022 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006074/0.9161, allocations: 3.193 MB / 0.5053 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.9174, allocations: 1.215 MB / 0.5065 GB, free: 99.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.711e-05/0.9175, allocations: 28.88 kB / 0.5065 GB, free: 99.26 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9175, allocations: 0 / 0.5065 GB, free: 99.26 MB / 378.7 MB Notification: Performance of Templates: time 0.02104/0.9386, allocations: 11.44 MB / 0.5177 GB, free: 94.97 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