Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH",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.001383/0.001383, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.697/1.697, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.0009351/0.0009349, allocations: 105.3 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.818e-05/1.82e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3595/0.4605, allocations: 82.51 MB / 470.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.4607, allocations: 71.95 kB / 470.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06041/0.5212, allocations: 30.92 MB / 0.4893 GB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5213, allocations: 0 / 0.4893 GB, free: 13.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.112e-05/0.5213, allocations: 19.94 kB / 0.4893 GB, free: 13.24 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.001761/0.5231, allocations: 1.323 MB / 0.4906 GB, free: 11.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.5231, allocations: 8.031 kB / 0.4906 GB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.5233, allocations: 134.4 kB / 0.4908 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007902/0.5241, allocations: 0.521 MB / 0.4913 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/0.5242, allocations: 19.98 kB / 0.4913 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/0.5243, allocations: 28 kB / 0.4913 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006625/0.525, allocations: 451.7 kB / 0.4917 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.5258, allocations: 0.5832 MB / 0.4923 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.5258, allocations: 0 / 0.4923 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.386e-05/0.5259, allocations: 15.98 kB / 0.4923 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.5259, allocations: 4 kB / 0.4923 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.5278, allocations: 1.129 MB / 0.4934 GB, free: 8.836 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007698/0.5285, allocations: 0.6742 MB / 0.4941 GB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007143/0.5293, allocations: 0.6647 MB / 0.4947 GB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.5293, allocations: 4 kB / 0.4947 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008881/0.5302, allocations: 0.7445 MB / 0.4955 GB, free: 6.695 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.914e-06/0.5302, allocations: 0 / 0.4955 GB, free: 6.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001629/0.5318, allocations: 1.092 MB / 0.4965 GB, free: 5.598 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/0.5321, allocations: 333 kB / 0.4969 GB, free: 5.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/0.5342, allocations: 1.555 MB / 0.4984 GB, free: 3.641 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.761e-05/0.5343, allocations: 41.7 kB / 0.4984 GB, free: 3.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.5346, allocations: 246.3 kB / 0.4987 GB, free: 3.348 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.5347, allocations: 71.17 kB / 0.4987 GB, free: 3.277 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/0.5348, allocations: 16 kB / 0.4987 GB, free: 3.262 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.535, allocations: 382.7 kB / 0.4991 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.5356, allocations: 431.8 kB / 0.4995 GB, free: 2.457 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005405/0.5361, allocations: 448.3 kB / 0.4999 GB, free: 2.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.5365, allocations: 303.7 kB / 0.5002 GB, free: 1.723 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5365, allocations: 0 / 0.5002 GB, free: 1.723 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001433/0.5379, allocations: 1.02 MB / 0.5012 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002309/0.5382, allocations: 293.5 kB / 0.5015 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.5382, allocations: 0 / 0.5015 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.5382, allocations: 3.953 kB / 0.5015 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.262e-05/0.5383, allocations: 7.938 kB / 0.5015 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.5383, allocations: 0 / 0.5015 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004102/0.5387, allocations: 43.95 kB / 0.5016 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.5389, allocations: 128.1 kB / 0.5017 GB, free: 184 kB / 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.0004566/0.5393, allocations: 463.6 kB / 0.5021 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001609/0.5409, allocations: 1.171 MB / 0.5033 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.5411, allocations: 134.5 kB / 0.5034 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006692/0.5418, allocations: 252.3 kB / 0.5036 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.5418, allocations: 4 kB / 0.5036 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.5418, allocations: 0 / 0.5036 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5418, allocations: 0 / 0.5036 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/0.5444, allocations: 2.021 MB / 0.5056 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5445, allocations: 0 / 0.5056 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.537e-05/0.5445, allocations: 3.953 kB / 0.5056 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5445, allocations: 0 / 0.5056 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.325e-05/0.5446, allocations: 39.97 kB / 0.5057 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.5446, allocations: 0 / 0.5057 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5446, allocations: 0 / 0.5057 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.5463, allocations: 1.273 MB / 0.5069 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/0.5473, allocations: 0.6785 MB / 0.5076 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.5475, allocations: 63.92 kB / 0.5076 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000376/0.5479, allocations: 35.91 kB / 0.5077 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005752/0.5485, allocations: 375.6 kB / 0.508 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000169/0.5487, allocations: 131.9 kB / 0.5081 GB, free: 9.402 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001846/0.5505, allocations: 1.275 MB / 0.5094 GB, free: 8.125 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5505, allocations: 4 kB / 0.5094 GB, free: 8.121 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005366/0.5511, allocations: 140 kB / 0.5095 GB, free: 7.984 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: 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.002093/0.5532, allocations: 1.923 MB / 0.5114 GB, free: 6.035 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.5552, allocations: 1.885 MB / 0.5132 GB, free: 4.051 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5552, allocations: 0 / 0.5132 GB, free: 4.051 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.5564, allocations: 1.413 MB / 0.5146 GB, free: 2.539 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.5576, allocations: 308.5 kB / 0.5149 GB, free: 2.246 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.5619, allocations: 2.726 MB / 0.5176 GB, free: 15.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009654/0.5629, allocations: 1.227 MB / 0.5188 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.563, allocations: 39.12 kB / 0.5188 GB, free: 14.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.5632, allocations: 131.4 kB / 0.5189 GB, free: 14.05 MB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5632, allocations: 0 / 0.5189 GB, free: 14.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0466/0.6098, allocations: 19.83 MB / 0.5383 GB, free: 9.988 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/0.61, allocations: 142 kB / 0.5384 GB, free: 9.789 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.097/2.707, allocations: 0 / 0.5384 GB, free: 9.789 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat