Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001458/0.001458, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.452/1.452, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008556/0.0008556, allocations: 86.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.23e-05/2.232e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07882/0.07885, allocations: 47.57 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2848/0.3637, allocations: 82.12 MB / 452.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.3639, allocations: 65.72 kB / 452.2 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05355/0.4175, allocations: 27.99 MB / 480.2 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4175, allocations: 0 / 480.2 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.637e-05/0.4176, allocations: 12 kB / 480.2 MB, free: 0.7148 MB / 346.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.001027/0.4186, allocations: 1.008 MB / 481.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.4187, allocations: 8.031 kB / 481.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.4188, allocations: 90.97 kB / 481.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005867/0.4194, allocations: 419.5 kB / 481.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.891e-05/0.4195, allocations: 27.98 kB / 481.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.688e-05/0.4196, allocations: 24 kB / 481.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/0.4203, allocations: 0.5022 MB / 482.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.4204, allocations: 0 / 482.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.389e-05/0.4204, allocations: 12 kB / 482.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.4204, allocations: 4 kB / 482.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000506/0.4209, allocations: 360.1 kB / 482.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.4223, allocations: 0.8637 MB / 483.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006124/0.4229, allocations: 0.5029 MB / 484 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005939/0.4235, allocations: 0.4889 MB / 484.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.4235, allocations: 0 / 484.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007824/0.4243, allocations: 0.647 MB / 485.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.363e-06/0.4243, allocations: 0 / 485.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001629/0.426, allocations: 1.186 MB / 486.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/0.4261, allocations: 275.3 kB / 486.6 MB, free: 9.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.4274, allocations: 1.027 MB / 487.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-05/0.4275, allocations: 41.7 kB / 487.7 MB, free: 8.891 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.222e-05/0.4276, allocations: 154 kB / 487.8 MB, free: 8.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.4277, allocations: 86.97 kB / 487.9 MB, free: 8.652 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.189e-05/0.4278, allocations: 12 kB / 487.9 MB, free: 8.641 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4279, allocations: 342.8 kB / 488.2 MB, free: 8.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004913/0.4284, allocations: 348.2 kB / 488.6 MB, free: 7.957 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004892/0.4289, allocations: 356.4 kB / 488.9 MB, free: 7.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.4294, allocations: 496.9 kB / 489.4 MB, free: 7.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.4295, allocations: 0 / 489.4 MB, free: 7.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001527/0.431, allocations: 1.126 MB / 490.5 MB, free: 5.906 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.4312, allocations: 247.8 kB / 490.8 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.4312, allocations: 0 / 490.8 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.4312, allocations: 4 kB / 490.8 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.035e-05/0.4313, allocations: 3.938 kB / 490.8 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.4313, allocations: 0 / 490.8 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.4316, allocations: 43.88 kB / 490.8 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.4318, allocations: 148.2 kB / 491 MB, free: 5.426 MB / 362.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.0003489/0.4322, allocations: 414.9 kB / 491.4 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.4323, allocations: 86.97 kB / 491.5 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/0.4326, allocations: 151.8 kB / 491.6 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.4326, allocations: 7.938 kB / 491.6 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4326, allocations: 0 / 491.6 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.4326, allocations: 0 / 491.6 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.4351, allocations: 1.954 MB / 493.6 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4351, allocations: 4 kB / 493.6 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.433e-05/0.4351, allocations: 3.938 kB / 493.6 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.4351, allocations: 3.938 kB / 493.6 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.141e-05/0.4352, allocations: 35.98 kB / 493.6 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4352, allocations: 0 / 493.6 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4352, allocations: 0 / 493.6 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.4369, allocations: 1.377 MB / 495 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008395/0.4377, allocations: 0.5543 MB / 495.6 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.4379, allocations: 71.95 kB / 495.6 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000296/0.4382, allocations: 31.89 kB / 495.7 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004069/0.4387, allocations: 239.7 kB / 495.9 MB, free: 280 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000176/0.4388, allocations: 159.9 kB / 496 MB, free: 120 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.44, allocations: 0.85 MB / 496.9 MB, free: 15.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.44, allocations: 0 / 496.9 MB, free: 15.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004596/0.4405, allocations: 124 kB / 497 MB, free: 15.15 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.0002738/0.4407, allocations: 193.3 kB / 497.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.4424, allocations: 1.511 MB / 498.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4424, allocations: 0 / 498.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.4435, allocations: 1.109 MB / 499.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.4446, allocations: 296.5 kB / 0.4884 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.4472, allocations: 1.718 MB / 0.4901 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007095/0.4479, allocations: 1.046 MB / 0.4911 GB, free: 9.051 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.448, allocations: 41.5 kB / 0.4911 GB, free: 9.008 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.567e-05/0.4481, allocations: 19.38 kB / 0.4912 GB, free: 8.988 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4481, allocations: 0 / 0.4912 GB, free: 8.988 MB / 378.7 MB Notification: Performance of Templates: time 0.01646/0.4645, allocations: 13.54 MB / 0.5044 GB, free: 11.17 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches