Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",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.001228/0.001228, allocations: 175.4 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.328/1.328, allocations: 221.4 MB / 235.5 MB, free: 2.879 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.000837/0.0008368, allocations: 95.84 kB / 286.5 MB, free: 168 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.303e-05/2.319e-05, allocations: 0 / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3177/0.4229, allocations: 82.86 MB / 477.2 MB, free: 4.621 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.4232, allocations: 71.97 kB / 477.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05081/0.474, allocations: 27.12 MB / 0.4926 GB, free: 9.492 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4741, allocations: 0 / 0.4926 GB, free: 9.492 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.4741, allocations: 16 kB / 0.4926 GB, free: 9.477 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.00105/0.4751, allocations: 0.9999 MB / 0.4936 GB, free: 8.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4752, allocations: 15.97 kB / 0.4936 GB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.313e-05/0.4753, allocations: 62.53 kB / 0.4936 GB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.4754, allocations: 87.02 kB / 0.4937 GB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.476, allocations: 411.6 kB / 0.4941 GB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.4761, allocations: 20 kB / 0.4941 GB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.4762, allocations: 23.98 kB / 0.4941 GB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007418/0.4769, allocations: 0.4913 MB / 0.4946 GB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.4769, allocations: 0 / 0.4946 GB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.894e-05/0.477, allocations: 12 kB / 0.4946 GB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.477, allocations: 4 kB / 0.4946 GB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004858/0.4775, allocations: 364 kB / 0.495 GB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.4788, allocations: 0.9301 MB / 0.4959 GB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005866/0.4794, allocations: 0.4953 MB / 0.4964 GB, free: 5.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005375/0.48, allocations: 496.9 kB / 0.4969 GB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.48, allocations: 0 / 0.4969 GB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007319/0.4807, allocations: 0.6266 MB / 0.4975 GB, free: 4.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.834e-06/0.4807, allocations: 4 kB / 0.4975 GB, free: 4.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001447/0.4822, allocations: 1.129 MB / 0.4986 GB, free: 3.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.4824, allocations: 283.3 kB / 0.4988 GB, free: 2.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.4837, allocations: 1.023 MB / 0.4998 GB, free: 1.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.581e-05/0.4838, allocations: 41.7 kB / 0.4999 GB, free: 1.617 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.4839, allocations: 149.9 kB / 0.5 GB, free: 1.465 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.895e-05/0.484, allocations: 63.36 kB / 0.5001 GB, free: 1.402 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.885e-05/0.484, allocations: 15.94 kB / 0.5001 GB, free: 1.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4842, allocations: 342.8 kB / 0.5004 GB, free: 1.043 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004824/0.4847, allocations: 351.7 kB / 0.5008 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/0.4851, allocations: 351.6 kB / 0.5011 GB, free: 364 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004839/0.4856, allocations: 491.7 kB / 0.5016 GB, free: 15.83 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4856, allocations: 0 / 0.5016 GB, free: 15.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001362/0.487, allocations: 1.098 MB / 0.5026 GB, free: 14.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001787/0.4872, allocations: 247.9 kB / 0.5029 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4872, allocations: 0 / 0.5029 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.4872, allocations: 0 / 0.5029 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.753e-05/0.4873, allocations: 3.984 kB / 0.5029 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.4873, allocations: 4 kB / 0.5029 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.4876, allocations: 39.88 kB / 0.5029 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.4878, allocations: 123.9 kB / 0.503 GB, free: 14.23 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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.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.0003599/0.4882, allocations: 418 kB / 0.5034 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.4883, allocations: 91.02 kB / 0.5035 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.4885, allocations: 143.7 kB / 0.5037 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4886, allocations: 4 kB / 0.5037 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4886, allocations: 4 kB / 0.5037 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.4886, allocations: 0 / 0.5037 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.4909, allocations: 1.934 MB / 0.5056 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.4909, allocations: 0 / 0.5056 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.007e-06/0.4909, allocations: 3.938 kB / 0.5056 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.4909, allocations: 8 kB / 0.5056 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.261e-05/0.491, allocations: 31.98 kB / 0.5056 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.491, allocations: 0 / 0.5056 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.491, allocations: 4 kB / 0.5056 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.4926, allocations: 1.354 MB / 0.5069 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008007/0.4934, allocations: 0.5582 MB / 0.5075 GB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.4936, allocations: 51.97 kB / 0.5075 GB, free: 9.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.4939, allocations: 43.81 kB / 0.5076 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003637/0.4943, allocations: 239.7 kB / 0.5078 GB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/0.4944, allocations: 128 kB / 0.5079 GB, free: 9.008 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001117/0.4955, allocations: 0.85 MB / 0.5087 GB, free: 8.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4955, allocations: 0 / 0.5087 GB, free: 8.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004325/0.496, allocations: 124 kB / 0.5089 GB, free: 8.039 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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.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.002044/0.498, allocations: 1.993 MB / 0.5108 GB, free: 5.977 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.4996, allocations: 1.519 MB / 0.5123 GB, free: 4.371 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4996, allocations: 0 / 0.5123 GB, free: 4.371 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.5006, allocations: 1.14 MB / 0.5134 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.5017, allocations: 264 kB / 0.5137 GB, free: 2.898 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.5047, allocations: 1.873 MB / 0.5155 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000717/0.5054, allocations: 1.035 MB / 0.5165 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.5056, allocations: 37.5 kB / 0.5165 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.93e-05/0.5057, allocations: 75.41 kB / 0.5166 GB, free: 15.8 MB / 410.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5057, allocations: 0 / 0.5166 GB, free: 15.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.5348, allocations: 15.41 MB / 0.5317 GB, free: 256 kB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.535, allocations: 146.1 kB / 0.5318 GB, free: 28 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.476, allocations: 0 / 0.5318 GB, free: 28 kB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat