Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009322/0.0009323, allocations: 95.42 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.191e-05/2.214e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 51.47 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3782/0.4911, allocations: 83.23 MB / 478.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.4914, allocations: 73.53 kB / 478.6 MB, free: 9.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06555/0.5569, allocations: 37.89 MB / 0.5043 GB, free: 9.469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.557, allocations: 0 / 0.5043 GB, free: 9.469 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.356e-05/0.557, allocations: 15.94 kB / 0.5044 GB, free: 9.453 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.00107/0.5581, allocations: 1.016 MB / 0.5054 GB, free: 8.348 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.5581, allocations: 8.031 kB / 0.5054 GB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.5583, allocations: 86.97 kB / 0.5054 GB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006003/0.5589, allocations: 419.6 kB / 0.5058 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.559, allocations: 16 kB / 0.5059 GB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.544e-05/0.559, allocations: 27.98 kB / 0.5059 GB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005052/0.5595, allocations: 340.2 kB / 0.5062 GB, free: 7.422 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006853/0.5602, allocations: 494.2 kB / 0.5067 GB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.5603, allocations: 3.984 kB / 0.5067 GB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.516e-05/0.5603, allocations: 8 kB / 0.5067 GB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.5603, allocations: 4 kB / 0.5067 GB, free: 6.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.5616, allocations: 0.821 MB / 0.5075 GB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.5622, allocations: 0.489 MB / 0.508 GB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005491/0.5628, allocations: 488.7 kB / 0.5084 GB, free: 5.078 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.5628, allocations: 4.109 kB / 0.5084 GB, free: 5.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007723/0.5636, allocations: 0.6624 MB / 0.5091 GB, free: 4.375 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.627e-06/0.5636, allocations: 0 / 0.5091 GB, free: 4.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001336/0.5649, allocations: 0.9093 MB / 0.51 GB, free: 3.461 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001697/0.5651, allocations: 283.3 kB / 0.5102 GB, free: 3.129 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.5663, allocations: 0.984 MB / 0.5112 GB, free: 2.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.5664, allocations: 41.7 kB / 0.5112 GB, free: 2.094 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.5665, allocations: 146 kB / 0.5114 GB, free: 1.945 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.646e-05/0.5666, allocations: 79.11 kB / 0.5115 GB, free: 1.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.5667, allocations: 15.94 kB / 0.5115 GB, free: 1.852 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.5668, allocations: 342.8 kB / 0.5118 GB, free: 1.508 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.5672, allocations: 336.1 kB / 0.5121 GB, free: 1.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004101/0.5677, allocations: 340.4 kB / 0.5125 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.568, allocations: 249 kB / 0.5127 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.568, allocations: 0 / 0.5127 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001152/0.5691, allocations: 0.8452 MB / 0.5135 GB, free: 15.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.5693, allocations: 243.8 kB / 0.5137 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5693, allocations: 4 kB / 0.5138 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.5694, allocations: 4 kB / 0.5138 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.878e-05/0.5694, allocations: 7.984 kB / 0.5138 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.5694, allocations: 3.938 kB / 0.5138 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.5697, allocations: 39.83 kB / 0.5138 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.5699, allocations: 147.4 kB / 0.5139 GB, free: 15.27 MB / 394.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.0003404/0.5702, allocations: 410 kB / 0.5143 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001358/0.5716, allocations: 0.9771 MB / 0.5153 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.5717, allocations: 95.02 kB / 0.5154 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002998/0.572, allocations: 148.1 kB / 0.5155 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.572, allocations: 11.92 kB / 0.5155 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.572, allocations: 0 / 0.5155 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.572, allocations: 0 / 0.5155 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.574, allocations: 1.619 MB / 0.5171 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.5741, allocations: 0 / 0.5171 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.277e-05/0.5741, allocations: 0 / 0.5171 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.5741, allocations: 3.984 kB / 0.5171 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.535e-05/0.5742, allocations: 35.98 kB / 0.5172 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5742, allocations: 0 / 0.5172 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5742, allocations: 0 / 0.5172 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.5755, allocations: 1.068 MB / 0.5182 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007451/0.5763, allocations: 0.5698 MB / 0.5188 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.5764, allocations: 59.95 kB / 0.5188 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.5767, allocations: 31.92 kB / 0.5188 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003752/0.5771, allocations: 239.7 kB / 0.5191 GB, free: 9.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.5773, allocations: 156.2 kB / 0.5192 GB, free: 9.734 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009812/0.5783, allocations: 0.8187 MB / 0.52 GB, free: 8.918 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5783, allocations: 3.938 kB / 0.52 GB, free: 8.914 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004345/0.5787, allocations: 120 kB / 0.5201 GB, free: 8.797 MB / 394.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.001768/0.5805, allocations: 1.713 MB / 0.5218 GB, free: 7.055 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.582, allocations: 1.476 MB / 0.5232 GB, free: 5.492 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.582, allocations: 0 / 0.5232 GB, free: 5.492 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009413/0.5829, allocations: 1.109 MB / 0.5243 GB, free: 4.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.584, allocations: 270.7 kB / 0.5246 GB, free: 4.039 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.5868, allocations: 1.869 MB / 0.5264 GB, free: 2.125 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007008/0.5875, allocations: 1.039 MB / 0.5274 GB, free: 1.062 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.5876, allocations: 41.75 kB / 0.5275 GB, free: 1.023 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.855e-05/0.5877, allocations: 71.42 kB / 0.5275 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5877, allocations: 0 / 0.5275 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03542/0.6232, allocations: 15.71 MB / 0.5429 GB, free: 1.062 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.6234, allocations: 134.3 kB / 0.543 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.754, allocations: 0 / 0.543 GB, free: 0.8672 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat