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.001664/0.001664, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.399/1.399, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0008384/0.0008385, allocations: 96.25 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002867, allocations: 15.92 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2596, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3658, allocations: 83.31 MB / 484.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.366, allocations: 69.06 kB / 484.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2569/0.6229, allocations: 38.97 MB / 0.5116 GB, free: 96.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.623, allocations: 0 / 0.5116 GB, free: 96.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.218e-05/0.623, allocations: 15.16 kB / 0.5116 GB, free: 96.11 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.001744/0.6248, allocations: 1.521 MB / 0.5131 GB, free: 95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.6248, allocations: 19.75 kB / 0.5132 GB, free: 95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.625, allocations: 55.12 kB / 0.5132 GB, free: 94.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.6251, allocations: 137.8 kB / 0.5133 GB, free: 94.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007847/0.6259, allocations: 0.5162 MB / 0.5138 GB, free: 94.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.626, allocations: 21.44 kB / 0.5139 GB, free: 94.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.875e-05/0.6261, allocations: 29.7 kB / 0.5139 GB, free: 94.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008443/0.6269, allocations: 0.6217 MB / 0.5145 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.6269, allocations: 0 / 0.5145 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.627, allocations: 18.75 kB / 0.5145 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.627, allocations: 7.188 kB / 0.5145 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005786/0.6276, allocations: 478.5 kB / 0.515 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.6296, allocations: 1.17 MB / 0.5161 GB, free: 94.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.6303, allocations: 0.7026 MB / 0.5168 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.6303, allocations: 112 / 0.5168 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007701/0.6311, allocations: 0.7504 MB / 0.5175 GB, free: 93.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.214e-06/0.6311, allocations: 3.188 kB / 0.5175 GB, free: 93.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00223/0.6333, allocations: 2.126 MB / 0.5196 GB, free: 92.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.6335, allocations: 332.7 kB / 0.5199 GB, free: 91.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/0.6358, allocations: 1.637 MB / 0.5215 GB, free: 90.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.6359, allocations: 48.38 kB / 0.5216 GB, free: 90.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.6362, allocations: 234.4 kB / 0.5218 GB, free: 90.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.6363, allocations: 86.95 kB / 0.5219 GB, free: 90.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/0.6364, allocations: 14.75 kB / 0.5219 GB, free: 90.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.6365, allocations: 381.1 kB / 0.5223 GB, free: 90.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005461/0.637, allocations: 457.8 kB / 0.5227 GB, free: 89.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.6376, allocations: 486.3 kB / 0.5232 GB, free: 89.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004852/0.6381, allocations: 0.5872 MB / 0.5237 GB, free: 88.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.6381, allocations: 0 / 0.5237 GB, free: 88.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001451/0.6396, allocations: 1.358 MB / 0.5251 GB, free: 87.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.6397, allocations: 285.5 kB / 0.5253 GB, free: 86.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.6397, allocations: 7.938 kB / 0.5253 GB, free: 86.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.6398, allocations: 0 / 0.5253 GB, free: 86.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.757e-05/0.6398, allocations: 16.05 kB / 0.5254 GB, free: 86.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.6398, allocations: 0 / 0.5254 GB, free: 86.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.6402, allocations: 43.62 kB / 0.5254 GB, free: 86.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.6403, allocations: 132.2 kB / 0.5255 GB, free: 86.7 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.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.001128/0.6415, allocations: 0.9878 MB / 0.5265 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.6416, allocations: 134.4 kB / 0.5266 GB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000451/0.6421, allocations: 251.9 kB / 0.5269 GB, free: 85.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.6421, allocations: 4 kB / 0.5269 GB, free: 85.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.6421, allocations: 0 / 0.5269 GB, free: 85.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6421, allocations: 3.984 kB / 0.5269 GB, free: 85.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.6448, allocations: 2.421 MB / 0.5292 GB, free: 82.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.6449, allocations: 0 / 0.5292 GB, free: 82.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.054e-05/0.6449, allocations: 4 kB / 0.5292 GB, free: 82.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.6449, allocations: 0 / 0.5292 GB, free: 82.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/0.645, allocations: 31.98 kB / 0.5293 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.645, allocations: 6.5 kB / 0.5293 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.645, allocations: 4 kB / 0.5293 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.6466, allocations: 1.657 MB / 0.5309 GB, free: 80.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009498/0.6476, allocations: 0.6746 MB / 0.5316 GB, free: 80.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.6477, allocations: 59.97 kB / 0.5316 GB, free: 80.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.6481, allocations: 39.95 kB / 0.5316 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004482/0.6485, allocations: 375.4 kB / 0.532 GB, free: 79.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.6487, allocations: 136.2 kB / 0.5321 GB, free: 79.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001685/0.6504, allocations: 1.349 MB / 0.5335 GB, free: 78.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6504, allocations: 0 / 0.5335 GB, free: 78.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005177/0.6509, allocations: 151.9 kB / 0.5336 GB, free: 78.18 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,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) * 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.001991/0.6529, allocations: 2.294 MB / 0.5358 GB, free: 75.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.6547, allocations: 1.932 MB / 0.5377 GB, free: 73.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.6547, allocations: 0 / 0.5377 GB, free: 73.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.6558, allocations: 1.444 MB / 0.5391 GB, free: 72.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.6569, allocations: 306 kB / 0.5394 GB, free: 71.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.667, allocations: 7.154 MB / 0.5464 GB, free: 64.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009938/0.6681, allocations: 1.23 MB / 0.5476 GB, free: 63.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000227/0.6683, allocations: 41.12 kB / 0.5477 GB, free: 63.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.6685, allocations: 135.4 kB / 0.5478 GB, free: 63.31 MB / 378.7 MB Notification: Performance of SimCode: time 1.432e-06/0.6685, allocations: 0 / 0.5478 GB, free: 63.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03626/0.7047, allocations: 20.57 MB / 0.5679 GB, free: 42.75 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.705, allocations: 177 kB / 0.568 GB, free: 42.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.132/2.838, allocations: 0 / 0.568 GB, free: 42.51 MB / 378.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