Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008886/0.0008887, allocations: 89.89 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.497e-05/3.534e-05, allocations: 7.984 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.324/0.4555, allocations: 84.04 MB / 486.2 MB, free: 5.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.4557, allocations: 74.88 kB / 486.2 MB, free: 5.383 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07353/0.5293, allocations: 39.23 MB / 0.5131 GB, free: 180 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5293, allocations: 0 / 0.5131 GB, free: 180 kB / 378.7 MB Notification: Performance of Transformations before backend: time 5.654e-05/0.5294, allocations: 20 kB / 0.5132 GB, free: 160 kB / 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.002074/0.5315, allocations: 1.318 MB / 0.5144 GB, free: 14.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.5315, allocations: 12.03 kB / 0.5145 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.5317, allocations: 54.55 kB / 0.5145 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002431/0.532, allocations: 134.4 kB / 0.5146 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009466/0.5329, allocations: 0.5132 MB / 0.5151 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-05/0.533, allocations: 27.98 kB / 0.5152 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.528e-05/0.5331, allocations: 32 kB / 0.5152 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009884/0.5341, allocations: 0.6105 MB / 0.5158 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.5341, allocations: 0 / 0.5158 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.546e-05/0.5342, allocations: 15.98 kB / 0.5158 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.5342, allocations: 4 kB / 0.5158 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007875/0.535, allocations: 466.7 kB / 0.5163 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.5375, allocations: 1.178 MB / 0.5174 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000882/0.5384, allocations: 0.7021 MB / 0.5181 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008714/0.5393, allocations: 0.6764 MB / 0.5188 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.5393, allocations: 0 / 0.5188 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009536/0.5403, allocations: 0.749 MB / 0.5195 GB, free: 9.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.565e-06/0.5403, allocations: 0 / 0.5195 GB, free: 9.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.002045/0.5423, allocations: 1.418 MB / 0.5209 GB, free: 7.938 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002297/0.5426, allocations: 324.9 kB / 0.5212 GB, free: 7.559 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/0.5457, allocations: 1.623 MB / 0.5228 GB, free: 5.922 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.43e-05/0.5458, allocations: 45.69 kB / 0.5228 GB, free: 5.871 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.546, allocations: 246.4 kB / 0.523 GB, free: 5.625 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.5462, allocations: 75.16 kB / 0.5231 GB, free: 5.551 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-05/0.5462, allocations: 15.98 kB / 0.5231 GB, free: 5.535 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.5464, allocations: 378.7 kB / 0.5235 GB, free: 5.156 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006449/0.5471, allocations: 455.8 kB / 0.5239 GB, free: 4.711 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006809/0.5478, allocations: 458.8 kB / 0.5244 GB, free: 4.266 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006915/0.5485, allocations: 0.5795 MB / 0.5249 GB, free: 3.637 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5485, allocations: 0 / 0.5249 GB, free: 3.637 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002088/0.5506, allocations: 1.341 MB / 0.5262 GB, free: 2.242 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002895/0.5509, allocations: 289.5 kB / 0.5265 GB, free: 1.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.5509, allocations: 7.984 kB / 0.5265 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.551, allocations: 0 / 0.5265 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.594e-05/0.551, allocations: 0 / 0.5265 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.551, allocations: 7.953 kB / 0.5265 GB, free: 1.895 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.5515, allocations: 47.81 kB / 0.5266 GB, free: 1.848 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002129/0.5517, allocations: 123.7 kB / 0.5267 GB, free: 1.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.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.0004314/0.5522, allocations: 463.7 kB / 0.5271 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.5524, allocations: 130.5 kB / 0.5273 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005846/0.553, allocations: 256 kB / 0.5275 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.553, allocations: 7.938 kB / 0.5275 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.553, allocations: 0 / 0.5275 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.553, allocations: 3.953 kB / 0.5275 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003897/0.5569, allocations: 2.403 MB / 0.5299 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.557, allocations: 0 / 0.5299 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.874e-05/0.557, allocations: 8 kB / 0.5299 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.557, allocations: 0 / 0.5299 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.409e-05/0.5571, allocations: 39.97 kB / 0.5299 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.5571, allocations: 3.953 kB / 0.5299 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5571, allocations: 0 / 0.5299 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.5592, allocations: 1.63 MB / 0.5315 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/0.5605, allocations: 0.6824 MB / 0.5322 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.5608, allocations: 59.97 kB / 0.5322 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.5612, allocations: 39.97 kB / 0.5323 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005724/0.5618, allocations: 383.5 kB / 0.5326 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/0.562, allocations: 139.9 kB / 0.5328 GB, free: 11.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002307/0.5643, allocations: 1.332 MB / 0.5341 GB, free: 9.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5643, allocations: 0 / 0.5341 GB, free: 9.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005781/0.5649, allocations: 148 kB / 0.5342 GB, free: 9.766 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.002582/0.5675, allocations: 2.266 MB / 0.5364 GB, free: 7.426 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.5695, allocations: 1.913 MB / 0.5383 GB, free: 5.414 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.5695, allocations: 0 / 0.5383 GB, free: 5.414 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.5708, allocations: 1.436 MB / 0.5397 GB, free: 3.883 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.5721, allocations: 303.8 kB / 0.54 GB, free: 3.594 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004718/0.5768, allocations: 2.752 MB / 0.5427 GB, free: 0.793 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.5779, allocations: 1.223 MB / 0.5439 GB, free: 15.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.5781, allocations: 41.44 kB / 0.5439 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.5782, allocations: 131.4 kB / 0.544 GB, free: 15.37 MB / 426.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5782, allocations: 0 / 0.544 GB, free: 15.37 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.6124, allocations: 20.55 MB / 0.5641 GB, free: 10.73 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.6126, allocations: 153.2 kB / 0.5642 GB, free: 10.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.799, allocations: 0 / 0.5642 GB, free: 10.51 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat