Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008795/0.0008795, allocations: 104.2 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002073/0.0002073, allocations: 8 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1878, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08984/0.2777, allocations: 84.22 MB / 493.7 MB, free: 6.395 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00019/0.2779, allocations: 67.97 kB / 493.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2066/0.4845, allocations: 33.03 MB / 0.5145 GB, free: 93.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4846, allocations: 0 / 0.5145 GB, free: 93.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.244e-05/0.4846, allocations: 16.25 kB / 0.5145 GB, free: 93.48 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001058/0.4857, allocations: 1.508 MB / 0.516 GB, free: 92.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.4857, allocations: 7.812 kB / 0.516 GB, free: 92.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.431e-05/0.4858, allocations: 62.08 kB / 0.516 GB, free: 92.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.4859, allocations: 128.8 kB / 0.5161 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006136/0.4865, allocations: 0.5091 MB / 0.5166 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.4866, allocations: 19.38 kB / 0.5167 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-05/0.4866, allocations: 34.95 kB / 0.5167 GB, free: 91.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007582/0.4874, allocations: 0.6216 MB / 0.5173 GB, free: 91.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.4874, allocations: 11.33 kB / 0.5173 GB, free: 91.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.447e-05/0.4875, allocations: 14.5 kB / 0.5173 GB, free: 91.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4875, allocations: 0 / 0.5173 GB, free: 91.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005336/0.488, allocations: 470.8 kB / 0.5178 GB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.4892, allocations: 1.088 MB / 0.5188 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006194/0.4898, allocations: 0.7016 MB / 0.5195 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.4898, allocations: 0 / 0.5195 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000691/0.4905, allocations: 0.7716 MB / 0.5203 GB, free: 89.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.634e-06/0.4905, allocations: 3.938 kB / 0.5203 GB, free: 89.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.0021/0.4927, allocations: 2.136 MB / 0.5224 GB, free: 88.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.4928, allocations: 325 kB / 0.5227 GB, free: 87.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.4943, allocations: 1.617 MB / 0.5243 GB, free: 86.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.094e-05/0.4944, allocations: 41.7 kB / 0.5243 GB, free: 86.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.4946, allocations: 238.3 kB / 0.5245 GB, free: 85.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.14e-05/0.4947, allocations: 85.7 kB / 0.5246 GB, free: 85.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.4947, allocations: 19.98 kB / 0.5246 GB, free: 85.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.573e-05/0.4948, allocations: 378.7 kB / 0.525 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.4953, allocations: 451.9 kB / 0.5254 GB, free: 85.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004861/0.4958, allocations: 489.8 kB / 0.5259 GB, free: 84.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004509/0.4963, allocations: 0.5795 MB / 0.5264 GB, free: 83.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4963, allocations: 4 kB / 0.5264 GB, free: 83.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001344/0.4976, allocations: 1.36 MB / 0.5278 GB, free: 82.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.4977, allocations: 293.5 kB / 0.5281 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.4977, allocations: 0 / 0.5281 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.4978, allocations: 0 / 0.5281 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.407e-05/0.4978, allocations: 11.78 kB / 0.5281 GB, free: 82.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.4978, allocations: 7.953 kB / 0.5281 GB, free: 82.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.4981, allocations: 43.94 kB / 0.5281 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.4982, allocations: 159.7 kB / 0.5283 GB, free: 81.94 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: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0007657/0.499, allocations: 0.9828 MB / 0.5292 GB, free: 80.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.4991, allocations: 138.4 kB / 0.5294 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002892/0.4994, allocations: 247.6 kB / 0.5296 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.4994, allocations: 0 / 0.5296 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.4994, allocations: 0 / 0.5296 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4994, allocations: 3.953 kB / 0.5296 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.5018, allocations: 2.412 MB / 0.532 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.5018, allocations: 0 / 0.532 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.987e-06/0.5018, allocations: 0 / 0.532 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5018, allocations: 0 / 0.532 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.041e-05/0.5019, allocations: 43.97 kB / 0.532 GB, free: 77.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.5019, allocations: 10.95 kB / 0.532 GB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.5019, allocations: 0 / 0.532 GB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.5034, allocations: 1.645 MB / 0.5336 GB, free: 76.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008573/0.5043, allocations: 0.6824 MB / 0.5343 GB, free: 75.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.5045, allocations: 63.95 kB / 0.5343 GB, free: 75.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.5048, allocations: 35.97 kB / 0.5344 GB, free: 75.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003953/0.5052, allocations: 355.6 kB / 0.5347 GB, free: 75.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.5053, allocations: 159.9 kB / 0.5349 GB, free: 74.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00131/0.5066, allocations: 1.333 MB / 0.5362 GB, free: 73.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5066, allocations: 0 / 0.5362 GB, free: 73.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004011/0.507, allocations: 151.9 kB / 0.5363 GB, free: 73.45 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.001816/0.5089, allocations: 2.272 MB / 0.5385 GB, free: 71.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.5103, allocations: 1.936 MB / 0.5404 GB, free: 69.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5103, allocations: 0 / 0.5404 GB, free: 69.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008564/0.5112, allocations: 1.397 MB / 0.5418 GB, free: 67.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009076/0.5121, allocations: 307.7 kB / 0.5421 GB, free: 67.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008067/0.5202, allocations: 7.28 MB / 0.5492 GB, free: 59.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006703/0.5209, allocations: 1.212 MB / 0.5504 GB, free: 58.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.5211, allocations: 162.9 kB / 0.5505 GB, free: 58.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.5212, allocations: 147.4 kB / 0.5507 GB, free: 58.41 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5212, allocations: 0 / 0.5507 GB, free: 58.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.5477, allocations: 22.22 MB / 0.5724 GB, free: 36.13 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000124/0.5478, allocations: 171.7 kB / 0.5725 GB, free: 35.89 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.631, allocations: 0 / 0.5725 GB, free: 35.89 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat