Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL",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.0008939/0.0008939, allocations: 176.2 kB / 8.348 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.34/1.34, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.00101/0.00101, allocations: 102.6 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.061e-05, allocations: 4 kB / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 50.42 MB / 387.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3324/0.4411, allocations: 82.56 MB / 470.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.4413, allocations: 67.97 kB / 470.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07496/0.5163, allocations: 38.94 MB / 0.4972 GB, free: 5.223 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5164, allocations: 0 / 0.4972 GB, free: 5.223 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.625e-05/0.5164, allocations: 20 kB / 0.4972 GB, free: 5.203 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.001874/0.5183, allocations: 1.327 MB / 0.4985 GB, free: 3.773 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.417e-05/0.5184, allocations: 8.031 kB / 0.4985 GB, free: 3.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/0.5186, allocations: 138.4 kB / 0.4986 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008666/0.5195, allocations: 0.5094 MB / 0.4991 GB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-05/0.5196, allocations: 15.94 kB / 0.4992 GB, free: 3.055 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.649e-05/0.5196, allocations: 28 kB / 0.4992 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007082/0.5204, allocations: 447.8 kB / 0.4996 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008857/0.5213, allocations: 0.5909 MB / 0.5002 GB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.5213, allocations: 4 kB / 0.5002 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.59e-05/0.5214, allocations: 16 kB / 0.5002 GB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.5214, allocations: 3.953 kB / 0.5002 GB, free: 1.969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.5234, allocations: 1.125 MB / 0.5013 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008031/0.5242, allocations: 0.678 MB / 0.502 GB, free: 116 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007535/0.5249, allocations: 0.6608 MB / 0.5026 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.525, allocations: 7.984 kB / 0.5026 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000919/0.5259, allocations: 0.7329 MB / 0.5033 GB, free: 14.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/0.5259, allocations: 0 / 0.5033 GB, free: 14.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001651/0.5276, allocations: 1.1 MB / 0.5044 GB, free: 13.56 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002196/0.5278, allocations: 321 kB / 0.5047 GB, free: 13.19 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002228/0.53, allocations: 1.555 MB / 0.5062 GB, free: 11.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.831e-05/0.5301, allocations: 45.69 kB / 0.5063 GB, free: 11.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002699/0.5304, allocations: 246.3 kB / 0.5065 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.5305, allocations: 83.16 kB / 0.5066 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.5306, allocations: 15.98 kB / 0.5066 GB, free: 11.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002277/0.5308, allocations: 382.7 kB / 0.507 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006447/0.5315, allocations: 439.8 kB / 0.5074 GB, free: 10.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005895/0.5321, allocations: 436.4 kB / 0.5078 GB, free: 9.988 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.5325, allocations: 291.8 kB / 0.5081 GB, free: 9.703 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.5326, allocations: 3.953 kB / 0.5081 GB, free: 9.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001619/0.5342, allocations: 1.024 MB / 0.5091 GB, free: 8.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002541/0.5345, allocations: 293.5 kB / 0.5094 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.5345, allocations: 0 / 0.5094 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.5345, allocations: 0 / 0.5094 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.214e-05/0.5345, allocations: 8 kB / 0.5094 GB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.5345, allocations: 0 / 0.5094 GB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.535, allocations: 39.88 kB / 0.5094 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/0.5351, allocations: 132.2 kB / 0.5095 GB, free: 8.156 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.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.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.000453/0.5356, allocations: 459.7 kB / 0.51 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001713/0.5373, allocations: 1.175 MB / 0.5111 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.5375, allocations: 134.4 kB / 0.5113 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007658/0.5383, allocations: 256.3 kB / 0.5115 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.5383, allocations: 0 / 0.5115 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/0.5383, allocations: 7.922 kB / 0.5115 GB, free: 6.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.5383, allocations: 0 / 0.5115 GB, free: 6.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002836/0.5412, allocations: 2.009 MB / 0.5135 GB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5412, allocations: 0 / 0.5135 GB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.456e-05/0.5412, allocations: 3.984 kB / 0.5135 GB, free: 4.008 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.5412, allocations: 4 kB / 0.5135 GB, free: 4.004 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.606e-05/0.5413, allocations: 35.98 kB / 0.5135 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5413, allocations: 0 / 0.5135 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5413, allocations: 0 / 0.5135 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.543, allocations: 1.281 MB / 0.5148 GB, free: 2.668 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.5441, allocations: 0.6747 MB / 0.5154 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/0.5443, allocations: 59.97 kB / 0.5155 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003769/0.5447, allocations: 47.95 kB / 0.5155 GB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006125/0.5453, allocations: 379.5 kB / 0.5159 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/0.5455, allocations: 131.9 kB / 0.516 GB, free: 1.367 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001885/0.5474, allocations: 1.267 MB / 0.5172 GB, free: 100 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5474, allocations: 0 / 0.5172 GB, free: 100 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005458/0.5479, allocations: 144 kB / 0.5174 GB, free: 15.95 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,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.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.002108/0.55, allocations: 1.923 MB / 0.5193 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.552, allocations: 1.874 MB / 0.5211 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.552, allocations: 0 / 0.5211 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.5532, allocations: 1.413 MB / 0.5225 GB, free: 10.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.5544, allocations: 311.3 kB / 0.5228 GB, free: 10.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004555/0.559, allocations: 2.726 MB / 0.5254 GB, free: 7.445 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.5602, allocations: 1.231 MB / 0.5266 GB, free: 6.188 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001973/0.5604, allocations: 37.83 kB / 0.5267 GB, free: 6.148 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.5606, allocations: 135.4 kB / 0.5268 GB, free: 6.016 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5606, allocations: 0 / 0.5268 GB, free: 6.016 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0444/0.605, allocations: 19.84 MB / 0.5462 GB, free: 1.957 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.6053, allocations: 145.9 kB / 0.5463 GB, free: 1.754 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/2.794, allocations: 0 / 0.5463 GB, free: 1.754 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat