Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009774/0.0009774, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000856/0.000856, allocations: 90.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.253e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3158/0.4159, allocations: 82.26 MB / 452.4 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.4162, allocations: 66.09 kB / 452.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05776/0.4739, allocations: 30.81 MB / 483.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.474, allocations: 4 kB / 483.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.474, allocations: 16 kB / 483.3 MB, free: 13.7 MB / 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.001325/0.4753, allocations: 1.319 MB / 484.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4754, allocations: 12.03 kB / 484.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.911e-05/0.4755, allocations: 54.55 kB / 484.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.4757, allocations: 138.4 kB / 484.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007582/0.4764, allocations: 0.5172 MB / 485.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/0.4765, allocations: 23.98 kB / 485.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.317e-05/0.4766, allocations: 28 kB / 485.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009072/0.4775, allocations: 0.6183 MB / 486 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.4775, allocations: 0 / 486 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.923e-05/0.4776, allocations: 12 kB / 486 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.4776, allocations: 4 kB / 486 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006542/0.4782, allocations: 473 kB / 486.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.4801, allocations: 1.186 MB / 487.6 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008359/0.4809, allocations: 0.6859 MB / 488.3 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.4817, allocations: 0.6764 MB / 489 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.4818, allocations: 0 / 489 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008973/0.4827, allocations: 0.7485 MB / 489.7 MB, free: 6.945 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.4827, allocations: 0 / 489.7 MB, free: 6.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001853/0.4845, allocations: 1.418 MB / 491.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000202/0.4847, allocations: 325 kB / 491.5 MB, free: 5.094 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00232/0.4871, allocations: 1.619 MB / 493.1 MB, free: 3.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.405e-05/0.4872, allocations: 49.62 kB / 493.2 MB, free: 3.406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.4874, allocations: 242.3 kB / 493.4 MB, free: 3.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.4875, allocations: 75.17 kB / 493.5 MB, free: 3.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.4876, allocations: 15.98 kB / 493.5 MB, free: 3.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.4878, allocations: 382.7 kB / 493.8 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.4884, allocations: 451.8 kB / 494.3 MB, free: 2.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005712/0.489, allocations: 459.5 kB / 494.7 MB, free: 1.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006027/0.4896, allocations: 0.5878 MB / 495.3 MB, free: 1.164 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.4896, allocations: 0 / 495.3 MB, free: 1.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001761/0.4914, allocations: 1.345 MB / 496.7 MB, free: 15.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002435/0.4917, allocations: 285.5 kB / 497 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.4917, allocations: 8 kB / 497 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.4917, allocations: 3.938 kB / 497 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.049e-05/0.4918, allocations: 3.984 kB / 497 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.4918, allocations: 0 / 497 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.4922, allocations: 43.97 kB / 497 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.4924, allocations: 128.2 kB / 497.1 MB, free: 15.25 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.0004461/0.4928, allocations: 463.6 kB / 497.6 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.493, allocations: 142.4 kB / 497.7 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006862/0.4937, allocations: 252 kB / 498 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.4937, allocations: 4 kB / 498 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4938, allocations: 0 / 498 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.4938, allocations: 0 / 498 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003315/0.4971, allocations: 2.403 MB / 0.4887 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.4971, allocations: 0 / 0.4887 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.388e-05/0.4971, allocations: 0 / 0.4887 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.4971, allocations: 4 kB / 0.4887 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.35e-05/0.4972, allocations: 39.97 kB / 0.4887 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.4973, allocations: 0 / 0.4887 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4973, allocations: 0 / 0.4887 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.4992, allocations: 1.63 MB / 0.4903 GB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.5004, allocations: 0.6785 MB / 0.4909 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.5006, allocations: 55.97 kB / 0.491 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.5009, allocations: 51.81 kB / 0.4911 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005895/0.5015, allocations: 375.6 kB / 0.4914 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/0.5017, allocations: 131.9 kB / 0.4915 GB, free: 8.781 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002003/0.5037, allocations: 1.335 MB / 0.4928 GB, free: 7.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5037, allocations: 3.938 kB / 0.4928 GB, free: 7.438 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004903/0.5042, allocations: 144 kB / 0.493 GB, free: 7.297 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) * 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.002519/0.5067, allocations: 2.277 MB / 0.4952 GB, free: 4.938 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.5089, allocations: 1.921 MB / 0.4971 GB, free: 2.918 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5089, allocations: 0 / 0.4971 GB, free: 2.918 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.5103, allocations: 1.434 MB / 0.4985 GB, free: 1.387 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.5116, allocations: 297 kB / 0.4988 GB, free: 1.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004578/0.5162, allocations: 2.745 MB / 0.5014 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.5172, allocations: 1.235 MB / 0.5026 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001694/0.5174, allocations: 37.45 kB / 0.5027 GB, free: 13 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.5175, allocations: 135.4 kB / 0.5028 GB, free: 12.87 MB / 394.7 MB Notification: Performance of SimCode: time 6.72e-07/0.5175, allocations: 0 / 0.5028 GB, free: 12.87 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.5521, allocations: 20.57 MB / 0.5229 GB, free: 7.906 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.5523, allocations: 153.4 kB / 0.523 GB, free: 7.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.722, allocations: 0 / 0.523 GB, free: 7.68 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat