Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001999/0.001999, allocations: 196.1 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.484/1.484, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008705/0.0008704, allocations: 94.3 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.826e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3254/0.428, allocations: 83.99 MB / 486.1 MB, free: 5.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.4283, allocations: 65.88 kB / 486.2 MB, free: 5.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05871/0.487, allocations: 31.18 MB / 0.5052 GB, free: 8.266 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.019e-06/0.487, allocations: 0 / 0.5052 GB, free: 8.266 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.244e-05/0.4871, allocations: 19.94 kB / 0.5053 GB, free: 8.246 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.002592/0.4897, allocations: 1.323 MB / 0.5065 GB, free: 6.824 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.4898, allocations: 12.03 kB / 0.5066 GB, free: 6.812 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002121/0.49, allocations: 58.55 kB / 0.5066 GB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000326/0.4904, allocations: 138.4 kB / 0.5067 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009868/0.4914, allocations: 0.5055 MB / 0.5072 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.222e-05/0.4914, allocations: 23.98 kB / 0.5073 GB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.4915, allocations: 28 kB / 0.5073 GB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.4926, allocations: 0.6067 MB / 0.5079 GB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.4926, allocations: 7.922 kB / 0.5079 GB, free: 5.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.299e-05/0.4927, allocations: 19.98 kB / 0.5079 GB, free: 5.363 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.4927, allocations: 4 kB / 0.5079 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008038/0.4935, allocations: 478.6 kB / 0.5084 GB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.4959, allocations: 1.166 MB / 0.5095 GB, free: 3.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009147/0.4969, allocations: 0.6937 MB / 0.5102 GB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008694/0.4978, allocations: 0.6764 MB / 0.5108 GB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.4978, allocations: 4 kB / 0.5108 GB, free: 2.281 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.4988, allocations: 0.7413 MB / 0.5116 GB, free: 1.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.555e-06/0.4988, allocations: 5.594 kB / 0.5116 GB, free: 1.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001973/0.5008, allocations: 1.414 MB / 0.513 GB, free: 28 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002368/0.501, allocations: 325 kB / 0.5133 GB, free: 15.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002926/0.504, allocations: 1.623 MB / 0.5148 GB, free: 14.01 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.226e-05/0.5041, allocations: 45.69 kB / 0.5149 GB, free: 13.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.5044, allocations: 242.3 kB / 0.5151 GB, free: 13.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.5045, allocations: 83.14 kB / 0.5152 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.5045, allocations: 8 kB / 0.5152 GB, free: 13.63 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.5047, allocations: 390.7 kB / 0.5156 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006365/0.5054, allocations: 455.8 kB / 0.516 GB, free: 12.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005909/0.506, allocations: 450.9 kB / 0.5164 GB, free: 12.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006155/0.5066, allocations: 0.5872 MB / 0.517 GB, free: 11.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5066, allocations: 0 / 0.517 GB, free: 11.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001811/0.5084, allocations: 1.344 MB / 0.5183 GB, free: 10.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.5087, allocations: 293.5 kB / 0.5186 GB, free: 9.984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.5087, allocations: 3.984 kB / 0.5186 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.5088, allocations: 0 / 0.5186 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.576e-05/0.5088, allocations: 2.438 kB / 0.5186 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.5088, allocations: 11.94 kB / 0.5186 GB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003968/0.5092, allocations: 35.97 kB / 0.5187 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002073/0.5094, allocations: 127.7 kB / 0.5188 GB, free: 9.812 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.000453/0.5099, allocations: 467.6 kB / 0.5192 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.5101, allocations: 134.4 kB / 0.5194 GB, free: 9.164 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005269/0.5106, allocations: 252 kB / 0.5196 GB, free: 8.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5106, allocations: 8 kB / 0.5196 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.5106, allocations: 0 / 0.5196 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.5107, allocations: 0 / 0.5196 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.5138, allocations: 2.395 MB / 0.5219 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5138, allocations: 3.938 kB / 0.522 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.097e-06/0.5138, allocations: 0 / 0.522 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.5138, allocations: 4 kB / 0.522 GB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.406e-05/0.5139, allocations: 35.97 kB / 0.522 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.514, allocations: 3.984 kB / 0.522 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.514, allocations: 4 kB / 0.522 GB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.516, allocations: 1.639 MB / 0.5236 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.5172, allocations: 0.6747 MB / 0.5243 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.5174, allocations: 59.97 kB / 0.5243 GB, free: 3.883 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003511/0.5178, allocations: 39.81 kB / 0.5244 GB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006067/0.5184, allocations: 375.6 kB / 0.5247 GB, free: 3.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/0.5186, allocations: 139.9 kB / 0.5248 GB, free: 3.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002017/0.5206, allocations: 1.335 MB / 0.5261 GB, free: 2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5206, allocations: 0 / 0.5261 GB, free: 2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000517/0.5211, allocations: 148 kB / 0.5263 GB, free: 1.855 MB / 394.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.002634/0.5238, allocations: 2.265 MB / 0.5285 GB, free: 15.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002229/0.526, allocations: 1.921 MB / 0.5304 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.526, allocations: 0 / 0.5304 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.5275, allocations: 1.432 MB / 0.5318 GB, free: 11.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.5289, allocations: 309.4 kB / 0.5321 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00553/0.5344, allocations: 2.757 MB / 0.5348 GB, free: 8.871 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.5357, allocations: 1.215 MB / 0.536 GB, free: 7.625 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000222/0.5359, allocations: 37.5 kB / 0.536 GB, free: 7.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.5361, allocations: 135.4 kB / 0.5361 GB, free: 7.457 MB / 410.7 MB Notification: Performance of SimCode: time 1.824e-06/0.5361, allocations: 4 kB / 0.5361 GB, free: 7.453 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.5757, allocations: 20.55 MB / 0.5562 GB, free: 2.832 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/0.5759, allocations: 149.2 kB / 0.5563 GB, free: 2.609 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.752, allocations: 0 / 0.5563 GB, free: 2.609 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat