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.002282/0.002281, allocations: 186.5 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 2.063/2.063, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001208/0.001208, allocations: 96.36 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003982, allocations: 12 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3382, allocations: 47.56 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1353/0.4736, allocations: 82.39 MB / 457 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.4739, allocations: 75.95 kB / 457.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.134/0.6079, allocations: 38.64 MB / 495.7 MB, free: 7.539 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.608, allocations: 0 / 495.7 MB, free: 7.539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.409e-05/0.6081, allocations: 12 kB / 495.7 MB, free: 7.527 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.003064/0.6112, allocations: 1.523 MB / 497.3 MB, free: 5.898 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.6112, allocations: 8.031 kB / 497.3 MB, free: 5.891 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002932/0.6115, allocations: 62.48 kB / 497.3 MB, free: 5.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002968/0.6119, allocations: 130.4 kB / 497.5 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.6131, allocations: 0.5094 MB / 498 MB, free: 5.133 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.586e-05/0.6133, allocations: 28 kB / 498 MB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.6134, allocations: 31.98 kB / 498 MB, free: 5.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.6152, allocations: 0.6227 MB / 498.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.6153, allocations: 0 / 498.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.6154, allocations: 16 kB / 498.7 MB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.6154, allocations: 4 kB / 498.7 MB, free: 4.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.6167, allocations: 475.6 kB / 499.1 MB, free: 3.961 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003127/0.6199, allocations: 1.174 MB / 0.4886 GB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.6217, allocations: 0.7091 MB / 0.4893 GB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.6218, allocations: 4 kB / 0.4893 GB, free: 2.008 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.6237, allocations: 0.7523 MB / 0.49 GB, free: 1.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 4.91e-06/0.6238, allocations: 0 / 0.49 GB, free: 1.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.2802/0.9041, allocations: 2.123 MB / 0.4921 GB, free: 105.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003376/0.9044, allocations: 329.2 kB / 0.4924 GB, free: 105.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004731/0.9092, allocations: 1.639 MB / 0.494 GB, free: 105.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.9095, allocations: 41.3 kB / 0.494 GB, free: 105.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.9099, allocations: 258.7 kB / 0.4943 GB, free: 105 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.9101, allocations: 70.98 kB / 0.4944 GB, free: 105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.9102, allocations: 12.44 kB / 0.4944 GB, free: 105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.909e-05/0.9103, allocations: 327.1 kB / 0.4947 GB, free: 104.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.9115, allocations: 451.9 kB / 0.4951 GB, free: 104.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.9128, allocations: 488.6 kB / 0.4956 GB, free: 104.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.9139, allocations: 0.5898 MB / 0.4962 GB, free: 104.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.9139, allocations: 0.875 kB / 0.4962 GB, free: 104.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003079/0.917, allocations: 1.324 MB / 0.4975 GB, free: 104.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000304/0.9174, allocations: 294.9 kB / 0.4977 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.9174, allocations: 1.531 kB / 0.4977 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.9174, allocations: 1.844 kB / 0.4977 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.124e-05/0.9175, allocations: 1.531 kB / 0.4977 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.9175, allocations: 1 kB / 0.4977 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007358/0.9182, allocations: 54.44 kB / 0.4978 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/0.9185, allocations: 126.7 kB / 0.4979 GB, free: 103.8 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.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$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,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,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 () * 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.002117/0.9207, allocations: 0.9883 MB / 0.4989 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.921, allocations: 134.6 kB / 0.499 GB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008049/0.9218, allocations: 252.6 kB / 0.4992 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.9218, allocations: 1 kB / 0.4992 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.9219, allocations: 0.9375 kB / 0.4992 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.9219, allocations: 3.438 kB / 0.4993 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005565/0.9274, allocations: 2.429 MB / 0.5016 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.9275, allocations: 0 / 0.5016 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.334e-05/0.9275, allocations: 2.547 kB / 0.5016 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.9276, allocations: 1.625 kB / 0.5016 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.9277, allocations: 34.14 kB / 0.5017 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.9277, allocations: 0 / 0.5017 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.9277, allocations: 4.656 kB / 0.5017 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.9311, allocations: 1.646 MB / 0.5033 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001897/0.933, allocations: 0.6786 MB / 0.5039 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003553/0.9334, allocations: 66.86 kB / 0.504 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.9341, allocations: 39.53 kB / 0.504 GB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009349/0.9351, allocations: 378.1 kB / 0.5044 GB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/0.9353, allocations: 134.3 kB / 0.5045 GB, free: 101.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003378/0.9387, allocations: 1.348 MB / 0.5058 GB, free: 100.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.9388, allocations: 0 / 0.5058 GB, free: 100.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009834/0.9398, allocations: 144.4 kB / 0.506 GB, free: 100.8 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,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) * 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.003929/0.9437, allocations: 2.296 MB / 0.5082 GB, free: 99.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003436/0.9472, allocations: 1.938 MB / 0.5101 GB, free: 98.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.9473, allocations: 0 / 0.5101 GB, free: 98.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/0.9495, allocations: 1.44 MB / 0.5115 GB, free: 97.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.9517, allocations: 299.7 kB / 0.5118 GB, free: 97.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.9685, allocations: 7.249 MB / 0.5189 GB, free: 93.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001376/0.9699, allocations: 1.226 MB / 0.5201 GB, free: 92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.9702, allocations: 134.5 kB / 0.5202 GB, free: 91.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.723e-06/0.9702, allocations: 0 / 0.5202 GB, free: 91.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.726/3.696, allocations: 13.75 MB / 0.5336 GB, free: 79.1 MB / 378.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