Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009359/0.0009359, allocations: 93.53 kB / 292.1 MB, free: 5.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.314e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3345/0.4445, allocations: 84.44 MB / 486.6 MB, free: 4.949 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.4447, allocations: 66.78 kB / 486.6 MB, free: 4.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08424/0.529, allocations: 43.83 MB / 0.518 GB, free: 11.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.529, allocations: 0 / 0.518 GB, free: 11.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.972e-05/0.5291, allocations: 8 kB / 0.518 GB, free: 11.16 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.001001/0.5301, allocations: 0.952 MB / 0.5189 GB, free: 10.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5301, allocations: 12.03 kB / 0.519 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.828e-05/0.5302, allocations: 51.05 kB / 0.519 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5304, allocations: 75.16 kB / 0.5191 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005491/0.5309, allocations: 368 kB / 0.5194 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.531, allocations: 12.19 kB / 0.5194 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.945e-05/0.531, allocations: 20 kB / 0.5195 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.5316, allocations: 291.8 kB / 0.5197 GB, free: 9.234 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.5316, allocations: 2.156 kB / 0.5197 GB, free: 9.234 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.136e-05/0.5317, allocations: 11.95 kB / 0.5198 GB, free: 9.223 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.5317, allocations: 0 / 0.5198 GB, free: 9.223 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.532, allocations: 148.6 kB / 0.5199 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.5332, allocations: 0.7783 MB / 0.5207 GB, free: 8.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.5336, allocations: 210.5 kB / 0.5209 GB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.5339, allocations: 192.8 kB / 0.521 GB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.5339, allocations: 0 / 0.521 GB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005091/0.5344, allocations: 421.9 kB / 0.5214 GB, free: 7.395 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 1.853e-06/0.5344, allocations: 0 / 0.5214 GB, free: 7.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001237/0.5357, allocations: 0.86 MB / 0.5223 GB, free: 6.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.5358, allocations: 285 kB / 0.5226 GB, free: 6.141 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/0.5369, allocations: 0.8274 MB / 0.5234 GB, free: 5.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.537, allocations: 41.7 kB / 0.5234 GB, free: 5.258 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.216e-05/0.537, allocations: 122 kB / 0.5235 GB, free: 5.137 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.966e-05/0.5371, allocations: 63.25 kB / 0.5236 GB, free: 5.074 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.082e-05/0.5372, allocations: 12 kB / 0.5236 GB, free: 5.062 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5373, allocations: 334.8 kB / 0.5239 GB, free: 4.727 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.5376, allocations: 144.2 kB / 0.524 GB, free: 4.586 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.5378, allocations: 170.1 kB / 0.5242 GB, free: 4.414 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.5382, allocations: 361.4 kB / 0.5246 GB, free: 4.012 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.5382, allocations: 0 / 0.5246 GB, free: 4.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001101/0.5393, allocations: 0.8218 MB / 0.5254 GB, free: 3.137 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.5395, allocations: 242.8 kB / 0.5256 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5395, allocations: 0 / 0.5256 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.5395, allocations: 0 / 0.5256 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.543e-05/0.5396, allocations: 19.92 kB / 0.5256 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.5396, allocations: 4 kB / 0.5256 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.5398, allocations: 31.92 kB / 0.5256 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/0.5401, allocations: 271.7 kB / 0.5259 GB, free: 2.531 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.0003149/0.5404, allocations: 394.4 kB / 0.5263 GB, free: 2.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-05/0.5405, allocations: 75.16 kB / 0.5263 GB, free: 2.016 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.5408, allocations: 131 kB / 0.5265 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.5408, allocations: 0 / 0.5265 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5408, allocations: 0 / 0.5265 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5408, allocations: 4 kB / 0.5265 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.5427, allocations: 1.485 MB / 0.5279 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.5427, allocations: 4 kB / 0.5279 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.525e-05/0.5427, allocations: 7.938 kB / 0.5279 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.5427, allocations: 0 / 0.5279 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.205e-05/0.5428, allocations: 47.95 kB / 0.528 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.5428, allocations: 0 / 0.528 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5428, allocations: 0 / 0.528 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.5441, allocations: 1.024 MB / 0.529 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006343/0.5447, allocations: 427.8 kB / 0.5294 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.5448, allocations: 20 kB / 0.5294 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/0.5451, allocations: 31.89 kB / 0.5294 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.5453, allocations: 71.91 kB / 0.5295 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000268/0.5456, allocations: 267.5 kB / 0.5298 GB, free: 14.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000894/0.5465, allocations: 0.69 MB / 0.5304 GB, free: 13.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5465, allocations: 3.938 kB / 0.5304 GB, free: 13.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004621/0.547, allocations: 92 kB / 0.5305 GB, free: 13.55 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.001819/0.5488, allocations: 1.606 MB / 0.5321 GB, free: 11.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.5499, allocations: 0.8975 MB / 0.533 GB, free: 10.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5499, allocations: 4.062 kB / 0.533 GB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.5506, allocations: 0.7608 MB / 0.5337 GB, free: 10 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009667/0.5515, allocations: 223.5 kB / 0.5339 GB, free: 9.789 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.5537, allocations: 1.214 MB / 0.5351 GB, free: 8.539 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006551/0.5543, allocations: 0.9636 MB / 0.5361 GB, free: 7.547 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002597/0.5546, allocations: 94.33 kB / 0.5362 GB, free: 7.457 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.5548, allocations: 79.36 kB / 0.5362 GB, free: 7.379 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5548, allocations: 0 / 0.5362 GB, free: 7.379 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.5812, allocations: 14.15 MB / 0.55 GB, free: 9.195 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/0.5814, allocations: 147.3 kB / 0.5502 GB, free: 8.973 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.566, allocations: 4.062 kB / 0.5502 GB, free: 8.969 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat