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.001072/0.001072, allocations: 196.1 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.371/1.371, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000804/0.000804, allocations: 94 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.274e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3714/0.4956, allocations: 84.14 MB / 486.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.4958, allocations: 72.89 kB / 486.3 MB, free: 5.242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06123/0.5571, allocations: 33.19 MB / 0.5073 GB, free: 6.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5571, allocations: 0 / 0.5073 GB, free: 6.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.829e-05/0.5572, allocations: 16 kB / 0.5074 GB, free: 6.078 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.001435/0.5586, allocations: 1.299 MB / 0.5086 GB, free: 4.676 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.5587, allocations: 16.02 kB / 0.5086 GB, free: 4.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.366e-05/0.5588, allocations: 56.42 kB / 0.5087 GB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.559, allocations: 138.4 kB / 0.5088 GB, free: 4.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007882/0.5597, allocations: 0.5168 MB / 0.5093 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.5598, allocations: 20 kB / 0.5094 GB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.249e-05/0.5599, allocations: 35.98 kB / 0.5094 GB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009814/0.5609, allocations: 0.6067 MB / 0.51 GB, free: 3.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.5609, allocations: 0 / 0.51 GB, free: 3.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.561, allocations: 15.98 kB / 0.51 GB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.561, allocations: 4 kB / 0.51 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006672/0.5617, allocations: 470.6 kB / 0.5105 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.5634, allocations: 1.084 MB / 0.5115 GB, free: 1.609 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008199/0.5643, allocations: 0.6897 MB / 0.5122 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007848/0.5651, allocations: 0.6764 MB / 0.5128 GB, free: 236 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.5651, allocations: 144 / 0.5128 GB, free: 236 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009603/0.5661, allocations: 0.7593 MB / 0.5136 GB, free: 15.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=36): time 1.804e-06/0.5661, allocations: 0 / 0.5136 GB, free: 15.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.00213/0.5682, allocations: 1.424 MB / 0.515 GB, free: 13.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002524/0.5685, allocations: 325 kB / 0.5153 GB, free: 13.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002206/0.5707, allocations: 1.598 MB / 0.5168 GB, free: 11.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.435e-05/0.5708, allocations: 49.69 kB / 0.5169 GB, free: 11.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.571, allocations: 240.5 kB / 0.5171 GB, free: 11.67 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.5711, allocations: 83.09 kB / 0.5172 GB, free: 11.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.877e-05/0.5712, allocations: 15.98 kB / 0.5172 GB, free: 11.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.5714, allocations: 378.7 kB / 0.5176 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006201/0.572, allocations: 451.9 kB / 0.518 GB, free: 10.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006181/0.5726, allocations: 452.1 kB / 0.5184 GB, free: 10.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.5733, allocations: 0.5841 MB / 0.519 GB, free: 9.672 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5733, allocations: 0 / 0.519 GB, free: 9.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001777/0.5751, allocations: 1.347 MB / 0.5203 GB, free: 8.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002282/0.5753, allocations: 293.5 kB / 0.5206 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.5753, allocations: 0 / 0.5206 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.5754, allocations: 0 / 0.5206 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.115e-05/0.5754, allocations: 7.938 kB / 0.5206 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.5754, allocations: 3.984 kB / 0.5206 GB, free: 7.922 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.5758, allocations: 43.88 kB / 0.5207 GB, free: 7.879 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00022/0.576, allocations: 159.4 kB / 0.5208 GB, free: 7.727 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.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,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 () * 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.0004737/0.5765, allocations: 466.4 kB / 0.5213 GB, free: 7.215 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.5767, allocations: 134.5 kB / 0.5214 GB, free: 7.082 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003958/0.5771, allocations: 251.7 kB / 0.5216 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.5771, allocations: 0 / 0.5216 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.5771, allocations: 0 / 0.5216 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5771, allocations: 0 / 0.5216 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.5804, allocations: 2.408 MB / 0.524 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.5804, allocations: 0 / 0.524 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.017e-05/0.5805, allocations: 0 / 0.524 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.5805, allocations: 0 / 0.524 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.399e-05/0.5806, allocations: 47.97 kB / 0.524 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.5806, allocations: 0 / 0.524 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5806, allocations: 3.938 kB / 0.524 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.5826, allocations: 1.612 MB / 0.5256 GB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.5838, allocations: 0.6863 MB / 0.5263 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.5839, allocations: 59.97 kB / 0.5263 GB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.5843, allocations: 43.91 kB / 0.5264 GB, free: 1.777 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005403/0.5848, allocations: 355.6 kB / 0.5267 GB, free: 1.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.585, allocations: 155.9 kB / 0.5269 GB, free: 1.277 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00181/0.5868, allocations: 1.315 MB / 0.5281 GB, free: 15.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5868, allocations: 1.594 kB / 0.5281 GB, free: 15.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004774/0.5873, allocations: 156 kB / 0.5283 GB, free: 15.81 MB / 410.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) * 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.00243/0.5898, allocations: 2.257 MB / 0.5305 GB, free: 13.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002055/0.5918, allocations: 1.905 MB / 0.5324 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5918, allocations: 7.938 kB / 0.5324 GB, free: 11.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.5931, allocations: 1.386 MB / 0.5337 GB, free: 9.977 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.5943, allocations: 301.9 kB / 0.534 GB, free: 9.684 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.5986, allocations: 2.715 MB / 0.5367 GB, free: 6.918 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009988/0.5997, allocations: 1.214 MB / 0.5378 GB, free: 5.676 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.6, allocations: 157.1 kB / 0.538 GB, free: 5.527 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.6002, allocations: 151.4 kB / 0.5381 GB, free: 5.379 MB / 410.7 MB Notification: Performance of SimCode: time 2.525e-06/0.6002, allocations: 0 / 0.5381 GB, free: 5.379 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03489/0.6351, allocations: 22.03 MB / 0.5597 GB, free: 15.26 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.6353, allocations: 162.9 kB / 0.5598 GB, free: 15.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/2.901, allocations: 4 kB / 0.5598 GB, free: 15.02 MB / 442.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