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.001465/0.001465, allocations: 198.8 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.52/1.52, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 92.97 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.894e-05/2.903e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3569/0.4617, allocations: 83.48 MB / 478.7 MB, free: 9.219 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.462, allocations: 65.38 kB / 478.8 MB, free: 9.195 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0589/0.521, allocations: 33 MB / 0.4998 GB, free: 14.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.521, allocations: 0 / 0.4998 GB, free: 14.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.389e-05/0.5211, allocations: 20 kB / 0.4998 GB, free: 14.11 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.001905/0.523, allocations: 1.303 MB / 0.5011 GB, free: 12.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.523, allocations: 8.031 kB / 0.5011 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.5233, allocations: 138.4 kB / 0.5012 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008363/0.5242, allocations: 0.509 MB / 0.5017 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.5242, allocations: 16 kB / 0.5018 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-05/0.5243, allocations: 24 kB / 0.5018 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006459/0.525, allocations: 439.8 kB / 0.5022 GB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008692/0.5259, allocations: 0.5899 MB / 0.5028 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.5259, allocations: 4 kB / 0.5028 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.46e-05/0.526, allocations: 15.98 kB / 0.5028 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.526, allocations: 4 kB / 0.5028 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.5278, allocations: 1.043 MB / 0.5038 GB, free: 9.828 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007846/0.5286, allocations: 0.6741 MB / 0.5045 GB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007289/0.5293, allocations: 0.6607 MB / 0.5051 GB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.5294, allocations: 0 / 0.5051 GB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008962/0.5303, allocations: 0.7556 MB / 0.5059 GB, free: 7.688 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.104e-06/0.5303, allocations: 4 kB / 0.5059 GB, free: 7.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001677/0.532, allocations: 1.095 MB / 0.5069 GB, free: 6.582 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002158/0.5322, allocations: 332.9 kB / 0.5072 GB, free: 6.195 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002573/0.5348, allocations: 1.534 MB / 0.5087 GB, free: 4.648 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.409e-05/0.5349, allocations: 37.7 kB / 0.5088 GB, free: 4.605 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.5351, allocations: 238.4 kB / 0.509 GB, free: 4.367 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.5353, allocations: 87.09 kB / 0.5091 GB, free: 4.281 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.5353, allocations: 8 kB / 0.5091 GB, free: 4.273 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.5355, allocations: 386.7 kB / 0.5095 GB, free: 3.887 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000567/0.5361, allocations: 440 kB / 0.5099 GB, free: 3.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005471/0.5367, allocations: 431.9 kB / 0.5103 GB, free: 3.031 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003814/0.5371, allocations: 296.9 kB / 0.5106 GB, free: 2.742 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5371, allocations: 4 kB / 0.5106 GB, free: 2.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001469/0.5385, allocations: 1.025 MB / 0.5116 GB, free: 1.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002411/0.5388, allocations: 289.5 kB / 0.5119 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.5388, allocations: 0 / 0.5119 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5388, allocations: 0 / 0.5119 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.515e-05/0.5389, allocations: 11.98 kB / 0.5119 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.5389, allocations: 0 / 0.5119 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.5393, allocations: 51.81 kB / 0.5119 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/0.5395, allocations: 151.4 kB / 0.5121 GB, free: 1.168 MB / 378.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.0004223/0.5399, allocations: 454.5 kB / 0.5125 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001633/0.5415, allocations: 1.167 MB / 0.5136 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.5417, allocations: 138.2 kB / 0.5138 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004703/0.5422, allocations: 256 kB / 0.514 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.5422, allocations: 0 / 0.514 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.5422, allocations: 0 / 0.514 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.5422, allocations: 4 kB / 0.514 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002875/0.5451, allocations: 1.997 MB / 0.516 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.5451, allocations: 4 kB / 0.516 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.475e-05/0.5451, allocations: 0 / 0.516 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.5452, allocations: 8 kB / 0.516 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.637e-05/0.5452, allocations: 35.98 kB / 0.516 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.5453, allocations: 7.922 kB / 0.516 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.5453, allocations: 0 / 0.516 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.5471, allocations: 1.276 MB / 0.5173 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.5481, allocations: 0.6786 MB / 0.5179 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/0.5484, allocations: 63.95 kB / 0.518 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003666/0.5487, allocations: 39.91 kB / 0.518 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005726/0.5493, allocations: 359.6 kB / 0.5184 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/0.5495, allocations: 155.9 kB / 0.5185 GB, free: 10.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002017/0.5515, allocations: 1.259 MB / 0.5198 GB, free: 9.129 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5516, allocations: 0 / 0.5198 GB, free: 9.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005488/0.5521, allocations: 148 kB / 0.5199 GB, free: 8.984 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,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.002118/0.5542, allocations: 1.908 MB / 0.5218 GB, free: 7.051 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002159/0.5564, allocations: 1.87 MB / 0.5236 GB, free: 5.086 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5564, allocations: 0 / 0.5236 GB, free: 5.086 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.5579, allocations: 1.374 MB / 0.5249 GB, free: 3.613 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.5595, allocations: 296.4 kB / 0.5252 GB, free: 3.332 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00573/0.5652, allocations: 2.679 MB / 0.5278 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/0.5666, allocations: 1.216 MB / 0.529 GB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004099/0.567, allocations: 155 kB / 0.5292 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.5673, allocations: 151.4 kB / 0.5293 GB, free: 15.05 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5673, allocations: 0 / 0.5293 GB, free: 15.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05857/0.6258, allocations: 20.84 MB / 0.5497 GB, free: 9.973 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002539/0.6262, allocations: 136.2 kB / 0.5498 GB, free: 9.781 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/2.846, allocations: 3.938 kB / 0.5498 GB, free: 9.777 MB / 426.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