Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL",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.001488/0.001488, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007865/0.0007867, allocations: 82.72 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.767e-05/1.762e-05, allocations: 8 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08822, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4312, allocations: 81.56 MB / 444.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.4316, allocations: 64.22 kB / 444.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06389/0.4955, allocations: 33.21 MB / 478 MB, free: 2.738 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4955, allocations: 0 / 478 MB, free: 2.738 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.232e-05/0.4956, allocations: 8 kB / 478 MB, free: 2.73 MB / 346.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.001284/0.4969, allocations: 1.012 MB / 479 MB, free: 1.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.4969, allocations: 8.031 kB / 479 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.4971, allocations: 90.92 kB / 479.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000628/0.4977, allocations: 411.7 kB / 479.5 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.4978, allocations: 15.98 kB / 479.5 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.247e-05/0.4978, allocations: 20 kB / 479.6 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005114/0.4983, allocations: 344.1 kB / 479.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006931/0.499, allocations: 478.3 kB / 480.4 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.4991, allocations: 0 / 480.4 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.62e-05/0.4991, allocations: 16 kB / 480.4 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.4991, allocations: 7.953 kB / 480.4 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.5005, allocations: 0.891 MB / 481.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005681/0.5011, allocations: 490.6 kB / 481.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005182/0.5016, allocations: 476.9 kB / 482.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.5017, allocations: 4 kB / 482.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007307/0.5024, allocations: 0.6344 MB / 482.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 1.754e-06/0.5024, allocations: 0 / 482.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001336/0.5038, allocations: 0.8674 MB / 483.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.5039, allocations: 283.3 kB / 484 MB, free: 12.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.5052, allocations: 0.9761 MB / 485 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.689e-05/0.5053, allocations: 45.69 kB / 485 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.5054, allocations: 145.9 kB / 485.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.69e-05/0.5055, allocations: 67.27 kB / 485.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.5055, allocations: 15.98 kB / 485.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5057, allocations: 338.9 kB / 485.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000437/0.5061, allocations: 335.8 kB / 485.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.5065, allocations: 331.8 kB / 486.2 MB, free: 10.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.5069, allocations: 240 kB / 486.5 MB, free: 9.957 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.5069, allocations: 0 / 486.5 MB, free: 9.957 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001192/0.5081, allocations: 0.8287 MB / 487.3 MB, free: 9.121 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.5083, allocations: 243.9 kB / 487.5 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.5083, allocations: 4 kB / 487.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.5083, allocations: 4 kB / 487.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-05/0.5083, allocations: 0 / 487.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.5083, allocations: 0 / 487.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.5087, allocations: 39.81 kB / 487.6 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.5088, allocations: 131.9 kB / 487.7 MB, free: 8.664 MB / 362.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.0003815/0.5092, allocations: 406 kB / 488.1 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001402/0.5106, allocations: 0.965 MB / 489.1 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.5108, allocations: 83.06 kB / 489.1 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004312/0.5112, allocations: 148 kB / 489.3 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.5112, allocations: 0 / 489.3 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.5112, allocations: 4 kB / 489.3 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.5112, allocations: 0 / 489.3 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.5135, allocations: 1.599 MB / 490.9 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.5135, allocations: 0 / 490.9 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.378e-05/0.5135, allocations: 8 kB / 490.9 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.5136, allocations: 0 / 490.9 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.514e-05/0.5136, allocations: 35.92 kB / 490.9 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5136, allocations: 0 / 490.9 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5136, allocations: 3.984 kB / 490.9 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.5152, allocations: 1.057 MB / 492 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008747/0.5161, allocations: 0.562 MB / 492.6 MB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.5163, allocations: 59.95 kB / 492.6 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.5166, allocations: 35.97 kB / 492.7 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004129/0.517, allocations: 231.8 kB / 492.9 MB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/0.5172, allocations: 131.9 kB / 493 MB, free: 3.211 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001141/0.5183, allocations: 0.8109 MB / 493.8 MB, free: 2.406 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.5183, allocations: 0 / 493.8 MB, free: 2.406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005075/0.5189, allocations: 120 kB / 493.9 MB, free: 2.289 MB / 362.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.001879/0.5207, allocations: 1.695 MB / 495.6 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.5223, allocations: 1.48 MB / 497.1 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5223, allocations: 4 kB / 497.1 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.5234, allocations: 1.117 MB / 498.2 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.5245, allocations: 263.6 kB / 498.5 MB, free: 13.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.5276, allocations: 1.854 MB / 0.4886 GB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007637/0.5284, allocations: 1.035 MB / 0.4896 GB, free: 10.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.5286, allocations: 33.83 kB / 0.4897 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.5287, allocations: 71.41 kB / 0.4897 GB, free: 10.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5287, allocations: 0 / 0.4897 GB, free: 10.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03838/0.5671, allocations: 14.77 MB / 0.5041 GB, free: 11.43 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003117/0.5675, allocations: 127.7 kB / 0.5043 GB, free: 11.25 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.636, allocations: 0 / 0.5043 GB, free: 11.25 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat