Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009737/0.0009736, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 90.36 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.829e-05/1.842e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0802/0.08023, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.316/0.3962, allocations: 81.74 MB / 444.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.3965, allocations: 70.59 kB / 445 MB, free: 13.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06793/0.4644, allocations: 37.46 MB / 482.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4645, allocations: 0 / 482.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.285e-05/0.4645, allocations: 15.94 kB / 482.5 MB, free: 14.3 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.001073/0.4656, allocations: 1.004 MB / 483.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.4656, allocations: 12.03 kB / 483.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.4658, allocations: 90.97 kB / 483.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.4663, allocations: 419.6 kB / 484 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.665e-05/0.4664, allocations: 16 kB / 484 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.232e-05/0.4665, allocations: 27.98 kB / 484 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004824/0.467, allocations: 340.1 kB / 484.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006623/0.4676, allocations: 494.2 kB / 484.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.4676, allocations: 3.938 kB / 484.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.756e-05/0.4677, allocations: 15.98 kB / 484.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.4677, allocations: 0 / 484.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.4689, allocations: 0.8172 MB / 485.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005415/0.4694, allocations: 0.4984 MB / 486.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005032/0.4699, allocations: 484.7 kB / 486.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.4699, allocations: 4 kB / 486.6 MB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007066/0.4707, allocations: 0.6509 MB / 487.3 MB, free: 9.234 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.493e-06/0.4707, allocations: 0 / 487.3 MB, free: 9.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001305/0.472, allocations: 0.9094 MB / 488.2 MB, free: 8.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.4722, allocations: 279.3 kB / 488.5 MB, free: 7.992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.4734, allocations: 0.9879 MB / 489.5 MB, free: 7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.94e-05/0.4734, allocations: 41.7 kB / 489.5 MB, free: 6.953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.4736, allocations: 157.9 kB / 489.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.535e-05/0.4737, allocations: 71.17 kB / 489.7 MB, free: 6.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-05/0.4737, allocations: 8 kB / 489.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4739, allocations: 350.7 kB / 490.1 MB, free: 6.363 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/0.4743, allocations: 336.2 kB / 490.4 MB, free: 6.035 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.4747, allocations: 340.5 kB / 490.7 MB, free: 5.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.475, allocations: 245.3 kB / 491 MB, free: 5.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.475, allocations: 0 / 491 MB, free: 5.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001179/0.4762, allocations: 0.8526 MB / 491.8 MB, free: 4.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.4764, allocations: 247.8 kB / 492.1 MB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.4764, allocations: 0 / 492.1 MB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4764, allocations: 3.984 kB / 492.1 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.002e-05/0.4765, allocations: 11.92 kB / 492.1 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.4765, allocations: 0 / 492.1 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.4768, allocations: 31.89 kB / 492.1 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/0.477, allocations: 152.2 kB / 492.3 MB, free: 4.125 MB / 362.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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.000349/0.4773, allocations: 414 kB / 492.7 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00131/0.4786, allocations: 0.9727 MB / 493.6 MB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.4787, allocations: 91.02 kB / 493.7 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000242/0.479, allocations: 148.1 kB / 493.9 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.479, allocations: 0 / 493.9 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.479, allocations: 0 / 493.9 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.479, allocations: 4 kB / 493.9 MB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.4811, allocations: 1.63 MB / 495.5 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.4811, allocations: 0 / 495.5 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.452e-05/0.4811, allocations: 4 kB / 495.5 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.4811, allocations: 7.969 kB / 495.5 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.4812, allocations: 35.98 kB / 495.6 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.4812, allocations: 0 / 495.6 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4812, allocations: 0 / 495.6 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.4826, allocations: 1.076 MB / 496.6 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007974/0.4835, allocations: 0.562 MB / 497.2 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.4836, allocations: 63.95 kB / 497.3 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002773/0.4839, allocations: 27.97 kB / 497.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/0.4843, allocations: 239.7 kB / 497.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001664/0.4845, allocations: 159.9 kB / 497.7 MB, free: 14.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001021/0.4855, allocations: 0.8148 MB / 498.5 MB, free: 13.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4855, allocations: 0 / 498.5 MB, free: 13.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004142/0.486, allocations: 120 kB / 498.6 MB, free: 13.64 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,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.00179/0.4878, allocations: 1.717 MB / 0.4886 GB, free: 11.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.4892, allocations: 1.48 MB / 0.49 GB, free: 10.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4892, allocations: 4 kB / 0.49 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009028/0.4901, allocations: 1.093 MB / 0.4911 GB, free: 9.145 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4913, allocations: 279.8 kB / 0.4914 GB, free: 8.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.494, allocations: 1.857 MB / 0.4932 GB, free: 6.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007036/0.4948, allocations: 1.042 MB / 0.4942 GB, free: 5.902 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.4949, allocations: 37.81 kB / 0.4942 GB, free: 5.867 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.857e-05/0.495, allocations: 75.42 kB / 0.4943 GB, free: 5.793 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.495, allocations: 0 / 0.4943 GB, free: 5.793 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.5299, allocations: 15.72 MB / 0.5097 GB, free: 5.801 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.5301, allocations: 142.2 kB / 0.5098 GB, free: 5.598 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.067/2.597, allocations: 0 / 0.5098 GB, free: 5.598 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat