Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002778/0.002778, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.346/3.346, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001317/0.001317, allocations: 89.42 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005571/0.0005572, allocations: 8 kB / 328.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.516/0.5166, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1698/0.6865, allocations: 82.54 MB / 458.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004273/0.687, allocations: 67.97 kB / 458.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0918/0.7788, allocations: 32.66 MB / 491 MB, free: 13.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.7789, allocations: 0 / 491 MB, free: 13.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.805e-05/0.779, allocations: 12 kB / 491 MB, free: 13.38 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.003274/0.7823, allocations: 1.493 MB / 492.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.694e-05/0.7824, allocations: 8.031 kB / 492.5 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.7828, allocations: 135.3 kB / 492.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.784, allocations: 0.5637 MB / 493.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.35e-05/0.7841, allocations: 20.36 kB / 493.2 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.7843, allocations: 32.38 kB / 493.2 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.786, allocations: 0.6272 MB / 493.9 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.786, allocations: 192 / 493.9 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.7861, allocations: 19.92 kB / 493.9 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.7861, allocations: 11.88 kB / 493.9 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.7873, allocations: 455.7 kB / 494.4 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.7904, allocations: 1.099 MB / 495.5 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.7919, allocations: 0.6897 MB / 496.1 MB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.7933, allocations: 0.6763 MB / 496.8 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.7933, allocations: 0 / 496.8 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001623/0.7949, allocations: 0.7693 MB / 497.6 MB, free: 6.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 4.478e-06/0.795, allocations: 0 / 497.6 MB, free: 6.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.004501/0.7995, allocations: 1.879 MB / 499.5 MB, free: 4.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003407/0.7999, allocations: 328.9 kB / 499.8 MB, free: 4.203 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005277/0.8052, allocations: 1.829 MB / 0.4899 GB, free: 2.355 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004/0.8057, allocations: 45.69 kB / 0.4899 GB, free: 2.305 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/0.8061, allocations: 230.5 kB / 0.4901 GB, free: 2.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/0.8064, allocations: 86.98 kB / 0.4902 GB, free: 1.988 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/0.8065, allocations: 12 kB / 0.4902 GB, free: 1.977 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003646/0.8069, allocations: 390.7 kB / 0.4906 GB, free: 1.586 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.808, allocations: 447.7 kB / 0.491 GB, free: 1.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.8092, allocations: 474.3 kB / 0.4915 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4009/1.21, allocations: 1.154 MB / 0.4926 GB, free: 105 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/1.21, allocations: 0.5938 kB / 0.4926 GB, free: 105 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002834/1.213, allocations: 1.366 MB / 0.4939 GB, free: 104.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002849/1.213, allocations: 292.8 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/1.213, allocations: 0 / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/1.213, allocations: 4.625 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.089e-05/1.213, allocations: 7.688 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/1.213, allocations: 1.375 kB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/1.214, allocations: 52.97 kB / 0.4943 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/1.214, allocations: 148.3 kB / 0.4944 GB, free: 104.4 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.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.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.002035/1.216, allocations: 0.9904 MB / 0.4954 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002881/1.217, allocations: 131.8 kB / 0.4955 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000646/1.217, allocations: 251.2 kB / 0.4957 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/1.217, allocations: 6.312 kB / 0.4958 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/1.217, allocations: 0 / 0.4958 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/1.217, allocations: 1.031 kB / 0.4958 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003983/1.221, allocations: 2.426 MB / 0.4981 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/1.221, allocations: 1.688 kB / 0.4981 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.553e-05/1.221, allocations: 6.188 kB / 0.4981 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-06/1.221, allocations: 4.688 kB / 0.4981 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/1.221, allocations: 40.58 kB / 0.4982 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/1.221, allocations: 0 / 0.4982 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.221, allocations: 4.625 kB / 0.4982 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/1.224, allocations: 1.644 MB / 0.4998 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/1.225, allocations: 0.678 MB / 0.5004 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/1.226, allocations: 61.48 kB / 0.5005 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003671/1.226, allocations: 44.25 kB / 0.5005 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006213/1.227, allocations: 357 kB / 0.5009 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/1.227, allocations: 161.3 kB / 0.501 GB, free: 102.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002216/1.229, allocations: 1.33 MB / 0.5023 GB, free: 102.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.229, allocations: 0 / 0.5023 GB, free: 102.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000624/1.23, allocations: 148.2 kB / 0.5025 GB, free: 102.1 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,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.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.0002844/1.23, allocations: 195.7 kB / 0.5027 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/1.232, allocations: 1.919 MB / 0.5045 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.232, allocations: 3.844 kB / 0.5045 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/1.233, allocations: 1.396 MB / 0.5059 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/1.234, allocations: 315.9 kB / 0.5062 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/1.239, allocations: 3.193 MB / 0.5093 GB, free: 98.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/1.241, allocations: 1.189 MB / 0.5105 GB, free: 97.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.015e-05/1.241, allocations: 31.81 kB / 0.5105 GB, free: 97.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.054e-06/1.241, allocations: 0 / 0.5105 GB, free: 97.62 MB / 378.7 MB Notification: Performance of Templates: time 0.0496/1.29, allocations: 11.66 MB / 0.5219 GB, free: 91.48 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches