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.0009837/0.0009838, allocations: 202.7 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 227.2 MB / 245 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009/0.0009, allocations: 109.8 kB / 297.3 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002368/0.0002368, allocations: 4 kB / 357.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.1929, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08435/0.2773, allocations: 83.92 MB / 493.3 MB, free: 6.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.2775, allocations: 71.95 kB / 493.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2062/0.4837, allocations: 28.19 MB / 0.5094 GB, free: 93.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4838, allocations: 0 / 0.5094 GB, free: 93.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.4838, allocations: 13.42 kB / 0.5094 GB, free: 93.3 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.00133/0.4851, allocations: 1.135 MB / 0.5105 GB, free: 92.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4852, allocations: 9.5 kB / 0.5105 GB, free: 92.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.4854, allocations: 87.5 kB / 0.5106 GB, free: 92.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007608/0.4862, allocations: 427.3 kB / 0.511 GB, free: 92.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.934e-05/0.4863, allocations: 19.75 kB / 0.511 GB, free: 92.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.848e-05/0.4864, allocations: 22.91 kB / 0.511 GB, free: 92.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008203/0.4872, allocations: 0.5105 MB / 0.5115 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.4872, allocations: 1 kB / 0.5115 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.637e-05/0.4873, allocations: 18.28 kB / 0.5115 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.4873, allocations: 4.922 kB / 0.5115 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004937/0.4878, allocations: 375.9 kB / 0.5119 GB, free: 92.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.4889, allocations: 0.8572 MB / 0.5127 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005272/0.4895, allocations: 0.5093 MB / 0.5132 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.4895, allocations: 15.67 kB / 0.5133 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000638/0.4901, allocations: 0.6524 MB / 0.5139 GB, free: 91.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.763e-06/0.4902, allocations: 0 / 0.5139 GB, free: 91.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001869/0.492, allocations: 1.792 MB / 0.5156 GB, free: 90.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.4921, allocations: 284.9 kB / 0.5159 GB, free: 90.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.4932, allocations: 1.033 MB / 0.5169 GB, free: 89.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.4933, allocations: 44.73 kB / 0.517 GB, free: 89.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.623e-05/0.4934, allocations: 153 kB / 0.5171 GB, free: 89.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.071e-05/0.4934, allocations: 84.95 kB / 0.5172 GB, free: 89.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.4935, allocations: 11.88 kB / 0.5172 GB, free: 89.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.135e-05/0.4936, allocations: 342.2 kB / 0.5175 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.494, allocations: 350.8 kB / 0.5179 GB, free: 89.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004049/0.4944, allocations: 376.2 kB / 0.5182 GB, free: 89.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.4948, allocations: 0.4972 MB / 0.5187 GB, free: 88.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4948, allocations: 0 / 0.5187 GB, free: 88.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001171/0.496, allocations: 1.128 MB / 0.5198 GB, free: 88.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.4961, allocations: 243.5 kB / 0.52 GB, free: 87.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.4961, allocations: 0 / 0.52 GB, free: 87.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.4961, allocations: 3.094 kB / 0.52 GB, free: 87.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.509e-05/0.4962, allocations: 7.953 kB / 0.5201 GB, free: 87.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.4962, allocations: 7.562 kB / 0.5201 GB, free: 87.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.4965, allocations: 40.25 kB / 0.5201 GB, free: 87.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.4966, allocations: 153.3 kB / 0.5202 GB, free: 87.93 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.0005812/0.4972, allocations: 0.7574 MB / 0.521 GB, free: 87.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.4973, allocations: 89.06 kB / 0.5211 GB, free: 87.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001755/0.4975, allocations: 152.6 kB / 0.5212 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4975, allocations: 7.562 kB / 0.5212 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4975, allocations: 7.953 kB / 0.5212 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.4975, allocations: 0 / 0.5212 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.4994, allocations: 1.959 MB / 0.5231 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4994, allocations: 0 / 0.5231 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.988e-06/0.4994, allocations: 3.844 kB / 0.5231 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.4994, allocations: 3.938 kB / 0.5232 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.4995, allocations: 35.25 kB / 0.5232 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.4995, allocations: 7.922 kB / 0.5232 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4995, allocations: 4 kB / 0.5232 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.5008, allocations: 1.399 MB / 0.5246 GB, free: 85.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006792/0.5015, allocations: 0.5504 MB / 0.5251 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.5017, allocations: 63.95 kB / 0.5252 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.5019, allocations: 42.78 kB / 0.5252 GB, free: 84.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.5022, allocations: 242.7 kB / 0.5254 GB, free: 84.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.5024, allocations: 156.2 kB / 0.5256 GB, free: 83.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000836/0.5032, allocations: 0.8694 MB / 0.5264 GB, free: 83.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5032, allocations: 0 / 0.5264 GB, free: 83.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004038/0.5036, allocations: 120 kB / 0.5265 GB, free: 82.99 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.0001868/0.5038, allocations: 184.1 kB / 0.5267 GB, free: 82.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.505, allocations: 1.53 MB / 0.5282 GB, free: 81.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5051, allocations: 0 / 0.5282 GB, free: 81.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007154/0.5058, allocations: 1.112 MB / 0.5293 GB, free: 80 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/0.5067, allocations: 283.4 kB / 0.5296 GB, free: 79.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.5089, allocations: 2.17 MB / 0.5317 GB, free: 77.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.5094, allocations: 1.038 MB / 0.5327 GB, free: 76.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.5096, allocations: 37.5 kB / 0.5327 GB, free: 76.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.41e-05/0.5096, allocations: 19.44 kB / 0.5328 GB, free: 76.41 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5096, allocations: 0 / 0.5328 GB, free: 76.41 MB / 378.7 MB Notification: Performance of Templates: time 0.01358/0.5232, allocations: 13.56 MB / 0.546 GB, free: 62.74 MB / 378.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