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.0017/0.001701, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008215/0.0008216, allocations: 95.84 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.806e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09754, allocations: 51.48 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3835/0.4811, allocations: 83.19 MB / 478.4 MB, free: 9.391 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.4815, allocations: 69.19 kB / 478.5 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05122/0.5327, allocations: 28.17 MB / 0.4948 GB, free: 2.918 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5328, allocations: 0 / 0.4948 GB, free: 2.918 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.5328, allocations: 8 kB / 0.4948 GB, free: 2.91 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.001168/0.534, allocations: 1.017 MB / 0.4958 GB, free: 1.867 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.534, allocations: 16.02 kB / 0.4958 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.5342, allocations: 86.97 kB / 0.4959 GB, free: 1.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.5348, allocations: 423.6 kB / 0.4963 GB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.5348, allocations: 15.44 kB / 0.4963 GB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.5349, allocations: 16 kB / 0.4963 GB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004797/0.5354, allocations: 349.8 kB / 0.4967 GB, free: 1.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007074/0.5361, allocations: 493.5 kB / 0.4971 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.5361, allocations: 0 / 0.4971 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-05/0.5362, allocations: 16.73 kB / 0.4972 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.5362, allocations: 0 / 0.4972 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.5375, allocations: 0.8212 MB / 0.498 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.5381, allocations: 0.4945 MB / 0.4984 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005383/0.5387, allocations: 488.6 kB / 0.4989 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.5387, allocations: 4 kB / 0.4989 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007627/0.5395, allocations: 0.647 MB / 0.4995 GB, free: 14.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.553e-06/0.5395, allocations: 0 / 0.4995 GB, free: 14.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001398/0.5409, allocations: 0.9288 MB / 0.5005 GB, free: 13.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.5411, allocations: 279.3 kB / 0.5007 GB, free: 12.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.5425, allocations: 0.9801 MB / 0.5017 GB, free: 11.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.69e-05/0.5425, allocations: 41.69 kB / 0.5017 GB, free: 11.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.5427, allocations: 146 kB / 0.5019 GB, free: 11.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.5428, allocations: 71.17 kB / 0.5019 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/0.5428, allocations: 12 kB / 0.5019 GB, free: 11.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.543, allocations: 342.8 kB / 0.5023 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.5435, allocations: 348.1 kB / 0.5026 GB, free: 10.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004368/0.5439, allocations: 332.4 kB / 0.5029 GB, free: 10.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.5443, allocations: 249 kB / 0.5031 GB, free: 10.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5443, allocations: 7.938 kB / 0.5032 GB, free: 10.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00121/0.5455, allocations: 0.845 MB / 0.504 GB, free: 9.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001757/0.5457, allocations: 243.9 kB / 0.5042 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.5457, allocations: 0 / 0.5042 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5457, allocations: 0 / 0.5042 GB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.481e-05/0.5458, allocations: 11.98 kB / 0.5042 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.5458, allocations: 0 / 0.5042 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.5461, allocations: 43.77 kB / 0.5043 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.5463, allocations: 151.4 kB / 0.5044 GB, free: 9.012 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.0003897/0.5467, allocations: 406 kB / 0.5048 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001399/0.5481, allocations: 0.9771 MB / 0.5058 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.5483, allocations: 87.06 kB / 0.5058 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003128/0.5486, allocations: 148.1 kB / 0.506 GB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.5486, allocations: 7.984 kB / 0.506 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.5486, allocations: 7.922 kB / 0.506 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.5486, allocations: 0 / 0.506 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.5509, allocations: 1.615 MB / 0.5076 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5509, allocations: 0 / 0.5076 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.582e-05/0.5509, allocations: 7.938 kB / 0.5076 GB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.5509, allocations: 0 / 0.5076 GB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.087e-05/0.551, allocations: 39.95 kB / 0.5076 GB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.551, allocations: 8 kB / 0.5076 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.551, allocations: 0 / 0.5076 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.5525, allocations: 1.076 MB / 0.5087 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008186/0.5534, allocations: 0.5504 MB / 0.5092 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.5536, allocations: 63.95 kB / 0.5093 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/0.5539, allocations: 23.98 kB / 0.5093 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004581/0.5543, allocations: 243.7 kB / 0.5095 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/0.5545, allocations: 160.2 kB / 0.5097 GB, free: 3.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001104/0.5556, allocations: 0.8148 MB / 0.5105 GB, free: 2.656 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.994e-06/0.5556, allocations: 0 / 0.5105 GB, free: 2.656 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004717/0.5561, allocations: 127.9 kB / 0.5106 GB, free: 2.531 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.002038/0.5582, allocations: 1.717 MB / 0.5123 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.5601, allocations: 1.48 MB / 0.5137 GB, free: 15.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5602, allocations: 3.938 kB / 0.5137 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.5614, allocations: 1.097 MB / 0.5148 GB, free: 14.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.5627, allocations: 274.2 kB / 0.5151 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.566, allocations: 1.868 MB / 0.5169 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000877/0.5669, allocations: 1.031 MB / 0.5179 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000189/0.5671, allocations: 47.88 kB / 0.5179 GB, free: 10.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.5672, allocations: 75.42 kB / 0.518 GB, free: 10.69 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5672, allocations: 0 / 0.518 GB, free: 10.69 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/0.6083, allocations: 15.71 MB / 0.5333 GB, free: 10.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.6086, allocations: 137 kB / 0.5335 GB, free: 10.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.21/2.818, allocations: 0 / 0.5335 GB, free: 10.6 MB / 410.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