Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009995/0.0009995, allocations: 197.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 99.31 kB / 286.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.275e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 51.47 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.4761, allocations: 83.33 MB / 478.6 MB, free: 9.336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.4764, allocations: 66.59 kB / 478.7 MB, free: 9.312 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05286/0.5293, allocations: 30.98 MB / 0.4977 GB, free: 276 kB / 362.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.5293, allocations: 0 / 0.4977 GB, free: 276 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.087e-05/0.5293, allocations: 23.94 kB / 0.4977 GB, free: 252 kB / 362.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.001423/0.5308, allocations: 1.315 MB / 0.499 GB, free: 14.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.5308, allocations: 8.031 kB / 0.499 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.531, allocations: 142.4 kB / 0.4991 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007196/0.5318, allocations: 0.5171 MB / 0.4997 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/0.5318, allocations: 16 kB / 0.4997 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-05/0.5319, allocations: 24 kB / 0.4997 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006275/0.5325, allocations: 451.8 kB / 0.5001 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008123/0.5333, allocations: 0.586 MB / 0.5007 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.5334, allocations: 4 kB / 0.5007 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.871e-05/0.5334, allocations: 16 kB / 0.5007 GB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.5334, allocations: 3.953 kB / 0.5007 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.5351, allocations: 1.129 MB / 0.5018 GB, free: 11.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007203/0.5359, allocations: 0.6742 MB / 0.5025 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006827/0.5366, allocations: 0.6569 MB / 0.5031 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.5366, allocations: 7.938 kB / 0.5031 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008437/0.5374, allocations: 0.7447 MB / 0.5039 GB, free: 9.715 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.853e-06/0.5375, allocations: 0 / 0.5039 GB, free: 9.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001572/0.539, allocations: 1.096 MB / 0.5049 GB, free: 8.613 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002048/0.5392, allocations: 321 kB / 0.5052 GB, free: 8.238 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001952/0.5412, allocations: 1.558 MB / 0.5068 GB, free: 6.668 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.649e-05/0.5413, allocations: 41.69 kB / 0.5068 GB, free: 6.621 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.5415, allocations: 246.4 kB / 0.507 GB, free: 6.375 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.5416, allocations: 75.16 kB / 0.5071 GB, free: 6.301 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.5417, allocations: 12 kB / 0.5071 GB, free: 6.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.5419, allocations: 382.7 kB / 0.5075 GB, free: 5.906 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.5424, allocations: 447.8 kB / 0.5079 GB, free: 5.469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.543, allocations: 440.7 kB / 0.5083 GB, free: 5.039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.5434, allocations: 287.7 kB / 0.5086 GB, free: 4.758 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.5434, allocations: 3.953 kB / 0.5086 GB, free: 4.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001371/0.5448, allocations: 1.034 MB / 0.5096 GB, free: 3.715 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002175/0.545, allocations: 293.5 kB / 0.5099 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.545, allocations: 0 / 0.5099 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.545, allocations: 0 / 0.5099 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.575e-05/0.5451, allocations: 8 kB / 0.5099 GB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.5451, allocations: 0 / 0.5099 GB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.5454, allocations: 43.91 kB / 0.5099 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.5456, allocations: 123.7 kB / 0.5101 GB, free: 3.211 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.000397/0.546, allocations: 463.7 kB / 0.5105 GB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001564/0.5476, allocations: 1.184 MB / 0.5117 GB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.5477, allocations: 130.5 kB / 0.5118 GB, free: 1.383 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004097/0.5481, allocations: 256.3 kB / 0.512 GB, free: 1.129 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.5481, allocations: 3.984 kB / 0.512 GB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.5482, allocations: 0 / 0.512 GB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.5482, allocations: 0 / 0.512 GB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/0.5507, allocations: 2.009 MB / 0.514 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.5507, allocations: 0 / 0.514 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-05/0.5507, allocations: 4 kB / 0.514 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5507, allocations: 4 kB / 0.514 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.5508, allocations: 35.98 kB / 0.514 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5508, allocations: 0 / 0.514 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5508, allocations: 0 / 0.514 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.5524, allocations: 1.285 MB / 0.5153 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009808/0.5534, allocations: 0.6746 MB / 0.5159 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.5536, allocations: 59.97 kB / 0.516 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.554, allocations: 43.86 kB / 0.516 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000571/0.5546, allocations: 375.6 kB / 0.5164 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.5547, allocations: 135.9 kB / 0.5165 GB, free: 12.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001772/0.5565, allocations: 1.271 MB / 0.5178 GB, free: 11.15 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5565, allocations: 0 / 0.5178 GB, free: 11.15 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005/0.557, allocations: 140 kB / 0.5179 GB, free: 11.01 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.002249/0.5593, allocations: 1.926 MB / 0.5198 GB, free: 9.059 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.5613, allocations: 1.874 MB / 0.5216 GB, free: 7.086 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.5613, allocations: 0 / 0.5216 GB, free: 7.086 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.5625, allocations: 1.425 MB / 0.523 GB, free: 5.562 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5638, allocations: 293.5 kB / 0.5233 GB, free: 5.281 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004332/0.5681, allocations: 2.718 MB / 0.5259 GB, free: 2.512 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.5692, allocations: 1.227 MB / 0.5271 GB, free: 1.258 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.5693, allocations: 39.36 kB / 0.5272 GB, free: 1.223 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.5695, allocations: 135.4 kB / 0.5273 GB, free: 1.09 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5695, allocations: 0 / 0.5273 GB, free: 1.09 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.609, allocations: 19.85 MB / 0.5467 GB, free: 13.06 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.6092, allocations: 134 kB / 0.5468 GB, free: 12.87 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.729, allocations: 0 / 0.5468 GB, free: 12.87 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat