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.0009617/0.0009616, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.306/1.306, allocations: 221.4 MB / 235.5 MB, free: 2.965 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.0008276/0.0008276, allocations: 87.8 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.046e-05/4.068e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.08967, allocations: 50.4 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.3701, allocations: 83.63 MB / 478 MB, free: 3.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.3704, allocations: 63.97 kB / 478 MB, free: 3.801 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08459/0.455, allocations: 43.76 MB / 0.5096 GB, free: 8.191 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.455, allocations: 4 kB / 0.5096 GB, free: 8.188 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.455, allocations: 8 kB / 0.5096 GB, free: 8.18 MB / 394.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.0008274/0.4559, allocations: 0.9484 MB / 0.5105 GB, free: 7.133 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.4559, allocations: 8.031 kB / 0.5105 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.038e-05/0.456, allocations: 54.53 kB / 0.5106 GB, free: 7.062 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.4561, allocations: 71.16 kB / 0.5106 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.4566, allocations: 379.9 kB / 0.511 GB, free: 6.578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.4566, allocations: 8.188 kB / 0.511 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.797e-05/0.4567, allocations: 20 kB / 0.511 GB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.4572, allocations: 303.1 kB / 0.5113 GB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4572, allocations: 0 / 0.5113 GB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/0.4573, allocations: 7.984 kB / 0.5113 GB, free: 6.238 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.4573, allocations: 4 kB / 0.5113 GB, free: 6.234 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002768/0.4576, allocations: 144.6 kB / 0.5114 GB, free: 6.094 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.4587, allocations: 0.7745 MB / 0.5122 GB, free: 5.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.4591, allocations: 210.5 kB / 0.5124 GB, free: 5.055 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.4593, allocations: 192.7 kB / 0.5126 GB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.4594, allocations: 4 kB / 0.5126 GB, free: 4.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004817/0.4599, allocations: 430.6 kB / 0.513 GB, free: 4.402 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 1.613e-06/0.4599, allocations: 0 / 0.513 GB, free: 4.402 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001196/0.4611, allocations: 0.8618 MB / 0.5138 GB, free: 3.484 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.4612, allocations: 281 kB / 0.5141 GB, free: 3.148 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.4622, allocations: 0.8312 MB / 0.5149 GB, free: 2.309 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.779e-05/0.4623, allocations: 37.7 kB / 0.515 GB, free: 2.266 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.69e-05/0.4624, allocations: 126 kB / 0.5151 GB, free: 2.141 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.4625, allocations: 63.25 kB / 0.5151 GB, free: 2.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.4625, allocations: 12 kB / 0.5152 GB, free: 2.066 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4626, allocations: 338.8 kB / 0.5155 GB, free: 1.727 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.4629, allocations: 140.2 kB / 0.5156 GB, free: 1.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.4632, allocations: 166.2 kB / 0.5158 GB, free: 1.422 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/0.4635, allocations: 361.5 kB / 0.5161 GB, free: 1.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4635, allocations: 0 / 0.5161 GB, free: 1.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001061/0.4646, allocations: 0.8151 MB / 0.5169 GB, free: 152 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.4647, allocations: 245.6 kB / 0.5171 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4647, allocations: 3.953 kB / 0.5171 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.4647, allocations: 4 kB / 0.5171 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.759e-05/0.4648, allocations: 8 kB / 0.5172 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4648, allocations: 0 / 0.5172 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.465, allocations: 35.83 kB / 0.5172 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002497/0.4653, allocations: 279.7 kB / 0.5175 GB, free: 15.54 MB / 410.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.0002783/0.4656, allocations: 390.5 kB / 0.5178 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.339e-05/0.4657, allocations: 75.16 kB / 0.5179 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.4659, allocations: 127 kB / 0.518 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4659, allocations: 7.953 kB / 0.518 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4659, allocations: 0 / 0.518 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.4659, allocations: 0 / 0.518 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.4677, allocations: 1.491 MB / 0.5195 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4677, allocations: 0 / 0.5195 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.486e-05/0.4677, allocations: 15.92 kB / 0.5195 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4677, allocations: 3.953 kB / 0.5195 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.915e-05/0.4678, allocations: 47.97 kB / 0.5196 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4678, allocations: 0 / 0.5196 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4678, allocations: 0 / 0.5196 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.469, allocations: 1.016 MB / 0.5205 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/0.4696, allocations: 427.8 kB / 0.521 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.4698, allocations: 27.95 kB / 0.521 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.47, allocations: 39.88 kB / 0.521 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.4702, allocations: 67.92 kB / 0.5211 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/0.4705, allocations: 271.5 kB / 0.5213 GB, free: 11.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008636/0.4713, allocations: 0.6861 MB / 0.522 GB, free: 10.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4713, allocations: 0 / 0.522 GB, free: 10.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000363/0.4717, allocations: 88 kB / 0.5221 GB, free: 10.54 MB / 410.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.001625/0.4733, allocations: 1.606 MB / 0.5237 GB, free: 8.855 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00093/0.4743, allocations: 0.9053 MB / 0.5245 GB, free: 7.852 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4743, allocations: 0 / 0.5245 GB, free: 7.852 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006384/0.4749, allocations: 0.7609 MB / 0.5253 GB, free: 6.992 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000929/0.4759, allocations: 231.5 kB / 0.5255 GB, free: 6.773 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.4778, allocations: 1.202 MB / 0.5267 GB, free: 5.535 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000613/0.4785, allocations: 0.9597 MB / 0.5276 GB, free: 4.547 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.4787, allocations: 89.12 kB / 0.5277 GB, free: 4.461 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.4788, allocations: 91.34 kB / 0.5278 GB, free: 4.371 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4788, allocations: 3.938 kB / 0.5278 GB, free: 4.367 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.5046, allocations: 14.12 MB / 0.5416 GB, free: 6.156 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.5048, allocations: 151.2 kB / 0.5417 GB, free: 5.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.387, allocations: 7.938 kB / 0.5417 GB, free: 5.922 MB / 426.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