Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001466/0.001467, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008634/0.0008635, allocations: 88.66 kB / 292.1 MB, free: 6.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.447e-05/2.449e-05, allocations: 4 kB / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.0942, allocations: 51.49 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.383, allocations: 83.85 MB / 485.9 MB, free: 5.547 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/0.3832, allocations: 67.03 kB / 485.9 MB, free: 5.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05104/0.4343, allocations: 28.35 MB / 0.5022 GB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4343, allocations: 1.781 kB / 0.5022 GB, free: 11.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.4343, allocations: 12 kB / 0.5022 GB, free: 11.23 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.0009199/0.4353, allocations: 1.018 MB / 0.5032 GB, free: 10.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.4353, allocations: 8.031 kB / 0.5032 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.4355, allocations: 90.97 kB / 0.5033 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.436, allocations: 419.6 kB / 0.5037 GB, free: 9.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.4361, allocations: 19.98 kB / 0.5038 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.491e-05/0.4362, allocations: 28 kB / 0.5038 GB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007381/0.4369, allocations: 0.5022 MB / 0.5043 GB, free: 9.031 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.4369, allocations: 0 / 0.5043 GB, free: 9.031 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.36e-05/0.437, allocations: 12 kB / 0.5043 GB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.437, allocations: 4 kB / 0.5043 GB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/0.4375, allocations: 360.1 kB / 0.5046 GB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.4387, allocations: 0.86 MB / 0.5055 GB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006041/0.4393, allocations: 0.4982 MB / 0.506 GB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005595/0.4399, allocations: 0.5044 MB / 0.5064 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.467e-06/0.4399, allocations: 0 / 0.5064 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007361/0.4406, allocations: 0.6592 MB / 0.5071 GB, free: 6.043 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.553e-06/0.4406, allocations: 0 / 0.5071 GB, free: 6.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001546/0.4422, allocations: 1.173 MB / 0.5082 GB, free: 4.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/0.4424, allocations: 279.3 kB / 0.5085 GB, free: 4.492 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.4437, allocations: 1.035 MB / 0.5095 GB, free: 3.445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.826e-05/0.4438, allocations: 41.7 kB / 0.5096 GB, free: 3.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.859e-05/0.4439, allocations: 146 kB / 0.5097 GB, free: 3.254 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.943e-05/0.444, allocations: 75.16 kB / 0.5098 GB, free: 3.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.482e-05/0.444, allocations: 12 kB / 0.5098 GB, free: 3.168 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4441, allocations: 346.8 kB / 0.5101 GB, free: 2.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004718/0.4446, allocations: 352.1 kB / 0.5104 GB, free: 2.477 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.4451, allocations: 348.5 kB / 0.5108 GB, free: 2.137 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.4456, allocations: 489.2 kB / 0.5112 GB, free: 1.617 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4456, allocations: 3.984 kB / 0.5112 GB, free: 1.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001376/0.4469, allocations: 1.125 MB / 0.5123 GB, free: 448 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.4471, allocations: 243.9 kB / 0.5126 GB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4471, allocations: 8 kB / 0.5126 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.4471, allocations: 3.984 kB / 0.5126 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.403e-05/0.4472, allocations: 0 / 0.5126 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.4472, allocations: 6.531 kB / 0.5126 GB, free: 144 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.4475, allocations: 43.75 kB / 0.5126 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/0.4477, allocations: 147.5 kB / 0.5128 GB, free: 15.95 MB / 394.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.0003094/0.448, allocations: 414 kB / 0.5132 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.4481, allocations: 86.97 kB / 0.5133 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.4483, allocations: 151.8 kB / 0.5134 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.4483, allocations: 4 kB / 0.5134 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4483, allocations: 4 kB / 0.5134 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.4484, allocations: 0 / 0.5134 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.4506, allocations: 1.954 MB / 0.5153 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.4506, allocations: 7.984 kB / 0.5153 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.145e-05/0.4507, allocations: 4 kB / 0.5153 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4507, allocations: 0 / 0.5153 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.075e-05/0.4507, allocations: 35.98 kB / 0.5154 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.4508, allocations: 0 / 0.5154 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4508, allocations: 0 / 0.5154 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.4524, allocations: 1.381 MB / 0.5167 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008108/0.4532, allocations: 0.5581 MB / 0.5173 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/0.4534, allocations: 63.97 kB / 0.5173 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.4537, allocations: 35.97 kB / 0.5174 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/0.4541, allocations: 235.7 kB / 0.5176 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/0.4542, allocations: 156.2 kB / 0.5177 GB, free: 10.65 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001064/0.4553, allocations: 0.8578 MB / 0.5186 GB, free: 9.801 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4553, allocations: 0 / 0.5186 GB, free: 9.801 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004213/0.4557, allocations: 124 kB / 0.5187 GB, free: 9.68 MB / 394.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.0002233/0.456, allocations: 192.4 kB / 0.5189 GB, free: 9.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.4575, allocations: 1.509 MB / 0.5203 GB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4575, allocations: 3.75 kB / 0.5203 GB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009359/0.4584, allocations: 1.113 MB / 0.5214 GB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.4596, allocations: 283.8 kB / 0.5217 GB, free: 6.418 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.4619, allocations: 1.718 MB / 0.5234 GB, free: 4.672 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000736/0.4627, allocations: 1.042 MB / 0.5244 GB, free: 3.594 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.4628, allocations: 40.03 kB / 0.5244 GB, free: 3.555 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.4628, allocations: 15.44 kB / 0.5244 GB, free: 3.543 MB / 394.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4628, allocations: 0 / 0.5244 GB, free: 3.543 MB / 394.7 MB Notification: Performance of Templates: time 0.01742/0.4803, allocations: 13.53 MB / 0.5377 GB, free: 5.848 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches