Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 202.1 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.765/1.765, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 94.02 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.527e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09851/0.09855, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.377/0.4756, allocations: 83.38 MB / 478.6 MB, free: 9.273 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.4758, allocations: 66.27 kB / 478.7 MB, free: 9.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07167/0.5475, allocations: 38.99 MB / 0.5056 GB, free: 8.219 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5476, allocations: 0 / 0.5056 GB, free: 8.219 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.236e-05/0.5476, allocations: 16 kB / 0.5056 GB, free: 8.203 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.002466/0.5501, allocations: 1.331 MB / 0.5069 GB, free: 6.773 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.5502, allocations: 8.031 kB / 0.5069 GB, free: 6.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003843/0.5506, allocations: 138.4 kB / 0.507 GB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009377/0.5515, allocations: 0.5055 MB / 0.5075 GB, free: 6.074 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.978e-05/0.5516, allocations: 19.94 kB / 0.5075 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.926e-05/0.5517, allocations: 24 kB / 0.5076 GB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007044/0.5524, allocations: 459.7 kB / 0.508 GB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009776/0.5534, allocations: 0.5899 MB / 0.5086 GB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.5534, allocations: 0 / 0.5086 GB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.185e-05/0.5535, allocations: 12 kB / 0.5086 GB, free: 4.973 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.5536, allocations: 0 / 0.5086 GB, free: 4.973 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.556, allocations: 1.137 MB / 0.5097 GB, free: 3.793 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009301/0.5569, allocations: 0.6703 MB / 0.5103 GB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008585/0.5578, allocations: 0.6686 MB / 0.511 GB, free: 2.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.5578, allocations: 0 / 0.511 GB, free: 2.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/0.5589, allocations: 0.7368 MB / 0.5117 GB, free: 1.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.354e-06/0.5589, allocations: 0 / 0.5117 GB, free: 1.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001955/0.5609, allocations: 1.096 MB / 0.5128 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002212/0.5611, allocations: 329 kB / 0.5131 GB, free: 184 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/0.5641, allocations: 1.555 MB / 0.5146 GB, free: 14.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.655e-05/0.5642, allocations: 45.62 kB / 0.5147 GB, free: 14.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.5645, allocations: 246.4 kB / 0.5149 GB, free: 14.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.5646, allocations: 79.17 kB / 0.515 GB, free: 14.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/0.5647, allocations: 8 kB / 0.515 GB, free: 14.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.5649, allocations: 386.7 kB / 0.5153 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005711/0.5654, allocations: 439.8 kB / 0.5158 GB, free: 13.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005309/0.566, allocations: 434.9 kB / 0.5162 GB, free: 12.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.5664, allocations: 291.8 kB / 0.5165 GB, free: 12.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5664, allocations: 4 kB / 0.5165 GB, free: 12.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001412/0.5678, allocations: 1.015 MB / 0.5175 GB, free: 11.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.568, allocations: 293.5 kB / 0.5177 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.568, allocations: 0 / 0.5177 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.5681, allocations: 8 kB / 0.5177 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.702e-05/0.5681, allocations: 4 kB / 0.5177 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.5681, allocations: 0 / 0.5177 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.5685, allocations: 43.81 kB / 0.5178 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/0.5687, allocations: 139.6 kB / 0.5179 GB, free: 11.16 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.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.0003948/0.5691, allocations: 455.7 kB / 0.5184 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001608/0.5707, allocations: 1.172 MB / 0.5195 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.5709, allocations: 146.3 kB / 0.5196 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005092/0.5714, allocations: 256.3 kB / 0.5199 GB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.5714, allocations: 0 / 0.5199 GB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5714, allocations: 3.953 kB / 0.5199 GB, free: 9.078 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.5714, allocations: 0 / 0.5199 GB, free: 9.078 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.5742, allocations: 2.002 MB / 0.5218 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.5742, allocations: 0 / 0.5218 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-05/0.5742, allocations: 7.938 kB / 0.5218 GB, free: 7.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.5743, allocations: 4 kB / 0.5219 GB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.96e-05/0.5743, allocations: 31.98 kB / 0.5219 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.5743, allocations: 3.938 kB / 0.5219 GB, free: 6.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/0.5744, allocations: 7.938 kB / 0.5219 GB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.5761, allocations: 1.273 MB / 0.5231 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.5771, allocations: 0.6785 MB / 0.5238 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001928/0.5773, allocations: 63.89 kB / 0.5239 GB, free: 4.918 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.5777, allocations: 43.97 kB / 0.5239 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005819/0.5783, allocations: 383.5 kB / 0.5243 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/0.5785, allocations: 127.9 kB / 0.5244 GB, free: 4.375 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001841/0.5803, allocations: 1.267 MB / 0.5256 GB, free: 3.105 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5803, allocations: 0 / 0.5256 GB, free: 3.105 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005241/0.5809, allocations: 148 kB / 0.5258 GB, free: 2.961 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,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.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.002176/0.5831, allocations: 1.916 MB / 0.5276 GB, free: 1.016 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.585, allocations: 1.88 MB / 0.5295 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.585, allocations: 0 / 0.5295 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.5863, allocations: 1.409 MB / 0.5309 GB, free: 13.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.5876, allocations: 303.2 kB / 0.5311 GB, free: 13.24 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/0.5925, allocations: 2.722 MB / 0.5338 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/0.5938, allocations: 1.231 MB / 0.535 GB, free: 9.211 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.594, allocations: 37.81 kB / 0.535 GB, free: 9.176 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001745/0.5941, allocations: 135.4 kB / 0.5352 GB, free: 9.043 MB / 410.7 MB Notification: Performance of SimCode: time 2.094e-06/0.5942, allocations: 3.938 kB / 0.5352 GB, free: 9.039 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04659/0.6408, allocations: 19.84 MB / 0.5545 GB, free: 5.016 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/0.6411, allocations: 141.9 kB / 0.5547 GB, free: 4.816 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.155/2.796, allocations: 0 / 0.5547 GB, free: 4.816 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat