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.001338/0.001338, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 225.6 MB / 234.8 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008872/0.0008873, allocations: 105.3 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.358e-05/1.373e-05, allocations: 4 kB / 343.7 MB, free: 8.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 51.48 MB / 395.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.4547, allocations: 83.19 MB / 478.4 MB, free: 9.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.4549, allocations: 68.23 kB / 478.4 MB, free: 9.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04799/0.5029, allocations: 28.16 MB / 0.4947 GB, free: 3.266 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5029, allocations: 0.75 kB / 0.4947 GB, free: 3.266 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.503, allocations: 12 kB / 0.4947 GB, free: 3.254 MB / 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.001246/0.5042, allocations: 1.01 MB / 0.4957 GB, free: 2.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.5043, allocations: 12.03 kB / 0.4957 GB, free: 2.207 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.5045, allocations: 90.97 kB / 0.4958 GB, free: 2.117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005995/0.5051, allocations: 427 kB / 0.4962 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.5051, allocations: 12 kB / 0.4962 GB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.5052, allocations: 23.38 kB / 0.4962 GB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005122/0.5057, allocations: 343 kB / 0.4966 GB, free: 1.363 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006776/0.5064, allocations: 498.3 kB / 0.4971 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.5064, allocations: 0 / 0.4971 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.672e-05/0.5065, allocations: 11.98 kB / 0.4971 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.5065, allocations: 0 / 0.4971 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.5077, allocations: 0.8289 MB / 0.4979 GB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.5083, allocations: 498.4 kB / 0.4983 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.5088, allocations: 488.6 kB / 0.4988 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.5088, allocations: 4 kB / 0.4988 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007062/0.5096, allocations: 0.6509 MB / 0.4995 GB, free: 14.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.463e-06/0.5096, allocations: 0 / 0.4995 GB, free: 14.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001315/0.5109, allocations: 0.9132 MB / 0.5003 GB, free: 13.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.511, allocations: 275.3 kB / 0.5006 GB, free: 13.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.5123, allocations: 0.9957 MB / 0.5016 GB, free: 12.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.498e-05/0.5123, allocations: 37.69 kB / 0.5016 GB, free: 12.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.691e-05/0.5124, allocations: 142 kB / 0.5018 GB, free: 11.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.5125, allocations: 75.16 kB / 0.5018 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.5126, allocations: 12 kB / 0.5018 GB, free: 11.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.5127, allocations: 338.8 kB / 0.5022 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004285/0.5132, allocations: 344.1 kB / 0.5025 GB, free: 11.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.5136, allocations: 344.4 kB / 0.5028 GB, free: 10.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.5139, allocations: 245 kB / 0.503 GB, free: 10.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.5139, allocations: 4 kB / 0.5031 GB, free: 10.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001245/0.5152, allocations: 0.8528 MB / 0.5039 GB, free: 9.688 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.5154, allocations: 239.9 kB / 0.5041 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.5154, allocations: 0 / 0.5041 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.5154, allocations: 3.984 kB / 0.5041 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.547e-05/0.5155, allocations: 8 kB / 0.5041 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.5155, allocations: 0 / 0.5041 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.5158, allocations: 39.81 kB / 0.5042 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.516, allocations: 155.4 kB / 0.5043 GB, free: 9.211 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.0003609/0.5164, allocations: 410 kB / 0.5047 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.5165, allocations: 90.92 kB / 0.5048 GB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/0.5168, allocations: 152.1 kB / 0.5049 GB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.5168, allocations: 4 kB / 0.5049 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.5168, allocations: 0 / 0.5049 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.5168, allocations: 0 / 0.5049 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.5188, allocations: 1.619 MB / 0.5065 GB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5188, allocations: 3.953 kB / 0.5065 GB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.147e-05/0.5189, allocations: 3.984 kB / 0.5065 GB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5189, allocations: 3.984 kB / 0.5065 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.888e-05/0.519, allocations: 35.98 kB / 0.5066 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.519, allocations: 3.844 kB / 0.5066 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.519, allocations: 0 / 0.5066 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.5204, allocations: 1.08 MB / 0.5076 GB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007611/0.5211, allocations: 0.562 MB / 0.5082 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.5213, allocations: 59.95 kB / 0.5082 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.5216, allocations: 31.97 kB / 0.5083 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/0.522, allocations: 239.7 kB / 0.5085 GB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/0.5222, allocations: 156.2 kB / 0.5086 GB, free: 4.645 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001015/0.5232, allocations: 0.8148 MB / 0.5094 GB, free: 3.832 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5232, allocations: 8 kB / 0.5094 GB, free: 3.824 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004742/0.5237, allocations: 120 kB / 0.5096 GB, free: 3.707 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.0003045/0.524, allocations: 181.6 kB / 0.5097 GB, free: 3.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.5257, allocations: 1.48 MB / 0.5112 GB, free: 1.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5257, allocations: 0 / 0.5112 GB, free: 1.953 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009934/0.5267, allocations: 1.093 MB / 0.5122 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.5278, allocations: 290.5 kB / 0.5125 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.5303, allocations: 1.696 MB / 0.5142 GB, free: 14.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.531, allocations: 1.042 MB / 0.5152 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.5311, allocations: 41.75 kB / 0.5152 GB, free: 13.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.606e-05/0.5312, allocations: 19.44 kB / 0.5152 GB, free: 13.65 MB / 394.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5312, allocations: 0 / 0.5152 GB, free: 13.65 MB / 394.7 MB Notification: Performance of Templates: time 0.01654/0.5477, allocations: 13.06 MB / 0.528 GB, free: 412 kB / 394.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