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.0009923/0.0009923, allocations: 181 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008567/0.0008566, allocations: 91.25 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003326, allocations: 11.94 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2147, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09591/0.3107, allocations: 83.69 MB / 485.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00019/0.3109, allocations: 68.5 kB / 485.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2418/0.5527, allocations: 43.44 MB / 0.5164 GB, free: 96.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5528, allocations: 0 / 0.5164 GB, free: 96.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.5528, allocations: 7.031 kB / 0.5164 GB, free: 96.41 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.00105/0.5538, allocations: 1.062 MB / 0.5174 GB, free: 95.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.5539, allocations: 6.688 kB / 0.5174 GB, free: 95.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.954e-05/0.554, allocations: 53.67 kB / 0.5175 GB, free: 95.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.5541, allocations: 78.58 kB / 0.5176 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004646/0.5546, allocations: 376.6 kB / 0.5179 GB, free: 95.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.5546, allocations: 15.16 kB / 0.5179 GB, free: 95.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.5547, allocations: 18.16 kB / 0.5179 GB, free: 95.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/0.5552, allocations: 299.5 kB / 0.5182 GB, free: 94.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.5552, allocations: 0 / 0.5182 GB, free: 94.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.007e-05/0.5553, allocations: 10.97 kB / 0.5182 GB, free: 94.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.5553, allocations: 3.656 kB / 0.5182 GB, free: 94.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002778/0.5556, allocations: 149.6 kB / 0.5184 GB, free: 94.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.5567, allocations: 0.7603 MB / 0.5191 GB, free: 94.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.557, allocations: 214.5 kB / 0.5193 GB, free: 94.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.557, allocations: 11.95 kB / 0.5193 GB, free: 94.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/0.5575, allocations: 438.4 kB / 0.5198 GB, free: 93.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.535e-06/0.5575, allocations: 3.984 kB / 0.5198 GB, free: 93.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001408/0.5589, allocations: 1.336 MB / 0.5211 GB, free: 92.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.559, allocations: 285 kB / 0.5213 GB, free: 91.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008944/0.5599, allocations: 0.8312 MB / 0.5222 GB, free: 90.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.56, allocations: 37.7 kB / 0.5222 GB, free: 90.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.56, allocations: 134 kB / 0.5223 GB, free: 90.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.952e-05/0.5601, allocations: 59.11 kB / 0.5224 GB, free: 90.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.5601, allocations: 12 kB / 0.5224 GB, free: 90.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.5602, allocations: 330.8 kB / 0.5227 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.5605, allocations: 144.2 kB / 0.5228 GB, free: 90.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.5607, allocations: 176.7 kB / 0.523 GB, free: 90.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.561, allocations: 377.3 kB / 0.5234 GB, free: 89.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.561, allocations: 0 / 0.5234 GB, free: 89.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009528/0.562, allocations: 0.8228 MB / 0.5242 GB, free: 88.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.5621, allocations: 253.5 kB / 0.5244 GB, free: 88.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.5621, allocations: 0 / 0.5244 GB, free: 88.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.5621, allocations: 0 / 0.5244 GB, free: 88.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.911e-05/0.5621, allocations: 8 kB / 0.5244 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.5621, allocations: 3.844 kB / 0.5244 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.5624, allocations: 39.91 kB / 0.5245 GB, free: 88.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/0.5626, allocations: 264.5 kB / 0.5247 GB, free: 88.12 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.0005036/0.5631, allocations: 0.6044 MB / 0.5253 GB, free: 87.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.5632, allocations: 79.06 kB / 0.5254 GB, free: 87.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.5634, allocations: 130.8 kB / 0.5255 GB, free: 87.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.5634, allocations: 4 kB / 0.5255 GB, free: 87.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5634, allocations: 4 kB / 0.5255 GB, free: 87.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.5634, allocations: 3.844 kB / 0.5255 GB, free: 87.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.5649, allocations: 1.483 MB / 0.527 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.565, allocations: 0 / 0.527 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.531e-05/0.565, allocations: 7.953 kB / 0.527 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.565, allocations: 4 kB / 0.527 GB, free: 85.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.094e-05/0.565, allocations: 43.97 kB / 0.527 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5651, allocations: 0 / 0.527 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5651, allocations: 3.844 kB / 0.527 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.5661, allocations: 1.035 MB / 0.528 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005686/0.5667, allocations: 427.7 kB / 0.5284 GB, free: 84.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.5668, allocations: 27.95 kB / 0.5285 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.5671, allocations: 27.97 kB / 0.5285 GB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.5673, allocations: 71.59 kB / 0.5286 GB, free: 83.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.5674, allocations: 271.7 kB / 0.5288 GB, free: 83.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007305/0.5682, allocations: 0.6938 MB / 0.5295 GB, free: 82.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5682, allocations: 0 / 0.5295 GB, free: 82.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004149/0.5686, allocations: 92 kB / 0.5296 GB, free: 82.89 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.001373/0.57, allocations: 1.631 MB / 0.5312 GB, free: 81.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008428/0.5709, allocations: 0.909 MB / 0.5321 GB, free: 80.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5709, allocations: 0 / 0.5321 GB, free: 80.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004975/0.5714, allocations: 0.7646 MB / 0.5328 GB, free: 79.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008208/0.5722, allocations: 239.6 kB / 0.533 GB, free: 79.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.576, allocations: 3.292 MB / 0.5363 GB, free: 75.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.5764, allocations: 0.952 MB / 0.5372 GB, free: 74.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000215/0.5767, allocations: 94.53 kB / 0.5373 GB, free: 74.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.5768, allocations: 91.33 kB / 0.5374 GB, free: 74.59 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5768, allocations: 0 / 0.5374 GB, free: 74.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.6006, allocations: 14.11 MB / 0.5511 GB, free: 60.55 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001161/0.6007, allocations: 168.6 kB / 0.5513 GB, free: 60.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.484, allocations: 0 / 0.5513 GB, free: 60.31 MB / 378.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