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.001547/0.001547, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008673/0.0008671, allocations: 84.86 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002903/0.0002904, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2958, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3971, allocations: 82.35 MB / 458.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.3975, allocations: 75.95 kB / 458.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05919/0.4567, allocations: 30.65 MB / 489 MB, free: 15.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4567, allocations: 0 / 489 MB, free: 15.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.948e-05/0.4568, allocations: 20 kB / 489 MB, free: 15.58 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.002847/0.4597, allocations: 1.519 MB / 490.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.895e-05/0.4597, allocations: 12.03 kB / 490.5 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000249/0.46, allocations: 62.48 kB / 490.6 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003355/0.4603, allocations: 138.4 kB / 490.7 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.4616, allocations: 0.5094 MB / 491.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.205e-05/0.4617, allocations: 23.98 kB / 491.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.98e-05/0.4618, allocations: 32 kB / 491.3 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.4631, allocations: 0.6191 MB / 491.9 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.4631, allocations: 4 kB / 491.9 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.42e-05/0.4632, allocations: 16 kB / 491.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.4632, allocations: 0 / 491.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008054/0.464, allocations: 483.6 kB / 492.4 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003036/0.467, allocations: 1.178 MB / 493.6 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.4681, allocations: 0.6975 MB / 494.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.4681, allocations: 0 / 494.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.4692, allocations: 0.7562 MB / 495 MB, free: 9.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.214e-06/0.4692, allocations: 0 / 495 MB, free: 9.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003065/0.4723, allocations: 2.14 MB / 497.2 MB, free: 7.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002606/0.4726, allocations: 325 kB / 497.5 MB, free: 6.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.4753, allocations: 1.632 MB / 499.1 MB, free: 4.996 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.854e-05/0.4754, allocations: 41.7 kB / 499.2 MB, free: 4.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.4756, allocations: 246.4 kB / 499.4 MB, free: 4.703 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.4758, allocations: 75.09 kB / 499.5 MB, free: 4.629 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-05/0.4758, allocations: 12 kB / 499.5 MB, free: 4.617 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.476, allocations: 390.7 kB / 499.9 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006608/0.4767, allocations: 455.7 kB / 0.4886 GB, free: 3.781 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006758/0.4774, allocations: 494.6 kB / 0.4891 GB, free: 3.289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000667/0.4781, allocations: 0.5895 MB / 0.4896 GB, free: 2.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4781, allocations: 0 / 0.4896 GB, free: 2.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001873/0.48, allocations: 1.349 MB / 0.4909 GB, free: 1.246 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002338/0.4802, allocations: 297.6 kB / 0.4912 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4802, allocations: 0 / 0.4912 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.4803, allocations: 4 kB / 0.4912 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.962e-05/0.4803, allocations: 4 kB / 0.4912 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.4803, allocations: 0 / 0.4912 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.4807, allocations: 47.81 kB / 0.4913 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/0.4809, allocations: 128.2 kB / 0.4914 GB, free: 0.7266 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.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.1982/0.6791, allocations: 0.9874 MB / 0.4924 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003054/0.6794, allocations: 134.1 kB / 0.4925 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007982/0.6802, allocations: 249.8 kB / 0.4927 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.6803, allocations: 1.844 kB / 0.4927 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.6803, allocations: 0.5 kB / 0.4927 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.6803, allocations: 4.391 kB / 0.4927 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004451/0.6847, allocations: 2.419 MB / 0.4951 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.6848, allocations: 3.938 kB / 0.4951 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.107e-05/0.6848, allocations: 9.781 kB / 0.4951 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.6848, allocations: 1.281 kB / 0.4951 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-05/0.6849, allocations: 33.73 kB / 0.4952 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.6849, allocations: 3.609 kB / 0.4952 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6849, allocations: 1.219 kB / 0.4952 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.6872, allocations: 1.652 MB / 0.4968 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.6884, allocations: 0.673 MB / 0.4974 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.6885, allocations: 59.34 kB / 0.4975 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.6889, allocations: 48.2 kB / 0.4975 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005694/0.6895, allocations: 376 kB / 0.4979 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/0.6897, allocations: 136.4 kB / 0.498 GB, free: 104.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002018/0.6917, allocations: 1.345 MB / 0.4993 GB, free: 104.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6917, allocations: 1.781 kB / 0.4993 GB, free: 104.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007057/0.6924, allocations: 145.4 kB / 0.4995 GB, free: 104.4 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) * 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.002408/0.6948, allocations: 2.294 MB / 0.5017 GB, free: 103.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.6965, allocations: 1.932 MB / 0.5036 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.6965, allocations: 3.719 kB / 0.5036 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.6975, allocations: 1.441 MB / 0.505 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.6986, allocations: 305.9 kB / 0.5053 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008606/0.7072, allocations: 7.153 MB / 0.5123 GB, free: 98.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008582/0.7081, allocations: 1.221 MB / 0.5135 GB, free: 97.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.7083, allocations: 41.08 kB / 0.5135 GB, free: 97.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.7085, allocations: 133.8 kB / 0.5136 GB, free: 97.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.7085, allocations: 3.844 kB / 0.5136 GB, free: 97.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.7388, allocations: 20.57 MB / 0.5337 GB, free: 79.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/0.739, allocations: 173.1 kB / 0.5339 GB, free: 79.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/3, allocations: 3.938 kB / 0.5339 GB, free: 79.58 MB / 378.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