Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_cpp_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.00219/0.00219, allocations: 181.3 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.143/2.143, 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.001058/0.001058, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.089e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09879/0.09886, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.5134, allocations: 82.25 MB / 451.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003744/0.5139, allocations: 70.33 kB / 451.5 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1079/0.6218, allocations: 30.81 MB / 482.3 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6219, allocations: 0 / 482.3 MB, free: 14.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.762e-05/0.6219, allocations: 16 kB / 482.3 MB, free: 14 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.002127/0.6241, allocations: 1.315 MB / 483.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.6241, allocations: 12.03 kB / 483.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001955/0.6243, allocations: 58.55 kB / 483.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.6246, allocations: 134.4 kB / 483.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.6258, allocations: 0.5288 MB / 484.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.439e-05/0.6259, allocations: 24 kB / 484.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.626, allocations: 28 kB / 484.4 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.6276, allocations: 0.6144 MB / 485 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.6276, allocations: 0 / 485 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.361e-05/0.6277, allocations: 16 kB / 485.1 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.6278, allocations: 0 / 485.1 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.6289, allocations: 477 kB / 485.5 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.6319, allocations: 1.175 MB / 486.7 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.6335, allocations: 0.6936 MB / 487.4 MB, free: 8.707 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.6348, allocations: 0.6764 MB / 488.1 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.6349, allocations: 11.98 kB / 488.1 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.6364, allocations: 0.7329 MB / 488.8 MB, free: 7.242 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.647e-06/0.6365, allocations: 0 / 488.8 MB, free: 7.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.003244/0.6397, allocations: 1.41 MB / 490.2 MB, free: 5.777 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003021/0.6401, allocations: 332.9 kB / 490.5 MB, free: 5.391 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004196/0.6443, allocations: 1.619 MB / 492.2 MB, free: 3.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002487/0.6446, allocations: 49.64 kB / 492.2 MB, free: 3.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003239/0.6449, allocations: 252.9 kB / 492.5 MB, free: 3.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.6451, allocations: 75.14 kB / 492.5 MB, free: 3.379 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.229e-05/0.6452, allocations: 12 kB / 492.5 MB, free: 3.367 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.6454, allocations: 326.8 kB / 492.9 MB, free: 3.039 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.6465, allocations: 455.8 kB / 493.3 MB, free: 2.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.6477, allocations: 459.5 kB / 493.8 MB, free: 2.145 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.6488, allocations: 0.5878 MB / 494.3 MB, free: 1.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.6488, allocations: 0 / 494.3 MB, free: 1.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002904/0.6517, allocations: 1.303 MB / 495.7 MB, free: 152 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003418/0.6521, allocations: 293.5 kB / 495.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.6521, allocations: 0 / 495.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.6522, allocations: 0 / 495.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.355e-05/0.6522, allocations: 4 kB / 495.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.6522, allocations: 0 / 495.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006555/0.6529, allocations: 47.81 kB / 496 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/0.6532, allocations: 132.2 kB / 496.1 MB, free: 15.63 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.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.0006087/0.6538, allocations: 463.7 kB / 496.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.654, allocations: 130.5 kB / 496.7 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007895/0.6549, allocations: 256 kB / 496.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6549, allocations: 0 / 496.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.6549, allocations: 0 / 496.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.6549, allocations: 0 / 496.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005136/0.66, allocations: 2.411 MB / 499.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.6601, allocations: 0 / 499.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.995e-05/0.6601, allocations: 7.938 kB / 499.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.6601, allocations: 0 / 499.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.6603, allocations: 35.97 kB / 499.4 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.6603, allocations: 4 kB / 499.4 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6603, allocations: 0 / 499.4 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003468/0.6638, allocations: 1.63 MB / 0.4893 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/0.6658, allocations: 0.6862 MB / 0.49 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.6662, allocations: 63.97 kB / 0.49 GB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.6668, allocations: 35.97 kB / 0.4901 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/0.6679, allocations: 379.6 kB / 0.4904 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002646/0.6682, allocations: 131.9 kB / 0.4905 GB, free: 9.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003622/0.6718, allocations: 1.332 MB / 0.4918 GB, free: 7.824 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.6719, allocations: 3.938 kB / 0.4919 GB, free: 7.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009555/0.6728, allocations: 152 kB / 0.492 GB, free: 7.672 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.004153/0.677, allocations: 2.275 MB / 0.4942 GB, free: 5.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0035/0.6806, allocations: 1.917 MB / 0.4961 GB, free: 3.301 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6806, allocations: 0 / 0.4961 GB, free: 3.301 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0023/0.6829, allocations: 1.429 MB / 0.4975 GB, free: 1.773 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/0.6859, allocations: 300.5 kB / 0.4978 GB, free: 1.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.6972, allocations: 2.852 MB / 0.5006 GB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/0.6999, allocations: 1.227 MB / 0.5018 GB, free: 13.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.7003, allocations: 131.4 kB / 0.5019 GB, free: 13.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.734e-06/0.7003, allocations: 0 / 0.5019 GB, free: 13.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.953/3.654, allocations: 13.81 MB / 0.5154 GB, free: 15.16 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat