Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX",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.001029/0.00103, allocations: 180.7 kB / 17.01 MB, free: 5.125 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.437/1.437, allocations: 205.4 MB / 223.1 MB, free: 9.039 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.000901/0.000901, allocations: 84.75 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.000287, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2367, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09779/0.3346, allocations: 82.8 MB / 458.7 MB, free: 13.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.3349, allocations: 75.95 kB / 458.8 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08136/0.4163, allocations: 42.89 MB / 0.4899 GB, free: 2.957 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4164, allocations: 4 kB / 0.4899 GB, free: 2.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.4164, allocations: 8 kB / 0.4899 GB, free: 2.945 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001175/0.4176, allocations: 1.064 MB / 0.491 GB, free: 1.777 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.4176, allocations: 8.031 kB / 0.491 GB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.035e-05/0.4177, allocations: 54.55 kB / 0.491 GB, free: 1.707 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.4178, allocations: 71.16 kB / 0.4911 GB, free: 1.637 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.4184, allocations: 371.9 kB / 0.4914 GB, free: 1.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.4184, allocations: 16.19 kB / 0.4915 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.4185, allocations: 19.94 kB / 0.4915 GB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.4191, allocations: 299.1 kB / 0.4918 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4192, allocations: 4 kB / 0.4918 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.243e-05/0.4192, allocations: 15.95 kB / 0.4918 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4192, allocations: 4 kB / 0.4918 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.4196, allocations: 152.5 kB / 0.4919 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1808/0.6004, allocations: 0.7583 MB / 0.4927 GB, free: 102.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.6013, allocations: 212 kB / 0.4929 GB, free: 102.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.6013, allocations: 2.188 kB / 0.4929 GB, free: 102.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009447/0.6023, allocations: 439.2 kB / 0.4933 GB, free: 102 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 4.369e-06/0.6023, allocations: 0 / 0.4933 GB, free: 102 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002587/0.6049, allocations: 1.338 MB / 0.4946 GB, free: 101.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.6051, allocations: 287.6 kB / 0.4949 GB, free: 101 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/0.6065, allocations: 0.8365 MB / 0.4957 GB, free: 100.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.4e-05/0.6066, allocations: 39.33 kB / 0.4957 GB, free: 100.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.301e-05/0.6067, allocations: 126.9 kB / 0.4959 GB, free: 100.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.815e-05/0.6068, allocations: 64.95 kB / 0.4959 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.213e-05/0.6068, allocations: 6.406 kB / 0.4959 GB, free: 100.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.806e-05/0.6069, allocations: 342 kB / 0.4962 GB, free: 100.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/0.6073, allocations: 139.2 kB / 0.4964 GB, free: 100.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.6076, allocations: 182.2 kB / 0.4966 GB, free: 100.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.608, allocations: 356.5 kB / 0.4969 GB, free: 100 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.608, allocations: 1.25 kB / 0.4969 GB, free: 100 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001169/0.6092, allocations: 0.8231 MB / 0.4977 GB, free: 99.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.6093, allocations: 246.4 kB / 0.4979 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.6093, allocations: 1.062 kB / 0.4979 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.6093, allocations: 2.125 kB / 0.4979 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.64e-05/0.6094, allocations: 8.938 kB / 0.4979 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.6094, allocations: 2.25 kB / 0.4979 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.6097, allocations: 30.52 kB / 0.498 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000339/0.6101, allocations: 270 kB / 0.4982 GB, free: 99.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * 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.0007435/0.6108, allocations: 0.6146 MB / 0.4988 GB, free: 99.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.6109, allocations: 74.75 kB / 0.4989 GB, free: 98.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.6112, allocations: 122.4 kB / 0.499 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.6112, allocations: 2 kB / 0.499 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.6112, allocations: 0 / 0.499 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.6112, allocations: 7.703 kB / 0.499 GB, free: 98.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.6135, allocations: 1.499 MB / 0.5005 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.6135, allocations: 1.25 kB / 0.5005 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.696e-05/0.6135, allocations: 10.64 kB / 0.5005 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.6135, allocations: 1.25 kB / 0.5005 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.142e-05/0.6136, allocations: 43.75 kB / 0.5006 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.6136, allocations: 8.516 kB / 0.5006 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.6137, allocations: 11.88 kB / 0.5006 GB, free: 98.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.6152, allocations: 1.029 MB / 0.5016 GB, free: 97.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007537/0.616, allocations: 425.6 kB / 0.502 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.6161, allocations: 24.62 kB / 0.502 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.6165, allocations: 26.53 kB / 0.502 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.6167, allocations: 79.94 kB / 0.5021 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004028/0.6171, allocations: 265.2 kB / 0.5024 GB, free: 97.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.6182, allocations: 0.6953 MB / 0.503 GB, free: 97.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6182, allocations: 0 / 0.503 GB, free: 97.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005429/0.6188, allocations: 94.97 kB / 0.5031 GB, free: 97.45 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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * 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.001776/0.6205, allocations: 1.626 MB / 0.5047 GB, free: 96.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.6217, allocations: 0.911 MB / 0.5056 GB, free: 95.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.6217, allocations: 0 / 0.5056 GB, free: 95.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006272/0.6223, allocations: 0.7687 MB / 0.5064 GB, free: 95.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008956/0.6232, allocations: 227.5 kB / 0.5066 GB, free: 95.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.6277, allocations: 3.287 MB / 0.5098 GB, free: 93.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/0.6284, allocations: 0.9562 MB / 0.5107 GB, free: 93.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000364/0.6288, allocations: 99.38 kB / 0.5108 GB, free: 93.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.6289, allocations: 80.83 kB / 0.5109 GB, free: 93.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.884e-06/0.6289, allocations: 0 / 0.5109 GB, free: 93.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03174/0.6607, allocations: 14.11 MB / 0.5247 GB, free: 87.53 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.6609, allocations: 164.6 kB / 0.5248 GB, free: 87.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.641, allocations: 0 / 0.5248 GB, free: 87.3 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat