Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 221.3 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000825/0.000825, allocations: 95.78 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.874e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.09855, allocations: 50.4 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3077/0.4063, allocations: 83.23 MB / 477.6 MB, free: 4.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.4066, allocations: 75.95 kB / 477.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07229/0.4789, allocations: 39.16 MB / 0.5047 GB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.4789, allocations: 3.938 kB / 0.5047 GB, free: 13.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.198e-05/0.479, allocations: 23.94 kB / 0.5047 GB, free: 13.02 MB / 394.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.001389/0.4804, allocations: 1.319 MB / 0.506 GB, free: 11.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4805, allocations: 12.03 kB / 0.506 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.839e-05/0.4806, allocations: 62.55 kB / 0.5061 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001793/0.4808, allocations: 134.4 kB / 0.5062 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008193/0.4816, allocations: 0.5094 MB / 0.5067 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.4816, allocations: 23.98 kB / 0.5067 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.75e-05/0.4817, allocations: 28 kB / 0.5067 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009262/0.4827, allocations: 0.6183 MB / 0.5073 GB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4827, allocations: 0 / 0.5073 GB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-05/0.4828, allocations: 19.98 kB / 0.5074 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4828, allocations: 0 / 0.5074 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006466/0.4834, allocations: 475.7 kB / 0.5078 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.4853, allocations: 1.17 MB / 0.509 GB, free: 8.438 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007677/0.4861, allocations: 0.6899 MB / 0.5096 GB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007407/0.4868, allocations: 0.6803 MB / 0.5103 GB, free: 7.055 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.4868, allocations: 4 kB / 0.5103 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009226/0.4878, allocations: 0.7424 MB / 0.511 GB, free: 6.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.685e-06/0.4878, allocations: 0 / 0.511 GB, free: 6.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001936/0.4897, allocations: 1.418 MB / 0.5124 GB, free: 4.797 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001924/0.4899, allocations: 321 kB / 0.5127 GB, free: 4.422 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/0.4923, allocations: 1.619 MB / 0.5143 GB, free: 2.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.954e-05/0.4924, allocations: 49.62 kB / 0.5144 GB, free: 2.734 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.4926, allocations: 246.3 kB / 0.5146 GB, free: 2.488 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.4927, allocations: 87.08 kB / 0.5147 GB, free: 2.402 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.4928, allocations: 12 kB / 0.5147 GB, free: 2.391 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.493, allocations: 386.7 kB / 0.515 GB, free: 2.004 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.4935, allocations: 451.8 kB / 0.5155 GB, free: 1.562 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.4941, allocations: 447.8 kB / 0.5159 GB, free: 1.125 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005525/0.4947, allocations: 0.5839 MB / 0.5165 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4947, allocations: 0 / 0.5165 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001744/0.4964, allocations: 1.342 MB / 0.5178 GB, free: 15.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.4966, allocations: 297.5 kB / 0.5181 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4967, allocations: 0 / 0.5181 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4967, allocations: 4 kB / 0.5181 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.742e-05/0.4967, allocations: 0 / 0.5181 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.4967, allocations: 4 kB / 0.5181 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003919/0.4971, allocations: 43.88 kB / 0.5181 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.4973, allocations: 124.2 kB / 0.5182 GB, free: 14.58 MB / 410.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.0004057/0.4977, allocations: 471.6 kB / 0.5187 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.4979, allocations: 134.5 kB / 0.5188 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005508/0.4984, allocations: 256 kB / 0.5191 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.4985, allocations: 7.984 kB / 0.5191 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.4985, allocations: 0 / 0.5191 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4985, allocations: 0 / 0.5191 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/0.5014, allocations: 2.407 MB / 0.5214 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5014, allocations: 0 / 0.5214 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.144e-05/0.5014, allocations: 0 / 0.5214 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.5015, allocations: 4 kB / 0.5214 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-05/0.5015, allocations: 39.97 kB / 0.5215 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.5015, allocations: 0 / 0.5215 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5016, allocations: 0 / 0.5215 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.5035, allocations: 1.634 MB / 0.5231 GB, free: 9.406 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.5046, allocations: 0.6746 MB / 0.5237 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.5048, allocations: 59.97 kB / 0.5238 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.5052, allocations: 39.91 kB / 0.5238 GB, free: 8.613 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005542/0.5057, allocations: 375.6 kB / 0.5242 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001673/0.5059, allocations: 139.9 kB / 0.5243 GB, free: 8.109 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002018/0.5079, allocations: 1.332 MB / 0.5256 GB, free: 6.773 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5079, allocations: 3.938 kB / 0.5256 GB, free: 6.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005656/0.5085, allocations: 148 kB / 0.5257 GB, free: 6.625 MB / 410.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.002483/0.511, allocations: 2.265 MB / 0.528 GB, free: 4.281 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.513, allocations: 1.919 MB / 0.5298 GB, free: 2.266 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.513, allocations: 0 / 0.5298 GB, free: 2.266 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.5142, allocations: 1.429 MB / 0.5312 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.5156, allocations: 296.1 kB / 0.5315 GB, free: 468 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004953/0.5206, allocations: 2.752 MB / 0.5342 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009895/0.5216, allocations: 1.215 MB / 0.5354 GB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002213/0.5218, allocations: 49.42 kB / 0.5354 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.522, allocations: 147.3 kB / 0.5356 GB, free: 12.21 MB / 426.7 MB Notification: Performance of SimCode: time 2.455e-06/0.522, allocations: 0 / 0.5356 GB, free: 12.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2477/0.7697, allocations: 20.54 MB / 0.5556 GB, free: 128.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/0.7699, allocations: 151 kB / 0.5558 GB, free: 128.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.834, allocations: 3.562 kB / 0.5558 GB, free: 128.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat