Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00182/0.001821, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008746/0.0008746, allocations: 88.69 kB / 292.1 MB, free: 6.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.781e-05/3.787e-05, allocations: 0 / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3035/0.4058, allocations: 84.1 MB / 486.2 MB, free: 5.301 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.406, allocations: 63.25 kB / 486.3 MB, free: 5.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05813/0.4641, allocations: 31.64 MB / 0.5058 GB, free: 7.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4642, allocations: 0 / 0.5058 GB, free: 7.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.359e-05/0.4642, allocations: 16 kB / 0.5058 GB, free: 7.664 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.001665/0.4659, allocations: 1.301 MB / 0.5071 GB, free: 6.266 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.4659, allocations: 16.02 kB / 0.5071 GB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.4661, allocations: 54.55 kB / 0.5071 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.4663, allocations: 134.4 kB / 0.5073 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008125/0.4671, allocations: 0.5168 MB / 0.5078 GB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.4672, allocations: 16 kB / 0.5078 GB, free: 5.473 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.994e-05/0.4673, allocations: 31.98 kB / 0.5078 GB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009516/0.4682, allocations: 0.6183 MB / 0.5084 GB, free: 4.812 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.4683, allocations: 0 / 0.5084 GB, free: 4.812 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.97e-05/0.4683, allocations: 19.98 kB / 0.5084 GB, free: 4.793 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.4683, allocations: 4 kB / 0.5084 GB, free: 4.789 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006566/0.469, allocations: 462.7 kB / 0.5089 GB, free: 4.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.4708, allocations: 1.088 MB / 0.5099 GB, free: 3.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008475/0.4717, allocations: 0.6898 MB / 0.5106 GB, free: 2.496 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007707/0.4725, allocations: 0.6725 MB / 0.5113 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.4725, allocations: 7.984 kB / 0.5113 GB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009052/0.4734, allocations: 0.7594 MB / 0.512 GB, free: 1.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.954e-06/0.4734, allocations: 0 / 0.512 GB, free: 1.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001886/0.4753, allocations: 1.421 MB / 0.5134 GB, free: 15.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/0.4755, allocations: 328.9 kB / 0.5137 GB, free: 15.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/0.4781, allocations: 1.602 MB / 0.5153 GB, free: 13.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.226e-05/0.4782, allocations: 49.69 kB / 0.5153 GB, free: 13.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.4784, allocations: 234.5 kB / 0.5156 GB, free: 13.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.4785, allocations: 87 kB / 0.5156 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.4786, allocations: 15.98 kB / 0.5157 GB, free: 13.15 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.4788, allocations: 374.7 kB / 0.516 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006624/0.4795, allocations: 456 kB / 0.5165 GB, free: 12.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006361/0.4801, allocations: 453.2 kB / 0.5169 GB, free: 11.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.4808, allocations: 0.5764 MB / 0.5175 GB, free: 11.26 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4808, allocations: 0 / 0.5175 GB, free: 11.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001781/0.4826, allocations: 1.355 MB / 0.5188 GB, free: 9.848 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.4828, allocations: 293.5 kB / 0.5191 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4828, allocations: 2.062 kB / 0.5191 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.4828, allocations: 0 / 0.5191 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.87e-05/0.4829, allocations: 4 kB / 0.5191 GB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.4829, allocations: 0 / 0.5191 GB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.4833, allocations: 51.77 kB / 0.5191 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/0.4835, allocations: 159.4 kB / 0.5193 GB, free: 9.305 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete 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.0004582/0.4839, allocations: 454.5 kB / 0.5197 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.4841, allocations: 130.5 kB / 0.5198 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004433/0.4846, allocations: 251.7 kB / 0.5201 GB, free: 8.426 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.4846, allocations: 4 kB / 0.5201 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4846, allocations: 4 kB / 0.5201 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4846, allocations: 0 / 0.5201 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003062/0.4877, allocations: 2.403 MB / 0.5224 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.4877, allocations: 0 / 0.5224 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.387e-05/0.4877, allocations: 7.875 kB / 0.5224 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.4877, allocations: 0 / 0.5224 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.754e-05/0.4878, allocations: 43.97 kB / 0.5225 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.4878, allocations: 4 kB / 0.5225 GB, free: 5.848 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4878, allocations: 0 / 0.5225 GB, free: 5.848 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/0.4899, allocations: 1.61 MB / 0.524 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.491, allocations: 0.6825 MB / 0.5247 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.4912, allocations: 59.97 kB / 0.5248 GB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.4915, allocations: 41.75 kB / 0.5248 GB, free: 3.367 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005474/0.492, allocations: 347.6 kB / 0.5251 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/0.4922, allocations: 159.9 kB / 0.5253 GB, free: 2.871 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002007/0.4943, allocations: 1.327 MB / 0.5266 GB, free: 1.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4943, allocations: 4 kB / 0.5266 GB, free: 1.535 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005263/0.4948, allocations: 148 kB / 0.5267 GB, free: 1.391 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * 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.002572/0.4974, allocations: 2.265 MB / 0.5289 GB, free: 15.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.4994, allocations: 1.913 MB / 0.5308 GB, free: 13.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4994, allocations: 0 / 0.5308 GB, free: 13.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.5006, allocations: 1.386 MB / 0.5322 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.5018, allocations: 303.5 kB / 0.5324 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004214/0.506, allocations: 2.713 MB / 0.5351 GB, free: 8.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009469/0.507, allocations: 1.213 MB / 0.5363 GB, free: 7.254 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003312/0.5073, allocations: 202.9 kB / 0.5365 GB, free: 7.059 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.5075, allocations: 147.4 kB / 0.5366 GB, free: 6.918 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5075, allocations: 0 / 0.5366 GB, free: 6.918 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04133/0.5488, allocations: 22.03 MB / 0.5581 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.549, allocations: 163.2 kB / 0.5583 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/2.852, allocations: 3.938 kB / 0.5583 GB, free: 0.5703 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRH.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat