Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 176.1 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.3 MB / 241.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008723/0.0008724, allocations: 100.5 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006112/0.0006115, allocations: 11.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3228, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.4342, allocations: 83.14 MB / 485.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.4345, allocations: 71.95 kB / 485.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05853/0.493, allocations: 28.13 MB / 0.502 GB, free: 1.086 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.4931, allocations: 0 / 0.502 GB, free: 1.086 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.575e-05/0.4931, allocations: 15.94 kB / 0.502 GB, free: 1.07 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.281/0.7741, allocations: 1.129 MB / 0.5031 GB, free: 95.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.7742, allocations: 10.03 kB / 0.5032 GB, free: 95.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003607/0.7746, allocations: 83.97 kB / 0.5032 GB, free: 95.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008202/0.7754, allocations: 456.7 kB / 0.5037 GB, free: 95.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/0.7755, allocations: 20.69 kB / 0.5037 GB, free: 95.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-05/0.7756, allocations: 23.88 kB / 0.5037 GB, free: 95.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.7767, allocations: 0.5149 MB / 0.5042 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.7768, allocations: 1.312 kB / 0.5042 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.559e-05/0.7768, allocations: 17.69 kB / 0.5042 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.7768, allocations: 2.781 kB / 0.5042 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000691/0.7775, allocations: 366.9 kB / 0.5046 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.7792, allocations: 0.8543 MB / 0.5054 GB, free: 95.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009383/0.7801, allocations: 0.5095 MB / 0.5059 GB, free: 95.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009296/0.7811, allocations: 0.4901 MB / 0.5064 GB, free: 95.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.7811, allocations: 1.25 kB / 0.5064 GB, free: 95.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009995/0.7821, allocations: 0.6599 MB / 0.507 GB, free: 94.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.377e-06/0.7821, allocations: 0 / 0.507 GB, free: 94.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002455/0.7846, allocations: 1.557 MB / 0.5086 GB, free: 94.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.7847, allocations: 279.6 kB / 0.5088 GB, free: 94.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/0.7863, allocations: 1.176 MB / 0.51 GB, free: 94.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.091e-05/0.7864, allocations: 48.73 kB / 0.51 GB, free: 94.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.648e-05/0.7865, allocations: 141.4 kB / 0.5102 GB, free: 93.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.81e-05/0.7866, allocations: 77.06 kB / 0.5102 GB, free: 93.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.7866, allocations: 11.5 kB / 0.5102 GB, free: 93.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7867, allocations: 351 kB / 0.5106 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.7872, allocations: 343.6 kB / 0.5109 GB, free: 93.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.7877, allocations: 379 kB / 0.5113 GB, free: 93.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008624/0.7885, allocations: 0.9709 MB / 0.5122 GB, free: 93.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.7886, allocations: 0 / 0.5122 GB, free: 93.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00131/0.7899, allocations: 1.142 MB / 0.5133 GB, free: 92.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.79, allocations: 244.9 kB / 0.5136 GB, free: 92.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.79, allocations: 3.875 kB / 0.5136 GB, free: 92.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.79, allocations: 3.844 kB / 0.5136 GB, free: 92.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.879e-05/0.7901, allocations: 4.781 kB / 0.5136 GB, free: 92.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.7901, allocations: 7.875 kB / 0.5136 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.7904, allocations: 41.86 kB / 0.5136 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.7906, allocations: 144.5 kB / 0.5138 GB, free: 92.25 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.0007538/0.7913, allocations: 0.7739 MB / 0.5145 GB, free: 91.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.7915, allocations: 90.81 kB / 0.5146 GB, free: 91.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.7917, allocations: 148.5 kB / 0.5147 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.7917, allocations: 3.906 kB / 0.5148 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.7917, allocations: 7.219 kB / 0.5148 GB, free: 91.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.7917, allocations: 0 / 0.5148 GB, free: 91.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.7939, allocations: 1.978 MB / 0.5167 GB, free: 90.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.7939, allocations: 3.797 kB / 0.5167 GB, free: 90.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.208e-05/0.7939, allocations: 3.062 kB / 0.5167 GB, free: 90.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.7939, allocations: 0 / 0.5167 GB, free: 90.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/0.794, allocations: 41.78 kB / 0.5167 GB, free: 90.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.794, allocations: 0 / 0.5167 GB, free: 90.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.794, allocations: 3.562 kB / 0.5167 GB, free: 90.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.7955, allocations: 1.407 MB / 0.5181 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006556/0.7961, allocations: 0.5604 MB / 0.5187 GB, free: 89.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.7963, allocations: 68.55 kB / 0.5187 GB, free: 89.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.7965, allocations: 36.12 kB / 0.5188 GB, free: 89.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/0.7969, allocations: 241.1 kB / 0.519 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.797, allocations: 152.4 kB / 0.5191 GB, free: 89.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009432/0.798, allocations: 0.8643 MB / 0.52 GB, free: 89.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.798, allocations: 0 / 0.52 GB, free: 89.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004261/0.7984, allocations: 127.4 kB / 0.5201 GB, free: 89.07 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.0002124/0.7986, allocations: 182.2 kB / 0.5203 GB, free: 88.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.8, allocations: 1.519 MB / 0.5218 GB, free: 87.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.8, allocations: 0 / 0.5218 GB, free: 87.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007647/0.8007, allocations: 1.115 MB / 0.5228 GB, free: 86.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.802, allocations: 285.9 kB / 0.5231 GB, free: 86.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.8049, allocations: 2.16 MB / 0.5252 GB, free: 84.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006436/0.8055, allocations: 1.024 MB / 0.5262 GB, free: 83.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000202/0.8057, allocations: 44.03 kB / 0.5263 GB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.8058, allocations: 15.44 kB / 0.5263 GB, free: 83.47 MB / 378.7 MB Notification: Performance of SimCode: time 8.32e-07/0.8058, allocations: 0 / 0.5263 GB, free: 83.47 MB / 378.7 MB Notification: Performance of Templates: time 0.01467/0.8205, allocations: 13.64 MB / 0.5396 GB, free: 70.95 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches