Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",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.00228/0.002279, allocations: 185.9 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.986/1.986, 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.001121/0.001121, allocations: 89.88 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003992, allocations: 12 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3452, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.48, allocations: 82.08 MB / 456.7 MB, free: 14.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.4803, allocations: 67.97 kB / 456.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1174/0.5978, allocations: 33.24 MB / 490 MB, free: 13.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5978, allocations: 0 / 490 MB, free: 13.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.361e-05/0.5979, allocations: 8 kB / 490 MB, free: 13.29 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00195/0.5998, allocations: 1.143 MB / 491.2 MB, free: 12.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.5999, allocations: 11.97 kB / 491.2 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001861/0.6001, allocations: 54.55 kB / 491.2 MB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.6003, allocations: 95.02 kB / 491.3 MB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000904/0.6012, allocations: 411.5 kB / 491.7 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.98e-05/0.6013, allocations: 20 kB / 491.7 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.6015, allocations: 27.98 kB / 491.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.6029, allocations: 0.489 MB / 492.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.603, allocations: 0 / 492.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.473e-05/0.6031, allocations: 16 kB / 492.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.6031, allocations: 11.94 kB / 492.3 MB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.6041, allocations: 372 kB / 492.6 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002408/0.6066, allocations: 0.9184 MB / 493.6 MB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.6079, allocations: 0.5025 MB / 494.1 MB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.6079, allocations: 0 / 494.1 MB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001427/0.6094, allocations: 0.6422 MB / 494.7 MB, free: 8.336 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.705e-06/0.6094, allocations: 0 / 494.7 MB, free: 8.336 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.004399/0.6138, allocations: 1.754 MB / 496.5 MB, free: 6.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002633/0.6141, allocations: 279.3 kB / 496.7 MB, free: 6.148 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/0.6166, allocations: 1.027 MB / 497.8 MB, free: 5.113 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.6168, allocations: 41.7 kB / 497.8 MB, free: 5.066 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.617, allocations: 196.4 kB / 498 MB, free: 4.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.6172, allocations: 71.19 kB / 498.1 MB, free: 4.801 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.785e-05/0.6173, allocations: 12 kB / 498.1 MB, free: 4.789 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.6175, allocations: 326.8 kB / 498.4 MB, free: 4.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009594/0.6184, allocations: 355.7 kB / 498.7 MB, free: 4.113 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009587/0.6194, allocations: 376.6 kB / 499.1 MB, free: 3.738 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009532/0.6204, allocations: 492.9 kB / 499.6 MB, free: 3.211 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.6204, allocations: 0 / 499.6 MB, free: 3.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002721/0.6231, allocations: 1.101 MB / 0.489 GB, free: 2.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002837/0.6235, allocations: 243.9 kB / 0.4892 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.6235, allocations: 8.062 kB / 0.4892 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.6235, allocations: 3.938 kB / 0.4892 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.719e-05/0.6236, allocations: 4 kB / 0.4892 GB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.6236, allocations: 3.984 kB / 0.4892 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005553/0.6241, allocations: 35.83 kB / 0.4892 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/0.6244, allocations: 131.9 kB / 0.4894 GB, free: 1.598 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: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.001608/0.626, allocations: 0.764 MB / 0.4901 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.6263, allocations: 95.05 kB / 0.4902 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004147/0.6267, allocations: 143.5 kB / 0.4903 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.6267, allocations: 0 / 0.4903 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.6267, allocations: 0 / 0.4903 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.6267, allocations: 3.984 kB / 0.4903 GB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2812/0.908, allocations: 1.937 MB / 0.4922 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.908, allocations: 0 / 0.4922 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.23e-05/0.9081, allocations: 1.031 kB / 0.4922 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.9081, allocations: 5.062 kB / 0.4922 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.9082, allocations: 36 kB / 0.4923 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.9082, allocations: 0 / 0.4923 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.9082, allocations: 3.781 kB / 0.4923 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002992/0.9112, allocations: 1.376 MB / 0.4936 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.9128, allocations: 0.5597 MB / 0.4942 GB, free: 107.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002671/0.9131, allocations: 57.89 kB / 0.4942 GB, free: 107.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/0.9137, allocations: 35.31 kB / 0.4943 GB, free: 107.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006497/0.9143, allocations: 236.9 kB / 0.4945 GB, free: 107.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/0.9146, allocations: 130.6 kB / 0.4946 GB, free: 107.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002026/0.9166, allocations: 0.8597 MB / 0.4955 GB, free: 107.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.9167, allocations: 0 / 0.4955 GB, free: 107.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008935/0.9176, allocations: 119.4 kB / 0.4956 GB, free: 107.1 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.003544/0.9211, allocations: 2.018 MB / 0.4975 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.9239, allocations: 1.53 MB / 0.499 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.924, allocations: 0.9062 kB / 0.499 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001695/0.9257, allocations: 1.146 MB / 0.5002 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.9276, allocations: 267 kB / 0.5004 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.9381, allocations: 4.88 MB / 0.5052 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008628/0.939, allocations: 1.032 MB / 0.5062 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.9392, allocations: 76.48 kB / 0.5063 GB, free: 101.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.9392, allocations: 0 / 0.5063 GB, free: 101.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.792/3.731, allocations: 8.873 MB / 0.5149 GB, free: 98.64 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat