Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL",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.001264/0.001263, allocations: 175.5 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.346/1.346, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0008907/0.0008908, allocations: 97.78 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.451e-05/2.453e-05, allocations: 8 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.4076, allocations: 82.9 MB / 477.2 MB, free: 4.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.4079, allocations: 67.97 kB / 477.3 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06423/0.4721, allocations: 33.78 MB / 0.4991 GB, free: 2.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4722, allocations: 0 / 0.4991 GB, free: 2.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.4722, allocations: 8 kB / 0.4991 GB, free: 2.773 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001001/0.4732, allocations: 1.008 MB / 0.5001 GB, free: 1.676 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.4733, allocations: 12.02 kB / 0.5001 GB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.758e-05/0.4733, allocations: 58.55 kB / 0.5002 GB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.4735, allocations: 90.97 kB / 0.5003 GB, free: 1.508 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005194/0.474, allocations: 407.6 kB / 0.5007 GB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/0.474, allocations: 20 kB / 0.5007 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.4741, allocations: 27.98 kB / 0.5007 GB, free: 1.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007181/0.4748, allocations: 495.1 kB / 0.5012 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.4749, allocations: 0 / 0.5012 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.301e-05/0.4749, allocations: 19.97 kB / 0.5012 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.669e-06/0.4749, allocations: 0 / 0.5012 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.4754, allocations: 368 kB / 0.5015 GB, free: 152 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.4768, allocations: 0.9261 MB / 0.5024 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/0.4774, allocations: 0.4986 MB / 0.5029 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/0.4779, allocations: 496.8 kB / 0.5034 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.4779, allocations: 7.953 kB / 0.5034 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006864/0.4786, allocations: 0.615 MB / 0.504 GB, free: 13.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.4786, allocations: 0 / 0.504 GB, free: 13.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.001467/0.4801, allocations: 1.145 MB / 0.5051 GB, free: 12.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.4803, allocations: 287.3 kB / 0.5054 GB, free: 11.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.4815, allocations: 1.019 MB / 0.5064 GB, free: 10.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.162e-05/0.4816, allocations: 45.62 kB / 0.5064 GB, free: 10.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.891e-05/0.4817, allocations: 138 kB / 0.5066 GB, free: 10.76 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.14e-05/0.4818, allocations: 67.17 kB / 0.5066 GB, free: 10.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.4818, allocations: 15.98 kB / 0.5067 GB, free: 10.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.4819, allocations: 338.8 kB / 0.507 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/0.4824, allocations: 351.7 kB / 0.5073 GB, free: 9.996 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.4828, allocations: 343.7 kB / 0.5076 GB, free: 9.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.4833, allocations: 495.7 kB / 0.5081 GB, free: 9.133 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4833, allocations: 0 / 0.5081 GB, free: 9.133 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001319/0.4847, allocations: 1.098 MB / 0.5092 GB, free: 7.984 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.4848, allocations: 247.8 kB / 0.5094 GB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.4848, allocations: 3.984 kB / 0.5094 GB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.4849, allocations: 4 kB / 0.5094 GB, free: 7.691 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.083e-05/0.4849, allocations: 0 / 0.5094 GB, free: 7.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.4849, allocations: 0 / 0.5094 GB, free: 7.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.4852, allocations: 43.88 kB / 0.5095 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.4853, allocations: 123.9 kB / 0.5096 GB, free: 7.527 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0003111/0.4856, allocations: 410 kB / 0.51 GB, free: 7.078 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.4858, allocations: 83.06 kB / 0.5101 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002177/0.486, allocations: 155.6 kB / 0.5102 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.486, allocations: 0 / 0.5102 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.486, allocations: 4 kB / 0.5102 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.486, allocations: 0 / 0.5102 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.4883, allocations: 1.942 MB / 0.5121 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4883, allocations: 0 / 0.5121 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.109e-05/0.4883, allocations: 3.953 kB / 0.5121 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4883, allocations: 0 / 0.5121 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.528e-05/0.4884, allocations: 31.98 kB / 0.5121 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.4884, allocations: 0 / 0.5121 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4884, allocations: 7.984 kB / 0.5122 GB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.4899, allocations: 1.353 MB / 0.5135 GB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007483/0.4907, allocations: 0.5543 MB / 0.514 GB, free: 2.762 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.4908, allocations: 67.86 kB / 0.5141 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.4911, allocations: 35.91 kB / 0.5141 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003603/0.4915, allocations: 235.7 kB / 0.5143 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/0.4916, allocations: 127.9 kB / 0.5145 GB, free: 2.305 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001047/0.4927, allocations: 0.85 MB / 0.5153 GB, free: 1.457 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4927, allocations: 7.938 kB / 0.5153 GB, free: 1.449 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003756/0.4931, allocations: 124 kB / 0.5154 GB, free: 1.328 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.00193/0.495, allocations: 1.993 MB / 0.5174 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.4965, allocations: 1.507 MB / 0.5188 GB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4965, allocations: 4 kB / 0.5188 GB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.4975, allocations: 1.141 MB / 0.52 GB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.4985, allocations: 266.8 kB / 0.5202 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.5013, allocations: 1.874 MB / 0.522 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006925/0.502, allocations: 1.031 MB / 0.523 GB, free: 9.207 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.5021, allocations: 41.48 kB / 0.5231 GB, free: 9.168 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.5022, allocations: 75.41 kB / 0.5232 GB, free: 9.094 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5022, allocations: 0 / 0.5232 GB, free: 9.094 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.5319, allocations: 15.42 MB / 0.5382 GB, free: 9.535 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/0.5321, allocations: 152.3 kB / 0.5384 GB, free: 9.312 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.465, allocations: 0 / 0.5384 GB, free: 9.312 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat