Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL",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.001259/0.001259, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.585/1.585, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009617/0.0009617, allocations: 106.8 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003162, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2874, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3983, allocations: 82.39 MB / 458.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.3986, allocations: 79.95 kB / 458.4 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07267/0.4713, allocations: 38.62 MB / 497 MB, free: 7.547 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4713, allocations: 0 / 497 MB, free: 7.547 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.949e-05/0.4714, allocations: 16 kB / 497 MB, free: 7.531 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.002223/0.4736, allocations: 1.523 MB / 498.5 MB, free: 5.902 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.4737, allocations: 11.97 kB / 498.6 MB, free: 5.891 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.4738, allocations: 58.55 kB / 498.6 MB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/0.4741, allocations: 130.4 kB / 498.7 MB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00092/0.475, allocations: 0.5094 MB / 499.2 MB, free: 5.137 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.262e-05/0.4751, allocations: 24 kB / 499.3 MB, free: 5.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.923e-05/0.4751, allocations: 28 kB / 499.3 MB, free: 5.086 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.4762, allocations: 0.6266 MB / 499.9 MB, free: 4.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4762, allocations: 4 kB / 499.9 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.005e-05/0.4763, allocations: 15.98 kB / 499.9 MB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.4763, allocations: 8 kB / 500 MB, free: 4.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006973/0.477, allocations: 483.6 kB / 0.4887 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.4793, allocations: 1.17 MB / 0.4898 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008542/0.4801, allocations: 0.7014 MB / 0.4905 GB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.4802, allocations: 4.094 kB / 0.4905 GB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009537/0.4811, allocations: 0.7561 MB / 0.4913 GB, free: 1.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.436e-06/0.4812, allocations: 0 / 0.4913 GB, free: 1.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.2053/0.6865, allocations: 2.133 MB / 0.4933 GB, free: 106.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000203/0.6867, allocations: 329.9 kB / 0.4937 GB, free: 105.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/0.6895, allocations: 1.638 MB / 0.4953 GB, free: 105.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.873e-05/0.6895, allocations: 45.7 kB / 0.4953 GB, free: 105.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.6898, allocations: 242.1 kB / 0.4955 GB, free: 105.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.6899, allocations: 69.55 kB / 0.4956 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.6899, allocations: 12.78 kB / 0.4956 GB, free: 105.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.6901, allocations: 383.7 kB / 0.496 GB, free: 104.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/0.6907, allocations: 450.5 kB / 0.4964 GB, free: 104.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000679/0.6914, allocations: 492.4 kB / 0.4969 GB, free: 104.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005771/0.692, allocations: 0.5831 MB / 0.4974 GB, free: 104.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.692, allocations: 1.188 kB / 0.4974 GB, free: 104.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001701/0.6937, allocations: 1.364 MB / 0.4988 GB, free: 104.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.6939, allocations: 293.2 kB / 0.4991 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.6939, allocations: 1.094 kB / 0.4991 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.694, allocations: 1.594 kB / 0.4991 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.913e-05/0.694, allocations: 6.906 kB / 0.4991 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.694, allocations: 1.469 kB / 0.4991 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.6944, allocations: 44.34 kB / 0.4991 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.6946, allocations: 123.5 kB / 0.4992 GB, free: 104 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.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.001093/0.6957, allocations: 0.994 MB / 0.5002 GB, free: 103.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.6958, allocations: 138.3 kB / 0.5003 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003468/0.6962, allocations: 248.7 kB / 0.5006 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.6962, allocations: 1.125 kB / 0.5006 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.6962, allocations: 3.844 kB / 0.5006 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.6962, allocations: 4.359 kB / 0.5006 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.6991, allocations: 2.421 MB / 0.5029 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6992, allocations: 0 / 0.5029 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.169e-05/0.6992, allocations: 3.969 kB / 0.5029 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.6992, allocations: 2.078 kB / 0.503 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.6993, allocations: 41.47 kB / 0.503 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.6993, allocations: 0 / 0.503 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.6993, allocations: 0 / 0.503 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.701, allocations: 1.659 MB / 0.5046 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009901/0.702, allocations: 0.672 MB / 0.5053 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.7022, allocations: 60.12 kB / 0.5053 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/0.7025, allocations: 41.36 kB / 0.5054 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005351/0.7031, allocations: 374.7 kB / 0.5057 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.7032, allocations: 133.5 kB / 0.5058 GB, free: 101.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001781/0.705, allocations: 1.348 MB / 0.5072 GB, free: 100.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.705, allocations: 7.594 kB / 0.5072 GB, free: 100.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005127/0.7056, allocations: 150.6 kB / 0.5073 GB, free: 100.9 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,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) * 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.002087/0.7076, allocations: 2.282 MB / 0.5095 GB, free: 99.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.7093, allocations: 1.938 MB / 0.5114 GB, free: 98.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.7094, allocations: 0 / 0.5114 GB, free: 98.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.7104, allocations: 1.442 MB / 0.5128 GB, free: 97.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.7115, allocations: 304.7 kB / 0.5131 GB, free: 97.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.7219, allocations: 7.145 MB / 0.5201 GB, free: 92.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009017/0.7228, allocations: 1.223 MB / 0.5213 GB, free: 91.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002533/0.7231, allocations: 43.98 kB / 0.5213 GB, free: 91.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.7232, allocations: 138 kB / 0.5215 GB, free: 91.69 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7232, allocations: 0 / 0.5215 GB, free: 91.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.7537, allocations: 20.56 MB / 0.5416 GB, free: 71.95 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/0.7539, allocations: 177.1 kB / 0.5417 GB, free: 71.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.264/3.018, allocations: 7.875 kB / 0.5417 GB, free: 71.7 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat