Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 180.7 kB / 8.7 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008358/0.0008359, allocations: 82.23 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.426e-05, allocations: 4.219 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.08795, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.347/0.435, allocations: 81.85 MB / 445 MB, free: 13.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.4353, allocations: 63.66 kB / 445.1 MB, free: 13.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0582/0.4935, allocations: 30.63 MB / 475.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4936, allocations: 0 / 475.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.613e-05/0.4936, allocations: 16 kB / 475.7 MB, free: 4.324 MB / 346.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.00157/0.4952, allocations: 1.312 MB / 477 MB, free: 2.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4953, allocations: 16.02 kB / 477 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.4955, allocations: 134.4 kB / 477.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007253/0.4962, allocations: 0.5109 MB / 477.7 MB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.4962, allocations: 16 kB / 477.7 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.987e-05/0.4963, allocations: 31.25 kB / 477.7 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006133/0.4969, allocations: 463.3 kB / 478.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008156/0.4978, allocations: 0.5849 MB / 478.8 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.4978, allocations: 0 / 478.8 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.997e-05/0.4978, allocations: 11.19 kB / 478.8 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.4979, allocations: 7.953 kB / 478.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.4996, allocations: 1.133 MB / 479.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007458/0.5003, allocations: 0.6712 MB / 480.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007059/0.5011, allocations: 0.6647 MB / 481.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.5011, allocations: 4 kB / 481.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008573/0.502, allocations: 0.7412 MB / 482 MB, free: 14.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.853e-06/0.502, allocations: 0 / 482 MB, free: 14.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00163/0.5036, allocations: 1.092 MB / 483.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002163/0.5038, allocations: 329 kB / 483.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00216/0.506, allocations: 1.551 MB / 485 MB, free: 11.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.084e-05/0.5061, allocations: 45.69 kB / 485 MB, free: 11.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.5063, allocations: 246.3 kB / 485.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.5065, allocations: 79.14 kB / 485.3 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.5065, allocations: 12 kB / 485.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.5067, allocations: 382.7 kB / 485.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005581/0.5073, allocations: 435.8 kB / 486.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005343/0.5078, allocations: 443.5 kB / 486.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.5082, allocations: 292.6 kB / 486.9 MB, free: 9.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5082, allocations: 3.953 kB / 486.9 MB, free: 9.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001411/0.5096, allocations: 1.023 MB / 487.9 MB, free: 8.543 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002337/0.5099, allocations: 297.5 kB / 488.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.5099, allocations: 0 / 488.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.5099, allocations: 0 / 488.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.447e-05/0.51, allocations: 7.938 kB / 488.2 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.51, allocations: 7.922 kB / 488.2 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003999/0.5104, allocations: 39.91 kB / 488.2 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.5106, allocations: 128.2 kB / 488.4 MB, free: 8.023 MB / 362.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.0004208/0.511, allocations: 459.7 kB / 488.8 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001594/0.5126, allocations: 1.187 MB / 490 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.5128, allocations: 130.5 kB / 490.1 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005449/0.5133, allocations: 252.3 kB / 490.4 MB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.5133, allocations: 4 kB / 490.4 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.5133, allocations: 0 / 490.4 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.5133, allocations: 0 / 490.4 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.516, allocations: 2.013 MB / 492.4 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.516, allocations: 0 / 492.4 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.124e-05/0.516, allocations: 0 / 492.4 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.516, allocations: 0 / 492.4 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.046e-05/0.5161, allocations: 35.98 kB / 492.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.5161, allocations: 0 / 492.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5161, allocations: 0 / 492.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.5178, allocations: 1.278 MB / 493.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009859/0.5188, allocations: 0.6823 MB / 494.4 MB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.519, allocations: 67.95 kB / 494.4 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.5193, allocations: 35.91 kB / 494.5 MB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005908/0.5199, allocations: 375.6 kB / 494.8 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/0.5201, allocations: 131.9 kB / 495 MB, free: 1.246 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00175/0.5219, allocations: 1.271 MB / 496.2 MB, free: 15.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5219, allocations: 0 / 496.2 MB, free: 15.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005353/0.5224, allocations: 140 kB / 496.4 MB, free: 15.84 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) * 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.002173/0.5246, allocations: 1.927 MB / 498.3 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.5266, allocations: 1.881 MB / 0.4885 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5266, allocations: 3.938 kB / 0.4885 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.5278, allocations: 1.413 MB / 0.4899 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.5291, allocations: 298.2 kB / 0.4901 GB, free: 10.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004214/0.5334, allocations: 2.714 MB / 0.4928 GB, free: 7.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.5345, allocations: 1.235 MB / 0.494 GB, free: 6.062 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.5347, allocations: 41.77 kB / 0.494 GB, free: 6.016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.5348, allocations: 131.4 kB / 0.4942 GB, free: 5.887 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5348, allocations: 0 / 0.4942 GB, free: 5.887 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04184/0.5767, allocations: 19.84 MB / 0.5135 GB, free: 1.652 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.5769, allocations: 150.1 kB / 0.5137 GB, free: 1.445 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.285/2.862, allocations: 0 / 0.5137 GB, free: 1.445 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat