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.001028/0.001028, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008677/0.0008675, allocations: 101.8 kB / 297.3 MB, free: 6.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002285/0.0002286, allocations: 8 kB / 358 MB, free: 9.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.181, allocations: 51.48 MB / 409.5 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08731/0.2684, allocations: 84.07 MB / 493.6 MB, free: 6.582 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.2686, allocations: 68.69 kB / 493.6 MB, free: 6.516 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2051/0.4737, allocations: 31.02 MB / 0.5123 GB, free: 93.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4737, allocations: 0 / 0.5123 GB, free: 93.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.254e-05/0.4738, allocations: 15.78 kB / 0.5124 GB, free: 93.2 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.001441/0.4752, allocations: 1.517 MB / 0.5138 GB, free: 92.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.4753, allocations: 10.53 kB / 0.5139 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.4754, allocations: 58.95 kB / 0.5139 GB, free: 92.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.4755, allocations: 141 kB / 0.514 GB, free: 91.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006614/0.4762, allocations: 0.5169 MB / 0.5145 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.4762, allocations: 23.88 kB / 0.5146 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.4763, allocations: 33.97 kB / 0.5146 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007723/0.4771, allocations: 0.6199 MB / 0.5152 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.4771, allocations: 3.844 kB / 0.5152 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.4772, allocations: 17.12 kB / 0.5152 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.4772, allocations: 7.828 kB / 0.5152 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005609/0.4777, allocations: 478.3 kB / 0.5157 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.4794, allocations: 1.168 MB / 0.5168 GB, free: 91.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006297/0.48, allocations: 0.6971 MB / 0.5175 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.48, allocations: 0 / 0.5175 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006939/0.4807, allocations: 0.7578 MB / 0.5183 GB, free: 90.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.883e-06/0.4807, allocations: 0 / 0.5183 GB, free: 90.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002077/0.4828, allocations: 2.132 MB / 0.5203 GB, free: 88.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.4829, allocations: 334.2 kB / 0.5207 GB, free: 88.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/0.4848, allocations: 1.633 MB / 0.5223 GB, free: 87.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/0.4849, allocations: 42.7 kB / 0.5223 GB, free: 87.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.485, allocations: 248.9 kB / 0.5225 GB, free: 87.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.307e-05/0.4851, allocations: 73.11 kB / 0.5226 GB, free: 87.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.4852, allocations: 7.031 kB / 0.5226 GB, free: 87.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.4853, allocations: 389.1 kB / 0.523 GB, free: 86.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005189/0.4858, allocations: 448.2 kB / 0.5234 GB, free: 86.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.4863, allocations: 482.2 kB / 0.5239 GB, free: 86.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.4868, allocations: 0.6033 MB / 0.5245 GB, free: 85.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4868, allocations: 0 / 0.5245 GB, free: 85.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001329/0.4881, allocations: 1.353 MB / 0.5258 GB, free: 84.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4882, allocations: 293.5 kB / 0.5261 GB, free: 83.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4883, allocations: 0 / 0.5261 GB, free: 83.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.4883, allocations: 4 kB / 0.5261 GB, free: 83.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.033e-05/0.4883, allocations: 0 / 0.5261 GB, free: 83.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.4883, allocations: 7.953 kB / 0.5261 GB, free: 83.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.4886, allocations: 51.88 kB / 0.5261 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.4888, allocations: 131.5 kB / 0.5262 GB, free: 83.73 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: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.000901/0.4897, allocations: 0.9935 MB / 0.5272 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.4898, allocations: 134.4 kB / 0.5273 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000328/0.4901, allocations: 255.9 kB / 0.5276 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4901, allocations: 0 / 0.5276 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4902, allocations: 0 / 0.5276 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.4902, allocations: 7.953 kB / 0.5276 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.4925, allocations: 2.416 MB / 0.5299 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4925, allocations: 0 / 0.5299 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-06/0.4926, allocations: 4 kB / 0.53 GB, free: 79.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.4926, allocations: 0 / 0.53 GB, free: 79.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.596e-05/0.4926, allocations: 35.97 kB / 0.53 GB, free: 79.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4926, allocations: 0 / 0.53 GB, free: 79.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4927, allocations: 3.953 kB / 0.53 GB, free: 79.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.4942, allocations: 1.653 MB / 0.5316 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008834/0.4951, allocations: 0.6785 MB / 0.5323 GB, free: 77.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.4953, allocations: 63.95 kB / 0.5323 GB, free: 77.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.4956, allocations: 39.81 kB / 0.5324 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004341/0.4961, allocations: 379.6 kB / 0.5327 GB, free: 76.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.4962, allocations: 137.5 kB / 0.5329 GB, free: 76.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001497/0.4977, allocations: 1.345 MB / 0.5342 GB, free: 75.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4977, allocations: 4 kB / 0.5342 GB, free: 75.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004472/0.4982, allocations: 148 kB / 0.5343 GB, free: 75.21 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: 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) * Number of clocked states: 0 () * 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.001889/0.5, allocations: 2.286 MB / 0.5366 GB, free: 72.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.5016, allocations: 1.935 MB / 0.5384 GB, free: 70.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5016, allocations: 0 / 0.5384 GB, free: 70.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009201/0.5026, allocations: 1.444 MB / 0.5399 GB, free: 69.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000974/0.5036, allocations: 307.7 kB / 0.5401 GB, free: 69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008621/0.5122, allocations: 7.169 MB / 0.5471 GB, free: 61.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008018/0.513, allocations: 1.215 MB / 0.5483 GB, free: 60.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.5132, allocations: 37.5 kB / 0.5484 GB, free: 60.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.5133, allocations: 139.4 kB / 0.5485 GB, free: 60.34 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5133, allocations: 0 / 0.5485 GB, free: 60.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.5395, allocations: 20.54 MB / 0.5686 GB, free: 39.76 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000113/0.5396, allocations: 181 kB / 0.5687 GB, free: 39.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/2.592, allocations: 0 / 0.5687 GB, free: 39.51 MB / 378.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