Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 180.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008733/0.0008736, allocations: 92.58 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002834, allocations: 11.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2773, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3857, allocations: 83.11 MB / 484.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.386, allocations: 71.97 kB / 484.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05319/0.4392, allocations: 28.12 MB / 0.5008 GB, free: 1.285 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4392, allocations: 4 kB / 0.5008 GB, free: 1.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.383e-05/0.4392, allocations: 15.94 kB / 0.5008 GB, free: 1.266 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001241/0.4405, allocations: 1.132 MB / 0.5019 GB, free: 40 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4405, allocations: 12.03 kB / 0.5019 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2193/0.6599, allocations: 84.91 kB / 0.502 GB, free: 96.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.6609, allocations: 416.4 kB / 0.5024 GB, free: 96.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.691e-05/0.661, allocations: 19.62 kB / 0.5024 GB, free: 96.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.053e-05/0.6611, allocations: 24.05 kB / 0.5024 GB, free: 96.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.6623, allocations: 0.5164 MB / 0.5029 GB, free: 96.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.6623, allocations: 0.6562 kB / 0.5029 GB, free: 96.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.95e-05/0.6624, allocations: 14.42 kB / 0.5029 GB, free: 96.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.6624, allocations: 5.938 kB / 0.503 GB, free: 96.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006468/0.6631, allocations: 365.1 kB / 0.5033 GB, free: 96.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.6648, allocations: 0.8715 MB / 0.5042 GB, free: 95.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006663/0.6655, allocations: 0.5058 MB / 0.5046 GB, free: 95.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.6655, allocations: 1.5 kB / 0.5046 GB, free: 95.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009769/0.6665, allocations: 0.6635 MB / 0.5053 GB, free: 95.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.625e-06/0.6665, allocations: 1.438 kB / 0.5053 GB, free: 95.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002461/0.6689, allocations: 1.79 MB / 0.507 GB, free: 95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.6691, allocations: 276.5 kB / 0.5073 GB, free: 94.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.6704, allocations: 1.04 MB / 0.5083 GB, free: 94.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.656e-05/0.6705, allocations: 43.14 kB / 0.5084 GB, free: 94.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.6706, allocations: 149.2 kB / 0.5085 GB, free: 94.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.139e-05/0.6707, allocations: 74.48 kB / 0.5086 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/0.6707, allocations: 14.16 kB / 0.5086 GB, free: 94.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.6708, allocations: 351.2 kB / 0.5089 GB, free: 93.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.6713, allocations: 349.9 kB / 0.5093 GB, free: 93.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004465/0.6717, allocations: 385.2 kB / 0.5096 GB, free: 93.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.6722, allocations: 494.5 kB / 0.5101 GB, free: 93.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.6722, allocations: 0 / 0.5101 GB, free: 93.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001254/0.6734, allocations: 1.13 MB / 0.5112 GB, free: 93.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.6736, allocations: 242.8 kB / 0.5114 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.6736, allocations: 6.75 kB / 0.5114 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.6736, allocations: 3.844 kB / 0.5114 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.039e-05/0.6737, allocations: 2.219 kB / 0.5114 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.6737, allocations: 3.906 kB / 0.5115 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.674, allocations: 45.39 kB / 0.5115 GB, free: 93.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.6742, allocations: 151.8 kB / 0.5116 GB, free: 93.18 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.0007514/0.675, allocations: 0.7665 MB / 0.5124 GB, free: 92.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.6751, allocations: 93.81 kB / 0.5125 GB, free: 92.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.6753, allocations: 148.1 kB / 0.5126 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.6753, allocations: 3.781 kB / 0.5126 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.6753, allocations: 2.375 kB / 0.5126 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6753, allocations: 3.844 kB / 0.5126 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.6774, allocations: 1.965 MB / 0.5145 GB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.6774, allocations: 3.625 kB / 0.5146 GB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.236e-05/0.6774, allocations: 11.73 kB / 0.5146 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.6774, allocations: 0 / 0.5146 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.149e-05/0.6775, allocations: 39.5 kB / 0.5146 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.6775, allocations: 0 / 0.5146 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6775, allocations: 0 / 0.5146 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.679, allocations: 1.389 MB / 0.516 GB, free: 90.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008119/0.6798, allocations: 0.5658 MB / 0.5165 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.68, allocations: 62.5 kB / 0.5166 GB, free: 90.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002761/0.6803, allocations: 35.23 kB / 0.5166 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.6806, allocations: 235 kB / 0.5168 GB, free: 90.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.6807, allocations: 159.8 kB / 0.517 GB, free: 90.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008796/0.6816, allocations: 0.8626 MB / 0.5178 GB, free: 90.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6816, allocations: 2.719 kB / 0.5178 GB, free: 90.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004146/0.682, allocations: 119.1 kB / 0.5179 GB, free: 90.02 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.0002009/0.6822, allocations: 197.4 kB / 0.5181 GB, free: 89.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.6835, allocations: 1.524 MB / 0.5196 GB, free: 88.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6835, allocations: 0 / 0.5196 GB, free: 88.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007261/0.6842, allocations: 1.12 MB / 0.5207 GB, free: 88.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008869/0.6851, allocations: 284.1 kB / 0.521 GB, free: 87.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.6874, allocations: 2.151 MB / 0.5231 GB, free: 85.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/0.6879, allocations: 1.039 MB / 0.5241 GB, free: 84.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.688, allocations: 37.08 kB / 0.5241 GB, free: 84.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.427e-05/0.688, allocations: 19.44 kB / 0.5241 GB, free: 84.88 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.688, allocations: 3.844 kB / 0.5242 GB, free: 84.88 MB / 378.7 MB Notification: Performance of Templates: time 0.01345/0.7015, allocations: 13.56 MB / 0.5374 GB, free: 72.57 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches