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.001534/0.001535, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.409/1.409, allocations: 221.3 MB / 235.5 MB, free: 2.98 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.000941/0.0009412, allocations: 91.78 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.78e-05/3.798e-05, allocations: 0 / 343.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.0916, allocations: 50.42 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3071/0.3987, allocations: 83.18 MB / 477.5 MB, free: 4.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.399, allocations: 71.97 kB / 477.6 MB, free: 4.254 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05981/0.4588, allocations: 31.11 MB / 0.4968 GB, free: 5.199 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.4588, allocations: 4 kB / 0.4968 GB, free: 5.195 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.796e-05/0.4589, allocations: 15.94 kB / 0.4968 GB, free: 5.18 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.001848/0.4607, allocations: 1.327 MB / 0.4981 GB, free: 3.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.4608, allocations: 8.031 kB / 0.4981 GB, free: 3.742 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.461, allocations: 62.55 kB / 0.4982 GB, free: 3.672 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002154/0.4612, allocations: 134.4 kB / 0.4983 GB, free: 3.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008375/0.462, allocations: 0.5132 MB / 0.4988 GB, free: 2.977 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.4621, allocations: 24 kB / 0.4988 GB, free: 2.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.998e-05/0.4622, allocations: 28 kB / 0.4988 GB, free: 2.926 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000969/0.4632, allocations: 0.6183 MB / 0.4994 GB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.4632, allocations: 0 / 0.4994 GB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.4633, allocations: 16 kB / 0.4995 GB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.4633, allocations: 4 kB / 0.4995 GB, free: 2.281 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007116/0.464, allocations: 471.7 kB / 0.4999 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.4662, allocations: 1.174 MB / 0.5011 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008861/0.4671, allocations: 0.6898 MB / 0.5017 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008367/0.4679, allocations: 0.6842 MB / 0.5024 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.4679, allocations: 4 kB / 0.5024 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.469, allocations: 0.7369 MB / 0.5031 GB, free: 14.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 3.466e-06/0.469, allocations: 4 kB / 0.5031 GB, free: 14.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001903/0.471, allocations: 1.41 MB / 0.5045 GB, free: 12.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002184/0.4712, allocations: 333 kB / 0.5048 GB, free: 12.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002746/0.4739, allocations: 1.619 MB / 0.5064 GB, free: 10.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.957e-05/0.474, allocations: 41.7 kB / 0.5064 GB, free: 10.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.4743, allocations: 254.3 kB / 0.5067 GB, free: 10.63 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.4744, allocations: 75.16 kB / 0.5068 GB, free: 10.56 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.4744, allocations: 12 kB / 0.5068 GB, free: 10.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.4746, allocations: 382.7 kB / 0.5071 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005915/0.4752, allocations: 447.8 kB / 0.5076 GB, free: 9.727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.4758, allocations: 451.8 kB / 0.508 GB, free: 9.285 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/0.4764, allocations: 0.5838 MB / 0.5086 GB, free: 8.652 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4764, allocations: 0 / 0.5086 GB, free: 8.652 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001657/0.4781, allocations: 1.345 MB / 0.5099 GB, free: 7.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.4783, allocations: 297.5 kB / 0.5102 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4783, allocations: 0 / 0.5102 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.4783, allocations: 0 / 0.5102 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.734e-05/0.4783, allocations: 7.938 kB / 0.5102 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.4783, allocations: 3.984 kB / 0.5102 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.4787, allocations: 43.91 kB / 0.5102 GB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.4789, allocations: 128.2 kB / 0.5103 GB, free: 6.73 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: 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.0003631/0.4792, allocations: 467.7 kB / 0.5108 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.4794, allocations: 138.4 kB / 0.5109 GB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000484/0.4799, allocations: 248 kB / 0.5111 GB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.4799, allocations: 3.938 kB / 0.5112 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.4799, allocations: 0 / 0.5112 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.4799, allocations: 3.984 kB / 0.5112 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003009/0.4829, allocations: 2.396 MB / 0.5135 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.483, allocations: 7.953 kB / 0.5135 GB, free: 3.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.086e-05/0.483, allocations: 4 kB / 0.5135 GB, free: 3.305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.483, allocations: 0 / 0.5135 GB, free: 3.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-05/0.4831, allocations: 35.92 kB / 0.5135 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4831, allocations: 3.938 kB / 0.5135 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.4831, allocations: 0 / 0.5135 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.485, allocations: 1.634 MB / 0.5151 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/0.4861, allocations: 0.6785 MB / 0.5158 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001808/0.4863, allocations: 67.95 kB / 0.5159 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003501/0.4866, allocations: 39.88 kB / 0.5159 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000541/0.4872, allocations: 375.6 kB / 0.5163 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.4873, allocations: 131.9 kB / 0.5164 GB, free: 268 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00199/0.4893, allocations: 1.335 MB / 0.5177 GB, free: 14.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.363e-06/0.4894, allocations: 0 / 0.5177 GB, free: 14.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005075/0.4899, allocations: 151.9 kB / 0.5178 GB, free: 14.77 MB / 410.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.002304/0.4922, allocations: 2.267 MB / 0.5201 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.4941, allocations: 1.917 MB / 0.5219 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4941, allocations: 0 / 0.5219 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.4953, allocations: 1.429 MB / 0.5233 GB, free: 8.887 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.4966, allocations: 302.8 kB / 0.5236 GB, free: 8.602 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004754/0.5014, allocations: 2.748 MB / 0.5263 GB, free: 5.805 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/0.5025, allocations: 1.223 MB / 0.5275 GB, free: 4.551 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000158/0.5027, allocations: 42.69 kB / 0.5275 GB, free: 4.508 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.5028, allocations: 135.4 kB / 0.5277 GB, free: 4.375 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5028, allocations: 0 / 0.5277 GB, free: 4.375 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2305/0.7334, allocations: 20.54 MB / 0.5477 GB, free: 128.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.7336, allocations: 154.2 kB / 0.5479 GB, free: 127.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/2.933, allocations: 0 / 0.5479 GB, free: 127.8 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