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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.407/1.407, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.001035/0.001035, allocations: 100 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003535, allocations: 11.94 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2713, allocations: 50.42 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3785, allocations: 83.1 MB / 484.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.3787, allocations: 78.05 kB / 484.8 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05444/0.4332, allocations: 28.12 MB / 0.5009 GB, free: 1.273 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.4332, allocations: 0 / 0.5009 GB, free: 1.273 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.118e-05/0.4333, allocations: 19.88 kB / 0.5009 GB, free: 1.254 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.001844/0.4351, allocations: 1.143 MB / 0.502 GB, free: 16 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.4352, allocations: 12.02 kB / 0.502 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2455/0.6807, allocations: 47.23 kB / 0.502 GB, free: 96.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003954/0.6812, allocations: 85.25 kB / 0.5021 GB, free: 96.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.6824, allocations: 419.7 kB / 0.5025 GB, free: 96.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.263e-05/0.6825, allocations: 20.36 kB / 0.5026 GB, free: 96.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.6827, allocations: 31.08 kB / 0.5026 GB, free: 96.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.6841, allocations: 0.5119 MB / 0.5031 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.6842, allocations: 0.6875 kB / 0.5031 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.802e-05/0.6843, allocations: 15.25 kB / 0.5031 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.6843, allocations: 2.25 kB / 0.5031 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008419/0.6851, allocations: 364.9 kB / 0.5034 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.6872, allocations: 0.8648 MB / 0.5043 GB, free: 95.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008028/0.6881, allocations: 0.5077 MB / 0.5048 GB, free: 95.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.6881, allocations: 4.094 kB / 0.5048 GB, free: 95.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009785/0.6891, allocations: 0.6634 MB / 0.5054 GB, free: 95.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.457e-06/0.6891, allocations: 0.5625 kB / 0.5054 GB, free: 95.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002655/0.6918, allocations: 1.788 MB / 0.5072 GB, free: 94.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.6919, allocations: 282.8 kB / 0.5075 GB, free: 94.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.6935, allocations: 1.037 MB / 0.5085 GB, free: 94.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.793e-05/0.6936, allocations: 43.08 kB / 0.5085 GB, free: 94.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.6937, allocations: 151.3 kB / 0.5087 GB, free: 94.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.6938, allocations: 79.52 kB / 0.5087 GB, free: 94.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.6939, allocations: 11.34 kB / 0.5087 GB, free: 94.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.694, allocations: 349.8 kB / 0.5091 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000505/0.6945, allocations: 345.3 kB / 0.5094 GB, free: 93.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.695, allocations: 381.2 kB / 0.5098 GB, free: 93.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/0.6954, allocations: 0.4925 MB / 0.5102 GB, free: 93.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.6954, allocations: 0 / 0.5102 GB, free: 93.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001304/0.6968, allocations: 1.13 MB / 0.5113 GB, free: 93.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.6969, allocations: 242.7 kB / 0.5116 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.6969, allocations: 0 / 0.5116 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.6969, allocations: 3.781 kB / 0.5116 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.872e-05/0.697, allocations: 7.562 kB / 0.5116 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.697, allocations: 6.938 kB / 0.5116 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.6973, allocations: 43.91 kB / 0.5116 GB, free: 93.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.6975, allocations: 153.7 kB / 0.5118 GB, free: 93.05 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.0007799/0.6983, allocations: 0.7666 MB / 0.5125 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.6984, allocations: 94.84 kB / 0.5126 GB, free: 92.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.6987, allocations: 146.5 kB / 0.5128 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.6987, allocations: 2.469 kB / 0.5128 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.6987, allocations: 3.781 kB / 0.5128 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.6987, allocations: 0 / 0.5128 GB, free: 92.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.701, allocations: 1.973 MB / 0.5147 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.701, allocations: 7.438 kB / 0.5147 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.063e-05/0.701, allocations: 0 / 0.5147 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.701, allocations: 0 / 0.5147 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-05/0.7011, allocations: 41.89 kB / 0.5147 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.7011, allocations: 0 / 0.5147 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.7011, allocations: 0 / 0.5147 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.7026, allocations: 1.393 MB / 0.5161 GB, free: 90.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/0.7035, allocations: 0.5586 MB / 0.5167 GB, free: 90.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.7037, allocations: 64.36 kB / 0.5167 GB, free: 90.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/0.704, allocations: 38.84 kB / 0.5168 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003909/0.7044, allocations: 238 kB / 0.517 GB, free: 90.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001621/0.7045, allocations: 156.5 kB / 0.5171 GB, free: 90.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001096/0.7056, allocations: 0.8666 MB / 0.518 GB, free: 89.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7056, allocations: 0 / 0.518 GB, free: 89.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000583/0.7062, allocations: 121.7 kB / 0.5181 GB, free: 89.88 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.001972/0.7082, allocations: 2.02 MB / 0.5201 GB, free: 88.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.7097, allocations: 1.525 MB / 0.5216 GB, free: 87.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.7097, allocations: 0 / 0.5216 GB, free: 87.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008314/0.7105, allocations: 1.127 MB / 0.5227 GB, free: 86.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009518/0.7115, allocations: 279.6 kB / 0.5229 GB, free: 85.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/0.7176, allocations: 4.901 MB / 0.5277 GB, free: 81.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006898/0.7183, allocations: 1.044 MB / 0.5287 GB, free: 80.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001819/0.7185, allocations: 39.98 kB / 0.5288 GB, free: 80.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.568e-05/0.7186, allocations: 78.05 kB / 0.5288 GB, free: 80.39 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.7186, allocations: 0 / 0.5288 GB, free: 80.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.7488, allocations: 16.43 MB / 0.5449 GB, free: 64.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.749, allocations: 180.6 kB / 0.5451 GB, free: 64.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.882, allocations: 0 / 0.5451 GB, free: 64.58 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat