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.0009127/0.0009127, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000776/0.000776, allocations: 95.59 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.131e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09791, allocations: 50.41 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3087/0.4067, allocations: 82.38 MB / 469.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.4069, allocations: 67.97 kB / 469.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0527/0.4596, allocations: 28.11 MB / 498 MB, free: 364 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4597, allocations: 0 / 498 MB, free: 364 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.4597, allocations: 8 kB / 498 MB, free: 356 kB / 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.0009114/0.4606, allocations: 1.004 MB / 499 MB, free: 15.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.4607, allocations: 12.03 kB / 499 MB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.4608, allocations: 90.95 kB / 499.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005293/0.4613, allocations: 423.5 kB / 499.5 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.4614, allocations: 15.98 kB / 499.5 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.925e-05/0.4615, allocations: 24 kB / 499.6 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004651/0.4619, allocations: 348.1 kB / 499.9 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/0.4626, allocations: 486.3 kB / 0.4887 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.4626, allocations: 0 / 0.4887 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.4627, allocations: 15.98 kB / 0.4887 GB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.4627, allocations: 4 kB / 0.4887 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.4638, allocations: 0.8248 MB / 0.4895 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.4643, allocations: 0.4906 MB / 0.49 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.4648, allocations: 488.6 kB / 0.4904 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.4648, allocations: 0 / 0.4904 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006828/0.4655, allocations: 0.6548 MB / 0.4911 GB, free: 11.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.393e-06/0.4655, allocations: 0 / 0.4911 GB, free: 11.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.00128/0.4668, allocations: 0.9134 MB / 0.492 GB, free: 10.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.467, allocations: 283.3 kB / 0.4922 GB, free: 10.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.4681, allocations: 0.984 MB / 0.4932 GB, free: 9.035 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.808e-05/0.4682, allocations: 45.69 kB / 0.4932 GB, free: 8.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.4683, allocations: 146 kB / 0.4934 GB, free: 8.836 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/0.4684, allocations: 71.17 kB / 0.4934 GB, free: 8.766 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.4685, allocations: 11.94 kB / 0.4935 GB, free: 8.754 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.4686, allocations: 350.8 kB / 0.4938 GB, free: 8.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.469, allocations: 336.2 kB / 0.4941 GB, free: 8.074 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.4694, allocations: 344.4 kB / 0.4944 GB, free: 7.738 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.4697, allocations: 249 kB / 0.4947 GB, free: 7.496 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4698, allocations: 0 / 0.4947 GB, free: 7.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00118/0.4709, allocations: 0.8487 MB / 0.4955 GB, free: 6.641 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.4711, allocations: 241.3 kB / 0.4957 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4711, allocations: 4 kB / 0.4957 GB, free: 6.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.4711, allocations: 0 / 0.4957 GB, free: 6.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.819e-05/0.4712, allocations: 7.938 kB / 0.4957 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.4712, allocations: 4 kB / 0.4957 GB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.4715, allocations: 47.83 kB / 0.4958 GB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.4716, allocations: 148.2 kB / 0.4959 GB, free: 6.156 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($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,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,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 () * 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.0003131/0.472, allocations: 402 kB / 0.4963 GB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.4721, allocations: 90.97 kB / 0.4964 GB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.4723, allocations: 160 kB / 0.4966 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4723, allocations: 0 / 0.4966 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4723, allocations: 3.953 kB / 0.4966 GB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.4723, allocations: 4 kB / 0.4966 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.4742, allocations: 1.615 MB / 0.4981 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.4743, allocations: 0 / 0.4981 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.298e-05/0.4743, allocations: 8 kB / 0.4982 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4743, allocations: 0 / 0.4982 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.734e-05/0.4744, allocations: 31.98 kB / 0.4982 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.4744, allocations: 4 kB / 0.4982 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4744, allocations: 3.953 kB / 0.4982 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.4757, allocations: 1.076 MB / 0.4992 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/0.4765, allocations: 0.5582 MB / 0.4998 GB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.4767, allocations: 59.97 kB / 0.4998 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.477, allocations: 31.88 kB / 0.4999 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003745/0.4773, allocations: 243.7 kB / 0.5001 GB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.4775, allocations: 155.9 kB / 0.5003 GB, free: 1.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001021/0.4785, allocations: 0.8265 MB / 0.5011 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4785, allocations: 0 / 0.5011 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004119/0.479, allocations: 116 kB / 0.5012 GB, free: 0.6562 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) * 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.0002359/0.4792, allocations: 185.6 kB / 0.5013 GB, free: 480 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.4807, allocations: 1.476 MB / 0.5028 GB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4807, allocations: 0 / 0.5028 GB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009742/0.4817, allocations: 1.097 MB / 0.5039 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.4829, allocations: 288.5 kB / 0.5041 GB, free: 13.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/0.4853, allocations: 1.707 MB / 0.5058 GB, free: 11.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007256/0.486, allocations: 1.035 MB / 0.5068 GB, free: 10.64 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.4861, allocations: 38.44 kB / 0.5069 GB, free: 10.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.4862, allocations: 19.44 kB / 0.5069 GB, free: 10.59 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4862, allocations: 0 / 0.5069 GB, free: 10.59 MB / 394.7 MB Notification: Performance of Templates: time 0.01541/0.5016, allocations: 13.07 MB / 0.5196 GB, free: 13.29 MB / 410.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