Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",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.001627/0.001626, allocations: 181.5 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.13/2.13, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001069/0.001069, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.438e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09842, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4768/0.5753, allocations: 82.31 MB / 451.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.5756, allocations: 64.47 kB / 451.5 MB, free: 10.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1407/0.7163, allocations: 38.82 MB / 490.4 MB, free: 5.832 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.7164, allocations: 0 / 490.4 MB, free: 5.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.526e-05/0.7165, allocations: 16 kB / 490.4 MB, free: 5.816 MB / 362.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.003391/0.7199, allocations: 1.315 MB / 491.7 MB, free: 4.402 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.911e-05/0.72, allocations: 16.02 kB / 491.7 MB, free: 4.387 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003506/0.7204, allocations: 62.55 kB / 491.8 MB, free: 4.316 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004383/0.7208, allocations: 134.4 kB / 491.9 MB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.7226, allocations: 0.5016 MB / 492.4 MB, free: 3.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.981e-05/0.7227, allocations: 20 kB / 492.4 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.7228, allocations: 31.98 kB / 492.5 MB, free: 3.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.7248, allocations: 0.6144 MB / 493.1 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/0.725, allocations: 0 / 493.1 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004799/0.7255, allocations: 23.92 kB / 493.1 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.7255, allocations: 0 / 493.1 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.7277, allocations: 485 kB / 493.6 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006923/0.7347, allocations: 1.17 MB / 494.7 MB, free: 1.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00314/0.7379, allocations: 0.6976 MB / 495.4 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/0.7401, allocations: 0.6804 MB / 496.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.753e-05/0.7403, allocations: 4 kB / 496.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002821/0.7431, allocations: 0.7367 MB / 496.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 5.41e-06/0.7432, allocations: 0 / 496.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006277/0.7495, allocations: 1.414 MB / 498.3 MB, free: 13.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004307/0.7499, allocations: 333 kB / 498.6 MB, free: 13.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008138/0.7581, allocations: 1.623 MB / 0.4885 GB, free: 11.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005543/0.7587, allocations: 41.7 kB / 0.4885 GB, free: 11.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007959/0.7596, allocations: 260.8 kB / 0.4888 GB, free: 11.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004162/0.76, allocations: 71.16 kB / 0.4889 GB, free: 11.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.7602, allocations: 12.11 kB / 0.4889 GB, free: 11.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.7604, allocations: 330.8 kB / 0.4892 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002591/0.763, allocations: 451.8 kB / 0.4896 GB, free: 10.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.7649, allocations: 459.5 kB / 0.4901 GB, free: 9.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00254/0.7675, allocations: 0.5879 MB / 0.4906 GB, free: 9.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.7676, allocations: 0 / 0.4906 GB, free: 9.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.004711/0.7723, allocations: 1.295 MB / 0.4919 GB, free: 7.977 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003385/0.7727, allocations: 297.5 kB / 0.4922 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.7727, allocations: 0 / 0.4922 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.7727, allocations: 0 / 0.4922 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.038e-05/0.7728, allocations: 4 kB / 0.4922 GB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.7728, allocations: 3.953 kB / 0.4922 GB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007259/0.7735, allocations: 47.88 kB / 0.4922 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002576/0.7738, allocations: 136.1 kB / 0.4924 GB, free: 7.449 MB / 378.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.0006457/0.7745, allocations: 451.7 kB / 0.4928 GB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.7748, allocations: 142.4 kB / 0.4929 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008152/0.7756, allocations: 248 kB / 0.4932 GB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.7757, allocations: 0 / 0.4932 GB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.7757, allocations: 4 kB / 0.4932 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.7757, allocations: 3.953 kB / 0.4932 GB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005641/0.7814, allocations: 2.407 MB / 0.4955 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.7814, allocations: 0 / 0.4955 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.962e-05/0.7815, allocations: 11.94 kB / 0.4955 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.7815, allocations: 3.938 kB / 0.4955 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.7816, allocations: 31.98 kB / 0.4956 GB, free: 3.984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.7816, allocations: 3.953 kB / 0.4956 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7816, allocations: 0 / 0.4956 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003478/0.7851, allocations: 1.634 MB / 0.4972 GB, free: 2.277 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/0.7871, allocations: 0.6708 MB / 0.4978 GB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003001/0.7875, allocations: 59.97 kB / 0.4979 GB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.7881, allocations: 43.95 kB / 0.4979 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001018/0.7892, allocations: 383.5 kB / 0.4983 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/0.7894, allocations: 124 kB / 0.4984 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003587/0.793, allocations: 1.332 MB / 0.4997 GB, free: 15.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.122e-06/0.7931, allocations: 4 kB / 0.4997 GB, free: 15.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001002/0.7941, allocations: 148 kB / 0.4998 GB, free: 15.5 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,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.004089/0.7982, allocations: 2.267 MB / 0.5021 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003429/0.8017, allocations: 1.92 MB / 0.5039 GB, free: 11.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.8017, allocations: 4 kB / 0.5039 GB, free: 11.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.8039, allocations: 1.433 MB / 0.5053 GB, free: 9.605 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.806, allocations: 300.6 kB / 0.5056 GB, free: 9.312 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007381/0.8134, allocations: 2.844 MB / 0.5084 GB, free: 6.414 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/0.815, allocations: 1.231 MB / 0.5096 GB, free: 5.152 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.8153, allocations: 135.4 kB / 0.5097 GB, free: 5.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.8153, allocations: 3.938 kB / 0.5097 GB, free: 5.016 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.033/3.848, allocations: 13.8 MB / 0.5232 GB, free: 7 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat