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.0016/0.001599, allocations: 185.1 kB / 16.41 MB, free: 5.727 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.979/1.979, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001102/0.001102, allocations: 95.39 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004438/0.000444, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3457, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1371/0.4829, allocations: 82.35 MB / 457 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.4833, allocations: 83.97 kB / 457.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.5873, allocations: 30.64 MB / 487.7 MB, free: 15.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5873, allocations: 0 / 487.7 MB, free: 15.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.975e-05/0.5874, allocations: 16 kB / 487.7 MB, free: 15.59 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.002691/0.5901, allocations: 1.516 MB / 489.2 MB, free: 13.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.5902, allocations: 16.02 kB / 489.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000246/0.5904, allocations: 58.48 kB / 489.3 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.5907, allocations: 142.4 kB / 489.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.592, allocations: 0.5211 MB / 490 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.5921, allocations: 16 kB / 490 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.5922, allocations: 32 kB / 490 MB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.594, allocations: 0.6189 MB / 490.6 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.5941, allocations: 0 / 490.6 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.787e-05/0.5942, allocations: 19.98 kB / 490.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.5942, allocations: 0 / 490.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.5954, allocations: 487.6 kB / 491.1 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002938/0.5984, allocations: 1.17 MB / 492.3 MB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.6, allocations: 0.6975 MB / 493 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.6001, allocations: 0 / 493 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001671/0.6018, allocations: 0.7601 MB / 493.8 MB, free: 9.273 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.747e-06/0.6018, allocations: 0 / 493.8 MB, free: 9.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.004784/0.6066, allocations: 2.128 MB / 495.9 MB, free: 7.035 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002845/0.6069, allocations: 333 kB / 496.2 MB, free: 6.648 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00423/0.6112, allocations: 1.629 MB / 497.8 MB, free: 5.008 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.6115, allocations: 45.69 kB / 497.9 MB, free: 4.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.6118, allocations: 252.9 kB / 498.1 MB, free: 4.707 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.612, allocations: 75.09 kB / 498.2 MB, free: 4.633 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.6122, allocations: 16 kB / 498.2 MB, free: 4.617 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6123, allocations: 334.7 kB / 498.5 MB, free: 4.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.6135, allocations: 455.7 kB / 499 MB, free: 3.836 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.6147, allocations: 486.7 kB / 499.5 MB, free: 3.352 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.6158, allocations: 0.5895 MB / 0.4883 GB, free: 2.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.6159, allocations: 0 / 0.4883 GB, free: 2.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003089/0.619, allocations: 1.315 MB / 0.4896 GB, free: 1.344 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003175/0.6193, allocations: 297.5 kB / 0.4899 GB, free: 1.004 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.6194, allocations: 4 kB / 0.4899 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.6194, allocations: 0 / 0.4899 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.329e-05/0.6194, allocations: 0 / 0.4899 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.6195, allocations: 4 kB / 0.4899 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006807/0.6201, allocations: 47.91 kB / 0.49 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/0.6204, allocations: 132.2 kB / 0.4901 GB, free: 0.8203 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.2683/0.8888, allocations: 0.9829 MB / 0.491 GB, free: 105.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.8891, allocations: 133.6 kB / 0.4912 GB, free: 105.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008731/0.89, allocations: 250.7 kB / 0.4914 GB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.8901, allocations: 2.719 kB / 0.4914 GB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.8901, allocations: 0.6562 kB / 0.4914 GB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.8901, allocations: 8.828 kB / 0.4914 GB, free: 105.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005683/0.8958, allocations: 2.422 MB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.8959, allocations: 1.688 kB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.035e-05/0.8959, allocations: 1.125 kB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.8959, allocations: 1 kB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.896, allocations: 37.09 kB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.896, allocations: 3.609 kB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8961, allocations: 1.219 kB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003495/0.8996, allocations: 1.656 MB / 0.4954 GB, free: 104.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/0.9015, allocations: 0.6716 MB / 0.4961 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003366/0.9019, allocations: 59.38 kB / 0.4962 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000655/0.9025, allocations: 46.06 kB / 0.4962 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001015/0.9036, allocations: 373.7 kB / 0.4966 GB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002697/0.9039, allocations: 140 kB / 0.4967 GB, free: 104.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003467/0.9074, allocations: 1.343 MB / 0.498 GB, free: 104 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.9074, allocations: 0 / 0.498 GB, free: 104 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001041/0.9085, allocations: 149.1 kB / 0.4981 GB, free: 104 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.00414/0.9126, allocations: 2.291 MB / 0.5004 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.9158, allocations: 1.938 MB / 0.5023 GB, free: 102.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.9159, allocations: 0 / 0.5023 GB, free: 102.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.9178, allocations: 1.441 MB / 0.5037 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/0.9199, allocations: 304.7 kB / 0.504 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.9354, allocations: 7.25 MB / 0.5111 GB, free: 97.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.9367, allocations: 1.226 MB / 0.5123 GB, free: 96.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.9369, allocations: 137.6 kB / 0.5124 GB, free: 96.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.763e-06/0.9369, allocations: 0 / 0.5124 GB, free: 96.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.735, allocations: 13.73 MB / 0.5258 GB, free: 86.76 MB / 378.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