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.001805/0.001805, allocations: 184.9 kB / 16.39 MB, free: 5.758 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.368/1.368, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009283, allocations: 91.02 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002837, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.247, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09425/0.3413, allocations: 83.24 MB / 484.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.3416, allocations: 68.69 kB / 484.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2872/0.6289, allocations: 30.94 MB / 0.5037 GB, free: 95.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6289, allocations: 0.75 kB / 0.5037 GB, free: 95.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.215e-05/0.629, allocations: 17.66 kB / 0.5038 GB, free: 95.6 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.001774/0.6308, allocations: 1.529 MB / 0.5053 GB, free: 94.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.6308, allocations: 9.625 kB / 0.5053 GB, free: 94.58 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.572e-05/0.6309, allocations: 63.31 kB / 0.5053 GB, free: 94.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.6311, allocations: 132.5 kB / 0.5055 GB, free: 94.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000831/0.6319, allocations: 0.5189 MB / 0.506 GB, free: 94.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/0.632, allocations: 18.5 kB / 0.506 GB, free: 94.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.317e-05/0.6321, allocations: 38.16 kB / 0.506 GB, free: 94.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.6333, allocations: 0.6132 MB / 0.5066 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.6333, allocations: 4.375 kB / 0.5066 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/0.6334, allocations: 21.77 kB / 0.5066 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.6334, allocations: 3.156 kB / 0.5066 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007261/0.6341, allocations: 479 kB / 0.5071 GB, free: 94.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.6364, allocations: 1.176 MB / 0.5082 GB, free: 93.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007212/0.6372, allocations: 0.6917 MB / 0.5089 GB, free: 93.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.6372, allocations: 10.83 kB / 0.5089 GB, free: 93.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007711/0.638, allocations: 0.744 MB / 0.5097 GB, free: 93.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.896e-06/0.638, allocations: 0 / 0.5097 GB, free: 93.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002308/0.6403, allocations: 2.144 MB / 0.5118 GB, free: 92.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001654/0.6405, allocations: 327.3 kB / 0.5121 GB, free: 92.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.6425, allocations: 1.639 MB / 0.5137 GB, free: 92.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.659e-05/0.6426, allocations: 40.55 kB / 0.5137 GB, free: 92.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.6428, allocations: 248.1 kB / 0.5139 GB, free: 91.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.6429, allocations: 73.44 kB / 0.514 GB, free: 91.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.643, allocations: 11.69 kB / 0.514 GB, free: 91.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.6431, allocations: 387.4 kB / 0.5144 GB, free: 91.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005362/0.6437, allocations: 451.4 kB / 0.5148 GB, free: 91.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/0.6442, allocations: 481.3 kB / 0.5153 GB, free: 91.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005241/0.6448, allocations: 0.5933 MB / 0.5159 GB, free: 90.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.6448, allocations: 0 / 0.5159 GB, free: 90.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001476/0.6463, allocations: 1.35 MB / 0.5172 GB, free: 90.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.6464, allocations: 297 kB / 0.5175 GB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.6464, allocations: 3.562 kB / 0.5175 GB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.6465, allocations: 3.531 kB / 0.5175 GB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.737e-05/0.6465, allocations: 3.797 kB / 0.5175 GB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.6465, allocations: 7.516 kB / 0.5175 GB, free: 89.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003624/0.6469, allocations: 47.94 kB / 0.5175 GB, free: 89.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.647, allocations: 125.8 kB / 0.5176 GB, free: 89.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.001017/0.648, allocations: 0.9919 MB / 0.5186 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.6482, allocations: 138.9 kB / 0.5187 GB, free: 89.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003465/0.6486, allocations: 253.5 kB / 0.519 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.6486, allocations: 3.625 kB / 0.519 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6486, allocations: 4 kB / 0.519 GB, free: 89.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.6486, allocations: 3.609 kB / 0.519 GB, free: 89.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/0.6511, allocations: 2.411 MB / 0.5214 GB, free: 87.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.6511, allocations: 0 / 0.5214 GB, free: 87.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.116e-05/0.6511, allocations: 3.25 kB / 0.5214 GB, free: 87.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.6511, allocations: 0 / 0.5214 GB, free: 87.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.942e-05/0.6512, allocations: 40.31 kB / 0.5214 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.6512, allocations: 0 / 0.5214 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.6512, allocations: 7.25 kB / 0.5214 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/0.6529, allocations: 1.655 MB / 0.523 GB, free: 86.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000968/0.6539, allocations: 0.6768 MB / 0.5237 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.6541, allocations: 66.62 kB / 0.5237 GB, free: 86.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003294/0.6544, allocations: 42.61 kB / 0.5238 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004842/0.6549, allocations: 373.8 kB / 0.5241 GB, free: 85.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.6551, allocations: 138.4 kB / 0.5243 GB, free: 85.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001536/0.6566, allocations: 1.346 MB / 0.5256 GB, free: 84.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6566, allocations: 0 / 0.5256 GB, free: 84.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004873/0.6571, allocations: 148 kB / 0.5257 GB, free: 84.43 MB / 378.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) * Number of clocked states: 0 () * 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.001958/0.6591, allocations: 2.284 MB / 0.528 GB, free: 82.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.6607, allocations: 1.939 MB / 0.5298 GB, free: 80.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.6607, allocations: 0 / 0.5298 GB, free: 80.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009708/0.6617, allocations: 1.436 MB / 0.5313 GB, free: 78.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.6627, allocations: 292.3 kB / 0.5315 GB, free: 78.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008552/0.6713, allocations: 7.169 MB / 0.5385 GB, free: 72.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008908/0.6722, allocations: 1.219 MB / 0.5397 GB, free: 70.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002451/0.6725, allocations: 45.98 kB / 0.5398 GB, free: 70.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.6726, allocations: 135.4 kB / 0.5399 GB, free: 70.64 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.6726, allocations: 0 / 0.5399 GB, free: 70.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.704, allocations: 20.57 MB / 0.56 GB, free: 50.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002601/0.7043, allocations: 185 kB / 0.5602 GB, free: 49.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/2.925, allocations: 0 / 0.5602 GB, free: 49.91 MB / 378.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