Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 200.3 kB / 18.1 MB, free: 3.602 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009417/0.0009417, allocations: 115.5 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002428, allocations: 4 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2379, allocations: 51.3 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09966/0.3376, allocations: 84.1 MB / 493.5 MB, free: 7.441 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.3379, allocations: 68.59 kB / 493.5 MB, free: 7.375 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2523/0.5902, allocations: 31.47 MB / 0.5127 GB, free: 93.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5902, allocations: 4 kB / 0.5127 GB, free: 93.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.5903, allocations: 15.75 kB / 0.5127 GB, free: 93.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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001278/0.5915, allocations: 1.49 MB / 0.5142 GB, free: 92.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.5916, allocations: 7.906 kB / 0.5142 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.5918, allocations: 134 kB / 0.5143 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.5923, allocations: 0.5659 MB / 0.5149 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.5924, allocations: 22.34 kB / 0.5149 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.398e-05/0.5924, allocations: 26.28 kB / 0.5149 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008015/0.5932, allocations: 0.631 MB / 0.5155 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.5932, allocations: 192 / 0.5155 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.677e-05/0.5933, allocations: 21.03 kB / 0.5156 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.5933, allocations: 3.875 kB / 0.5156 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00055/0.5939, allocations: 461.5 kB / 0.516 GB, free: 91.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.5952, allocations: 1.084 MB / 0.5171 GB, free: 91.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006551/0.5958, allocations: 0.6897 MB / 0.5177 GB, free: 90.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006116/0.5965, allocations: 0.674 MB / 0.5184 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.5965, allocations: 3.531 kB / 0.5184 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007352/0.5972, allocations: 0.7648 MB / 0.5191 GB, free: 90.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.853e-06/0.5972, allocations: 0 / 0.5191 GB, free: 90.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.00212/0.5994, allocations: 1.881 MB / 0.521 GB, free: 89.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.5995, allocations: 333 kB / 0.5213 GB, free: 89.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001997/0.6015, allocations: 1.828 MB / 0.5231 GB, free: 87.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.039e-05/0.6016, allocations: 47.61 kB / 0.5231 GB, free: 87.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.6018, allocations: 235.2 kB / 0.5233 GB, free: 87.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.6019, allocations: 84.89 kB / 0.5234 GB, free: 87.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.6019, allocations: 11.19 kB / 0.5234 GB, free: 87.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.6021, allocations: 384.7 kB / 0.5238 GB, free: 87.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005189/0.6026, allocations: 443.4 kB / 0.5242 GB, free: 87.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000501/0.6031, allocations: 481.4 kB / 0.5247 GB, free: 86.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.604, allocations: 1.163 MB / 0.5258 GB, free: 85.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.604, allocations: 0 / 0.5258 GB, free: 85.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001498/0.6055, allocations: 1.365 MB / 0.5272 GB, free: 84.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.6057, allocations: 293.5 kB / 0.5274 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.6057, allocations: 0 / 0.5274 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.6057, allocations: 3.938 kB / 0.5274 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.355e-05/0.6058, allocations: 11.84 kB / 0.5275 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.6058, allocations: 7.938 kB / 0.5275 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.6062, allocations: 39.88 kB / 0.5275 GB, free: 83.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.6063, allocations: 163.7 kB / 0.5277 GB, free: 83.62 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: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.001154/0.6075, allocations: 0.9929 MB / 0.5286 GB, free: 82.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.6077, allocations: 130.5 kB / 0.5287 GB, free: 82.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003574/0.608, allocations: 255.5 kB / 0.529 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.608, allocations: 0 / 0.529 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.608, allocations: 0 / 0.529 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.6081, allocations: 7.984 kB / 0.529 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.6106, allocations: 2.42 MB / 0.5314 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.6106, allocations: 3.938 kB / 0.5314 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.513e-05/0.6106, allocations: 3.984 kB / 0.5314 GB, free: 79.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.6106, allocations: 3.688 kB / 0.5314 GB, free: 79.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.872e-05/0.6107, allocations: 38.17 kB / 0.5314 GB, free: 79.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.6107, allocations: 4 kB / 0.5314 GB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6107, allocations: 3.984 kB / 0.5314 GB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.6123, allocations: 1.641 MB / 0.533 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008454/0.6132, allocations: 0.6785 MB / 0.5337 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.6133, allocations: 59.97 kB / 0.5337 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.6137, allocations: 39.97 kB / 0.5338 GB, free: 77.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/0.6141, allocations: 355.6 kB / 0.5341 GB, free: 76.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.6142, allocations: 159.1 kB / 0.5343 GB, free: 76.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001487/0.6157, allocations: 1.333 MB / 0.5356 GB, free: 75.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6157, allocations: 0 / 0.5356 GB, free: 75.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004857/0.6162, allocations: 159.2 kB / 0.5357 GB, free: 75.13 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0002215/0.6165, allocations: 188.1 kB / 0.5359 GB, free: 74.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.618, allocations: 1.917 MB / 0.5378 GB, free: 72.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.618, allocations: 128 / 0.5378 GB, free: 72.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008926/0.6189, allocations: 1.396 MB / 0.5391 GB, free: 71.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.62, allocations: 326 kB / 0.5394 GB, free: 71.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.6248, allocations: 3.085 MB / 0.5425 GB, free: 68.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/0.6264, allocations: 1.197 MB / 0.5436 GB, free: 66.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005909/0.627, allocations: 187 kB / 0.5438 GB, free: 66.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.784e-05/0.6271, allocations: 31.42 kB / 0.5438 GB, free: 66.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.405e-06/0.6271, allocations: 0 / 0.5438 GB, free: 66.57 MB / 378.7 MB Notification: Performance of Templates: time 0.03545/0.6626, allocations: 16.73 MB / 0.5602 GB, free: 49.64 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches