Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001637/0.001637, allocations: 180.5 kB / 17.41 MB, free: 4.402 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.53/3.53, allocations: 205.4 MB / 223.6 MB, free: 8.93 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.001322/0.001322, allocations: 92.73 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004172/0.0004172, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5648/0.5653, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1992/0.7646, allocations: 82.24 MB / 458 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003409/0.765, allocations: 79.95 kB / 458 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1082/0.8732, allocations: 27.82 MB / 485.9 MB, free: 2.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.269e-06/0.8733, allocations: 0 / 485.9 MB, free: 2.523 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.425e-05/0.8734, allocations: 8 kB / 485.9 MB, free: 2.516 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002396/0.8758, allocations: 1.132 MB / 487 MB, free: 1.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.889e-05/0.8759, allocations: 12.03 kB / 487 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003046/0.8762, allocations: 84 kB / 487.1 MB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.8774, allocations: 471.9 kB / 487.6 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.572e-05/0.8775, allocations: 16.38 kB / 487.6 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.8776, allocations: 24.38 kB / 487.6 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.8793, allocations: 0.5128 MB / 488.1 MB, free: 132 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.8794, allocations: 4.125 kB / 488.1 MB, free: 128 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.8795, allocations: 19.92 kB / 488.1 MB, free: 108 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.8795, allocations: 4 kB / 488.1 MB, free: 104 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.8807, allocations: 360.1 kB / 488.5 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/0.8834, allocations: 0.8598 MB / 489.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.8848, allocations: 0.51 MB / 489.9 MB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.8861, allocations: 0.4928 MB / 490.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.8861, allocations: 8 kB / 490.4 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00173/0.8879, allocations: 0.6431 MB / 491 MB, free: 13.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 7.975e-06/0.8879, allocations: 4 kB / 491 MB, free: 13.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.004617/0.8925, allocations: 1.557 MB / 492.6 MB, free: 11.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003459/0.8929, allocations: 275.3 kB / 492.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01438/0.9073, allocations: 1.168 MB / 494 MB, free: 10.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/0.9077, allocations: 45.7 kB / 494 MB, free: 9.973 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.908, allocations: 146 kB / 494.2 MB, free: 9.824 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/0.9083, allocations: 79.05 kB / 494.3 MB, free: 9.746 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.174e-05/0.9084, allocations: 12 kB / 494.3 MB, free: 9.734 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002524/0.9086, allocations: 346.8 kB / 494.6 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.9097, allocations: 344.1 kB / 494.9 MB, free: 9.051 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.9109, allocations: 378.9 kB / 495.3 MB, free: 8.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.913, allocations: 0.9787 MB / 496.3 MB, free: 7.598 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.913, allocations: 3.938 kB / 496.3 MB, free: 7.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003053/0.9161, allocations: 1.145 MB / 497.4 MB, free: 6.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003482/0.9165, allocations: 239.9 kB / 497.7 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.9165, allocations: 0 / 497.7 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.255e-05/0.9166, allocations: 4 kB / 497.7 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.61e-05/0.9166, allocations: 0 / 497.7 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.9166, allocations: 12 kB / 497.7 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006701/0.9173, allocations: 43.81 kB / 497.7 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.9177, allocations: 152.2 kB / 497.9 MB, free: 5.914 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: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.002047/0.9197, allocations: 0.7601 MB / 498.6 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002974/0.92, allocations: 90.97 kB / 498.7 MB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006413/0.9207, allocations: 155.7 kB / 498.9 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.9207, allocations: 3.984 kB / 498.9 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.9207, allocations: 3.938 kB / 498.9 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.9208, allocations: 4 kB / 498.9 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004972/0.9257, allocations: 1.989 MB / 0.4891 GB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.9258, allocations: 3.938 kB / 0.4892 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.788e-05/0.9258, allocations: 0 / 0.4892 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.9258, allocations: 0 / 0.4892 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.926, allocations: 47.91 kB / 0.4892 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.926, allocations: 0 / 0.4892 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.926, allocations: 3.938 kB / 0.4892 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.9297, allocations: 1.405 MB / 0.4906 GB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/0.9318, allocations: 0.5581 MB / 0.4911 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000381/0.9323, allocations: 63.89 kB / 0.4912 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006677/0.9329, allocations: 31.98 kB / 0.4912 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007976/0.9338, allocations: 239.7 kB / 0.4914 GB, free: 332 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003968/0.9342, allocations: 159.9 kB / 0.4916 GB, free: 172 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.5096/1.444, allocations: 0.8571 MB / 0.4924 GB, free: 107.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.282e-06/1.444, allocations: 0 / 0.4924 GB, free: 107.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001619/1.445, allocations: 122.1 kB / 0.4925 GB, free: 107.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0005734/1.446, allocations: 187.9 kB / 0.4927 GB, free: 107.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003698/1.45, allocations: 1.519 MB / 0.4942 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/1.45, allocations: 1.156 kB / 0.4942 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002079/1.452, allocations: 1.108 MB / 0.4953 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/1.454, allocations: 293.5 kB / 0.4956 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006656/1.461, allocations: 2.235 MB / 0.4978 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/1.462, allocations: 1.018 MB / 0.4987 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/1.463, allocations: 19.31 kB / 0.4988 GB, free: 104.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/1.463, allocations: 0 / 0.4988 GB, free: 104.6 MB / 378.7 MB Notification: Performance of Templates: time 0.02301/1.486, allocations: 8.164 MB / 0.5067 GB, free: 103.4 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches