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.001109/0.001109, allocations: 199 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.253/1.253, allocations: 227.2 MB / 245 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008187/0.0008187, allocations: 100.1 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.0002156, allocations: 11.98 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1995, allocations: 51.48 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09109/0.2906, allocations: 84.17 MB / 493.7 MB, free: 6.449 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.2909, allocations: 71.97 kB / 493.7 MB, free: 6.379 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2187/0.5096, allocations: 31.47 MB / 0.5129 GB, free: 93.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5096, allocations: 0 / 0.5129 GB, free: 93.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.327e-05/0.5097, allocations: 16.69 kB / 0.5129 GB, free: 93.02 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.001726/0.5114, allocations: 1.503 MB / 0.5144 GB, free: 91.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.5115, allocations: 7.906 kB / 0.5144 GB, free: 91.91 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000134/0.5116, allocations: 70.17 kB / 0.5145 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.5118, allocations: 129 kB / 0.5146 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007644/0.5126, allocations: 0.5145 MB / 0.5151 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.5126, allocations: 17.56 kB / 0.5151 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.964e-05/0.5127, allocations: 29.2 kB / 0.5151 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008273/0.5135, allocations: 0.6318 MB / 0.5157 GB, free: 91.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.5135, allocations: 7.828 kB / 0.5157 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.809e-05/0.5136, allocations: 14.97 kB / 0.5158 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.5136, allocations: 3.938 kB / 0.5158 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005619/0.5142, allocations: 465.4 kB / 0.5162 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.5159, allocations: 1.096 MB / 0.5173 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.5167, allocations: 0.6905 MB / 0.518 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.5167, allocations: 7.531 kB / 0.518 GB, free: 90.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007413/0.5174, allocations: 0.7672 MB / 0.5187 GB, free: 89.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.043e-06/0.5174, allocations: 0 / 0.5187 GB, free: 89.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002165/0.5196, allocations: 2.132 MB / 0.5208 GB, free: 88.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.5197, allocations: 324.1 kB / 0.5211 GB, free: 88.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.5216, allocations: 1.61 MB / 0.5227 GB, free: 87.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.892e-05/0.5217, allocations: 57.44 kB / 0.5227 GB, free: 87.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.5218, allocations: 230.1 kB / 0.5229 GB, free: 87.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.194e-05/0.5219, allocations: 90.39 kB / 0.523 GB, free: 87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.522, allocations: 11.91 kB / 0.523 GB, free: 87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.5221, allocations: 382.5 kB / 0.5234 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/0.5226, allocations: 456.3 kB / 0.5238 GB, free: 86.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005192/0.5232, allocations: 481.8 kB / 0.5243 GB, free: 85.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.5236, allocations: 0.595 MB / 0.5249 GB, free: 85.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5237, allocations: 0 / 0.5249 GB, free: 85.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001421/0.5251, allocations: 1.357 MB / 0.5262 GB, free: 83.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.5252, allocations: 289.5 kB / 0.5265 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.5252, allocations: 0 / 0.5265 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.5253, allocations: 0 / 0.5265 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.742e-05/0.5253, allocations: 11.73 kB / 0.5265 GB, free: 83.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.5253, allocations: 3.953 kB / 0.5265 GB, free: 83.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.5257, allocations: 51.94 kB / 0.5266 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.5258, allocations: 159.6 kB / 0.5267 GB, free: 83.23 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.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.001008/0.5268, allocations: 0.9881 MB / 0.5277 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.527, allocations: 134.4 kB / 0.5278 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003876/0.5274, allocations: 251.6 kB / 0.528 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5274, allocations: 0 / 0.528 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5274, allocations: 4 kB / 0.528 GB, free: 81.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.5274, allocations: 3.953 kB / 0.528 GB, free: 81.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.5299, allocations: 2.407 MB / 0.5304 GB, free: 79.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.53, allocations: 0 / 0.5304 GB, free: 79.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.104e-05/0.53, allocations: 4 kB / 0.5304 GB, free: 79.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.53, allocations: 0 / 0.5304 GB, free: 79.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.932e-05/0.5301, allocations: 39.98 kB / 0.5304 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.5301, allocations: 7.953 kB / 0.5304 GB, free: 79.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5301, allocations: 3.984 kB / 0.5304 GB, free: 79.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.5317, allocations: 1.636 MB / 0.532 GB, free: 77.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000957/0.5327, allocations: 0.6892 MB / 0.5327 GB, free: 76.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.5328, allocations: 59.97 kB / 0.5328 GB, free: 76.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.5332, allocations: 39.66 kB / 0.5328 GB, free: 76.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004118/0.5336, allocations: 359.6 kB / 0.5332 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.5337, allocations: 163.4 kB / 0.5333 GB, free: 76.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001518/0.5352, allocations: 1.325 MB / 0.5346 GB, free: 74.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5353, allocations: 0 / 0.5346 GB, free: 74.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004755/0.5357, allocations: 152 kB / 0.5348 GB, free: 74.75 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,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) * 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.002021/0.5378, allocations: 2.274 MB / 0.537 GB, free: 72.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.5394, allocations: 1.926 MB / 0.5389 GB, free: 70.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5395, allocations: 0 / 0.5389 GB, free: 70.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009583/0.5404, allocations: 1.399 MB / 0.5402 GB, free: 68.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.5414, allocations: 315.5 kB / 0.5405 GB, free: 68.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.5518, allocations: 7.278 MB / 0.5476 GB, free: 61.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009104/0.5527, allocations: 1.228 MB / 0.5488 GB, free: 60 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002986/0.553, allocations: 188.1 kB / 0.549 GB, free: 59.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.5532, allocations: 143.4 kB / 0.5491 GB, free: 59.68 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5532, allocations: 0 / 0.5491 GB, free: 59.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02983/0.583, allocations: 22.22 MB / 0.5708 GB, free: 37.39 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000147/0.5832, allocations: 171.6 kB / 0.571 GB, free: 37.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.693, allocations: 0 / 0.571 GB, free: 37.16 MB / 378.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