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.001484/0.001484, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001168/0.001167, allocations: 92.28 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.437e-05/2.435e-05, allocations: 4 kB / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3383, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.4749, allocations: 81.64 MB / 444.1 MB, free: 4.586 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.4753, allocations: 72.84 kB / 444.1 MB, free: 4.516 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1321/0.6074, allocations: 38.58 MB / 482.7 MB, free: 14.02 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6074, allocations: 3.938 kB / 482.7 MB, free: 14.02 MB / 379.1 MB Notification: Performance of Transformations before backend: time 5.204e-05/0.6075, allocations: 16 kB / 482.7 MB, free: 14 MB / 379.1 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.002218/0.6097, allocations: 1.317 MB / 484.1 MB, free: 12.59 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.6098, allocations: 12.03 kB / 484.1 MB, free: 12.57 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003996/0.6102, allocations: 134.4 kB / 484.2 MB, free: 12.44 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.6116, allocations: 0.5016 MB / 484.7 MB, free: 11.89 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.359e-05/0.6117, allocations: 19.98 kB / 484.7 MB, free: 11.87 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.6119, allocations: 31.94 kB / 484.8 MB, free: 11.84 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001119/0.613, allocations: 454.6 kB / 485.2 MB, free: 11.4 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.6144, allocations: 0.5871 MB / 485.8 MB, free: 10.81 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.6145, allocations: 0 / 485.8 MB, free: 10.81 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.6146, allocations: 11.98 kB / 485.8 MB, free: 10.8 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6146, allocations: 4 kB / 485.8 MB, free: 10.79 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003049/0.6177, allocations: 1.133 MB / 486.9 MB, free: 9.617 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.6192, allocations: 0.6781 MB / 487.6 MB, free: 8.93 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.6205, allocations: 0.6608 MB / 488.3 MB, free: 8.266 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.6205, allocations: 7.984 kB / 488.3 MB, free: 8.258 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001502/0.622, allocations: 0.7329 MB / 489 MB, free: 7.484 MB / 379.1 MB Notification: Performance of pre-optimization done (n=33): time 3.306e-06/0.6221, allocations: 0 / 489 MB, free: 7.484 MB / 379.1 MB Notification: Performance of matching and sorting (n=33): time 0.002796/0.6249, allocations: 1.096 MB / 490.1 MB, free: 6.383 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000294/0.6252, allocations: 329 kB / 490.4 MB, free: 6 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004415/0.6296, allocations: 1.558 MB / 492 MB, free: 4.43 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00031/0.63, allocations: 45.69 kB / 492 MB, free: 4.379 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003901/0.6304, allocations: 256.9 kB / 492.3 MB, free: 4.125 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.6307, allocations: 71.17 kB / 492.4 MB, free: 4.055 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.409e-05/0.6308, allocations: 8 kB / 492.4 MB, free: 4.047 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.631, allocations: 326.8 kB / 492.7 MB, free: 3.719 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.6321, allocations: 439.9 kB / 493.1 MB, free: 3.289 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009858/0.6331, allocations: 443.7 kB / 493.5 MB, free: 2.855 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.6337, allocations: 288.4 kB / 493.8 MB, free: 2.574 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.6337, allocations: 0 / 493.8 MB, free: 2.574 MB / 379.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002508/0.6363, allocations: 0.9866 MB / 494.8 MB, free: 1.586 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003416/0.6366, allocations: 293.5 kB / 495.1 MB, free: 1.25 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.6367, allocations: 3.938 kB / 495.1 MB, free: 1.246 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.6367, allocations: 4 kB / 495.1 MB, free: 1.242 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.591e-05/0.6368, allocations: 4 kB / 495.1 MB, free: 1.238 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.6368, allocations: 3.938 kB / 495.1 MB, free: 1.234 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007208/0.6375, allocations: 47.86 kB / 495.2 MB, free: 1.188 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002555/0.6378, allocations: 132.1 kB / 495.3 MB, free: 1.059 MB / 379.1 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.0006895/0.6385, allocations: 459.7 kB / 495.7 MB, free: 0.5508 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002953/0.6415, allocations: 1.179 MB / 496.9 MB, free: 15.36 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.6418, allocations: 130.5 kB / 497 MB, free: 15.23 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008768/0.6427, allocations: 256.3 kB / 497.3 MB, free: 14.98 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.6427, allocations: 0 / 497.3 MB, free: 14.98 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.6427, allocations: 3.953 kB / 497.3 MB, free: 14.98 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.6428, allocations: 4 kB / 497.3 MB, free: 14.97 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00479/0.6476, allocations: 2.005 MB / 499.3 MB, free: 12.92 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.6476, allocations: 0 / 499.3 MB, free: 12.92 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.73e-05/0.6477, allocations: 7.938 kB / 499.3 MB, free: 12.91 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.6477, allocations: 0 / 499.3 MB, free: 12.91 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.6478, allocations: 35.97 kB / 499.4 MB, free: 12.88 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6478, allocations: 0 / 499.4 MB, free: 12.88 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/0.6478, allocations: 3.953 kB / 499.4 MB, free: 12.87 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/0.6509, allocations: 1.273 MB / 0.4889 GB, free: 11.58 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002128/0.6531, allocations: 0.6785 MB / 0.4896 GB, free: 10.88 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/0.6534, allocations: 55.95 kB / 0.4896 GB, free: 10.82 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000711/0.6542, allocations: 39.97 kB / 0.4896 GB, free: 10.79 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00104/0.6552, allocations: 383.5 kB / 0.49 GB, free: 10.41 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/0.6555, allocations: 127.9 kB / 0.4901 GB, free: 10.29 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003323/0.6589, allocations: 1.275 MB / 0.4914 GB, free: 9.008 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.82e-07/0.6589, allocations: 3.938 kB / 0.4914 GB, free: 9.004 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001026/0.66, allocations: 148 kB / 0.4915 GB, free: 8.859 MB / 395.1 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.003775/0.6637, allocations: 1.912 MB / 0.4934 GB, free: 6.922 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003317/0.6671, allocations: 1.877 MB / 0.4952 GB, free: 4.949 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6672, allocations: 0 / 0.4952 GB, free: 4.949 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002157/0.6694, allocations: 1.413 MB / 0.4966 GB, free: 3.438 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/0.6716, allocations: 296.3 kB / 0.4969 GB, free: 3.148 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008028/0.6796, allocations: 2.841 MB / 0.4997 GB, free: 256 kB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2599/0.9396, allocations: 1.211 MB / 0.5008 GB, free: 120.5 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.9399, allocations: 135.3 kB / 0.501 GB, free: 120.5 MB / 395.1 MB Notification: Performance of SimCode: time 1.633e-06/0.9399, allocations: 0 / 0.501 GB, free: 120.5 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.843/3.783, allocations: 13.77 MB / 0.5144 GB, free: 118.4 MB / 395.1 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