Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007893/0.0007892, allocations: 93.89 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.767e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09807, allocations: 50.41 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.4351, allocations: 82.95 MB / 470.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.4353, allocations: 65.62 kB / 470.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08053/0.5159, allocations: 43.44 MB / 0.502 GB, free: 0.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5159, allocations: 0 / 0.502 GB, free: 0.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.518e-05/0.5159, allocations: 8 kB / 0.502 GB, free: 0.4922 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.0009068/0.5169, allocations: 0.9435 MB / 0.5029 GB, free: 15.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.5169, allocations: 12.03 kB / 0.5029 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.517, allocations: 75.16 kB / 0.503 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.5175, allocations: 371.9 kB / 0.5033 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.5176, allocations: 12 kB / 0.5033 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.76e-05/0.5176, allocations: 16.56 kB / 0.5034 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002567/0.5179, allocations: 140.3 kB / 0.5035 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.5183, allocations: 275.2 kB / 0.5038 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.5183, allocations: 0 / 0.5038 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-05/0.5184, allocations: 8 kB / 0.5038 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.5184, allocations: 3.984 kB / 0.5038 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.5196, allocations: 0.7355 MB / 0.5045 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.5199, allocations: 202.5 kB / 0.5047 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.5202, allocations: 180.9 kB / 0.5049 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.5202, allocations: 8 kB / 0.5049 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/0.5207, allocations: 421.9 kB / 0.5053 GB, free: 12.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.024e-06/0.5207, allocations: 0 / 0.5053 GB, free: 12.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009475/0.5216, allocations: 0.6185 MB / 0.5059 GB, free: 12.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.5218, allocations: 277 kB / 0.5061 GB, free: 11.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009961/0.5228, allocations: 0.7961 MB / 0.5069 GB, free: 11.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.98e-05/0.5228, allocations: 33.7 kB / 0.5069 GB, free: 11.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.523, allocations: 138 kB / 0.5071 GB, free: 10.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.948e-05/0.5231, allocations: 59.27 kB / 0.5071 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.5231, allocations: 4 kB / 0.5071 GB, free: 10.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5233, allocations: 338.8 kB / 0.5075 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.5235, allocations: 128.2 kB / 0.5076 GB, free: 10.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.5237, allocations: 154.2 kB / 0.5077 GB, free: 10.27 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.5239, allocations: 123.9 kB / 0.5078 GB, free: 10.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.5239, allocations: 4 kB / 0.5079 GB, free: 10.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008378/0.5247, allocations: 0.5636 MB / 0.5084 GB, free: 9.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.5249, allocations: 242.8 kB / 0.5086 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.5249, allocations: 0 / 0.5086 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.5249, allocations: 0 / 0.5086 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.759e-05/0.525, allocations: 11.98 kB / 0.5086 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.525, allocations: 7.953 kB / 0.5087 GB, free: 9.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.5252, allocations: 27.89 kB / 0.5087 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002402/0.5255, allocations: 263.8 kB / 0.5089 GB, free: 8.984 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,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,$PRE.bUF3S1.inertialDelaySensitive.y,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 () * 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.0002928/0.5258, allocations: 391.7 kB / 0.5093 GB, free: 8.543 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009637/0.5268, allocations: 0.6606 MB / 0.5099 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-05/0.5269, allocations: 79.06 kB / 0.51 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.5271, allocations: 135.2 kB / 0.5102 GB, free: 7.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.5271, allocations: 4 kB / 0.5102 GB, free: 7.656 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.5271, allocations: 4 kB / 0.5102 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.5271, allocations: 0 / 0.5102 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001467/0.5286, allocations: 1.182 MB / 0.5113 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5286, allocations: 0 / 0.5113 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.55e-05/0.5287, allocations: 4 kB / 0.5113 GB, free: 6.422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.5287, allocations: 3.984 kB / 0.5113 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/0.5287, allocations: 47.92 kB / 0.5114 GB, free: 6.371 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.5288, allocations: 4 kB / 0.5114 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5288, allocations: 0 / 0.5114 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000953/0.5297, allocations: 0.7562 MB / 0.5121 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000566/0.5303, allocations: 431.7 kB / 0.5125 GB, free: 5.152 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.5304, allocations: 23.94 kB / 0.5125 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.5307, allocations: 27.94 kB / 0.5126 GB, free: 5.102 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.5309, allocations: 75.91 kB / 0.5126 GB, free: 5.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000287/0.5312, allocations: 271.5 kB / 0.5129 GB, free: 4.762 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007823/0.532, allocations: 0.6548 MB / 0.5135 GB, free: 4.109 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.532, allocations: 0 / 0.5135 GB, free: 4.109 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004235/0.5324, allocations: 92 kB / 0.5136 GB, free: 4.02 MB / 394.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]) * 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.00133/0.5337, allocations: 1.331 MB / 0.5149 GB, free: 2.664 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009059/0.5347, allocations: 0.8741 MB / 0.5158 GB, free: 1.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5347, allocations: 0 / 0.5158 GB, free: 1.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006084/0.5353, allocations: 0.7492 MB / 0.5165 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.5363, allocations: 233.6 kB / 0.5167 GB, free: 0.625 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.5385, allocations: 1.178 MB / 0.5179 GB, free: 15.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.5393, allocations: 0.9559 MB / 0.5188 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003054/0.5396, allocations: 93.11 kB / 0.5189 GB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.5398, allocations: 87.34 kB / 0.519 GB, free: 14.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5398, allocations: 0 / 0.519 GB, free: 14.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03228/0.5721, allocations: 13.55 MB / 0.5322 GB, free: 0.543 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.5723, allocations: 125.3 kB / 0.5323 GB, free: 364 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/2.404, allocations: 7.938 kB / 0.5324 GB, free: 356 kB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat