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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008438/0.0008438, allocations: 106.1 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002153, allocations: 8 kB / 358 MB, free: 9.246 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1787, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08603/0.2647, allocations: 83.92 MB / 493.4 MB, free: 6.672 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001817/0.2649, allocations: 71.97 kB / 493.5 MB, free: 6.602 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1976/0.4625, allocations: 28.19 MB / 0.5094 GB, free: 93.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4626, allocations: 3.656 kB / 0.5095 GB, free: 93.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.376e-05/0.4626, allocations: 13.14 kB / 0.5095 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001237/0.4638, allocations: 1.129 MB / 0.5106 GB, free: 92.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4639, allocations: 9.375 kB / 0.5106 GB, free: 92.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.464, allocations: 63.31 kB / 0.5106 GB, free: 92.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002026/0.4642, allocations: 87.53 kB / 0.5107 GB, free: 92.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007063/0.4649, allocations: 422.4 kB / 0.5111 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.465, allocations: 23.55 kB / 0.5111 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-05/0.4651, allocations: 23.94 kB / 0.5112 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007873/0.4659, allocations: 0.5122 MB / 0.5117 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.4659, allocations: 1.375 kB / 0.5117 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.273e-05/0.466, allocations: 17.23 kB / 0.5117 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.466, allocations: 4.984 kB / 0.5117 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004781/0.4665, allocations: 366.1 kB / 0.512 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.4678, allocations: 0.8621 MB / 0.5129 GB, free: 91.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000549/0.4684, allocations: 0.5145 MB / 0.5134 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.4684, allocations: 0 / 0.5134 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006497/0.469, allocations: 0.6576 MB / 0.514 GB, free: 91.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.844e-06/0.4691, allocations: 0 / 0.514 GB, free: 91.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001901/0.471, allocations: 1.797 MB / 0.5158 GB, free: 90.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/0.4711, allocations: 281.1 kB / 0.516 GB, free: 90.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.4724, allocations: 1.032 MB / 0.5171 GB, free: 89.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.59e-05/0.4725, allocations: 39.11 kB / 0.5171 GB, free: 89.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.016e-05/0.4725, allocations: 156.2 kB / 0.5172 GB, free: 89.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.605e-05/0.4726, allocations: 85.27 kB / 0.5173 GB, free: 89.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/0.4727, allocations: 13.12 kB / 0.5173 GB, free: 89.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.301e-05/0.4728, allocations: 340.6 kB / 0.5177 GB, free: 89.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000461/0.4732, allocations: 351.7 kB / 0.518 GB, free: 89.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004324/0.4737, allocations: 371.5 kB / 0.5184 GB, free: 88.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.4741, allocations: 0.4965 MB / 0.5188 GB, free: 88.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4741, allocations: 0 / 0.5188 GB, free: 88.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001236/0.4753, allocations: 1.133 MB / 0.5199 GB, free: 88.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/0.4755, allocations: 241 kB / 0.5202 GB, free: 87.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4755, allocations: 7.922 kB / 0.5202 GB, free: 87.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.4755, allocations: 3.953 kB / 0.5202 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.639e-05/0.4755, allocations: 3.938 kB / 0.5202 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.4756, allocations: 0 / 0.5202 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003881/0.4759, allocations: 49.03 kB / 0.5202 GB, free: 87.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.4761, allocations: 147.2 kB / 0.5204 GB, free: 87.81 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.0008042/0.4769, allocations: 0.769 MB / 0.5211 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.4771, allocations: 88.66 kB / 0.5212 GB, free: 87.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002527/0.4773, allocations: 153.5 kB / 0.5214 GB, free: 87.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4773, allocations: 0 / 0.5214 GB, free: 87.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4774, allocations: 3.953 kB / 0.5214 GB, free: 87.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.4774, allocations: 4 kB / 0.5214 GB, free: 87.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.4795, allocations: 1.961 MB / 0.5233 GB, free: 86.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4795, allocations: 3.531 kB / 0.5233 GB, free: 86.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.16e-05/0.4795, allocations: 3.234 kB / 0.5233 GB, free: 86.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4795, allocations: 0 / 0.5233 GB, free: 86.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.4796, allocations: 42.78 kB / 0.5233 GB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4796, allocations: 3.469 kB / 0.5233 GB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4796, allocations: 7.234 kB / 0.5233 GB, free: 86.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.481, allocations: 1.389 MB / 0.5247 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000775/0.4818, allocations: 0.558 MB / 0.5252 GB, free: 84.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.482, allocations: 59.72 kB / 0.5253 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.4823, allocations: 43.83 kB / 0.5253 GB, free: 84.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003076/0.4826, allocations: 239.8 kB / 0.5256 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.4828, allocations: 164.2 kB / 0.5257 GB, free: 83.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001018/0.4838, allocations: 0.8645 MB / 0.5266 GB, free: 83.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4838, allocations: 0 / 0.5266 GB, free: 83.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005402/0.4843, allocations: 124 kB / 0.5267 GB, free: 82.94 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.001716/0.4861, allocations: 2.015 MB / 0.5287 GB, free: 80.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.4874, allocations: 1.523 MB / 0.5301 GB, free: 79.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4874, allocations: 0 / 0.5301 GB, free: 79.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007619/0.4882, allocations: 1.117 MB / 0.5312 GB, free: 78.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009594/0.4891, allocations: 283.1 kB / 0.5315 GB, free: 77.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005444/0.4946, allocations: 4.904 MB / 0.5363 GB, free: 72.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.4951, allocations: 1.038 MB / 0.5373 GB, free: 71.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.4953, allocations: 37.5 kB / 0.5373 GB, free: 71.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.425e-05/0.4954, allocations: 83.41 kB / 0.5374 GB, free: 71.64 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4954, allocations: 0 / 0.5374 GB, free: 71.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.5188, allocations: 16.44 MB / 0.5535 GB, free: 55.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001285/0.519, allocations: 170.8 kB / 0.5536 GB, free: 54.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.541, allocations: 2.5 kB / 0.5536 GB, free: 54.92 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat