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.001534/0.001534, allocations: 197.7 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001133, allocations: 99.31 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.243e-05/2.244e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 51.47 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3273/0.4325, allocations: 83.77 MB / 479 MB, free: 8.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.4328, allocations: 65.84 kB / 479.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0851/0.5179, allocations: 43.5 MB / 0.5103 GB, free: 3.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.518, allocations: 0 / 0.5103 GB, free: 3.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.487e-05/0.518, allocations: 8 kB / 0.5104 GB, free: 3.312 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.00146/0.5195, allocations: 0.9592 MB / 0.5113 GB, free: 2.254 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.5195, allocations: 8.031 kB / 0.5113 GB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.5198, allocations: 75.09 kB / 0.5114 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007195/0.5205, allocations: 364.1 kB / 0.5117 GB, free: 1.777 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.183e-05/0.5205, allocations: 15.94 kB / 0.5117 GB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-05/0.5206, allocations: 20 kB / 0.5117 GB, free: 1.742 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004043/0.5211, allocations: 132.4 kB / 0.5119 GB, free: 1.609 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006493/0.5217, allocations: 275 kB / 0.5121 GB, free: 1.336 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.5218, allocations: 0 / 0.5121 GB, free: 1.336 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-05/0.5218, allocations: 11.95 kB / 0.5121 GB, free: 1.324 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/0.5219, allocations: 4 kB / 0.5122 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.5237, allocations: 0.7316 MB / 0.5129 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004447/0.5241, allocations: 206.4 kB / 0.5131 GB, free: 348 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.5245, allocations: 173.6 kB / 0.5132 GB, free: 172 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.5246, allocations: 8 kB / 0.5132 GB, free: 164 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007316/0.5253, allocations: 417.9 kB / 0.5136 GB, free: 15.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.114e-06/0.5253, allocations: 0 / 0.5136 GB, free: 15.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.00157/0.5269, allocations: 0.6085 MB / 0.5142 GB, free: 15.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/0.5271, allocations: 281 kB / 0.5145 GB, free: 14.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.5288, allocations: 0.7961 MB / 0.5153 GB, free: 13.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.737e-05/0.5289, allocations: 37.7 kB / 0.5153 GB, free: 13.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.529, allocations: 126 kB / 0.5154 GB, free: 13.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.5292, allocations: 61.98 kB / 0.5155 GB, free: 13.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.413e-05/0.5293, allocations: 8 kB / 0.5155 GB, free: 13.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.5295, allocations: 334.8 kB / 0.5158 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.5298, allocations: 136.2 kB / 0.5159 GB, free: 13.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.5301, allocations: 150.2 kB / 0.5161 GB, free: 13.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.5304, allocations: 119.9 kB / 0.5162 GB, free: 12.99 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5305, allocations: 4 kB / 0.5162 GB, free: 12.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001403/0.5319, allocations: 0.5741 MB / 0.5168 GB, free: 12.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00023/0.5321, allocations: 245.6 kB / 0.517 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.5321, allocations: 0 / 0.517 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.5322, allocations: 0 / 0.517 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.49e-05/0.5322, allocations: 8 kB / 0.517 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.5322, allocations: 0 / 0.517 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.5327, allocations: 31.88 kB / 0.517 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003987/0.5331, allocations: 267.7 kB / 0.5173 GB, free: 11.82 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.0004341/0.5335, allocations: 391.8 kB / 0.5177 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001009/0.5346, allocations: 0.6563 MB / 0.5183 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.5347, allocations: 79.06 kB / 0.5184 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.535, allocations: 131.3 kB / 0.5185 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.535, allocations: 4 kB / 0.5185 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.535, allocations: 0 / 0.5185 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.535, allocations: 4 kB / 0.5185 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.5367, allocations: 1.186 MB / 0.5197 GB, free: 9.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5367, allocations: 0 / 0.5197 GB, free: 9.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.767e-05/0.5368, allocations: 7.984 kB / 0.5197 GB, free: 9.262 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.5368, allocations: 0 / 0.5197 GB, free: 9.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-05/0.5368, allocations: 47.97 kB / 0.5197 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.5369, allocations: 0 / 0.5197 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5369, allocations: 0 / 0.5197 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.538, allocations: 0.7617 MB / 0.5205 GB, free: 8.438 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006456/0.5386, allocations: 427.7 kB / 0.5209 GB, free: 8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.5388, allocations: 24 kB / 0.5209 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.5391, allocations: 27.97 kB / 0.5209 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.5393, allocations: 71.92 kB / 0.521 GB, free: 7.879 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002792/0.5395, allocations: 271.5 kB / 0.5213 GB, free: 7.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008842/0.5404, allocations: 0.647 MB / 0.5219 GB, free: 6.969 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5404, allocations: 0 / 0.5219 GB, free: 6.969 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000454/0.5409, allocations: 92 kB / 0.522 GB, free: 6.879 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.001558/0.5425, allocations: 1.35 MB / 0.5233 GB, free: 5.508 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.5435, allocations: 0.8702 MB / 0.5241 GB, free: 4.539 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.5435, allocations: 4.062 kB / 0.5242 GB, free: 4.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006525/0.5442, allocations: 0.7453 MB / 0.5249 GB, free: 3.691 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.5452, allocations: 229.4 kB / 0.5251 GB, free: 3.477 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.5475, allocations: 1.181 MB / 0.5263 GB, free: 2.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007235/0.5483, allocations: 0.9559 MB / 0.5272 GB, free: 1.266 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002916/0.5486, allocations: 93.2 kB / 0.5273 GB, free: 1.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.5487, allocations: 87.36 kB / 0.5274 GB, free: 1.094 MB / 394.7 MB Notification: Performance of SimCode: time 2.505e-06/0.5488, allocations: 0 / 0.5274 GB, free: 1.094 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03815/0.5869, allocations: 13.55 MB / 0.5406 GB, free: 3.414 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/0.5872, allocations: 125 kB / 0.5407 GB, free: 3.227 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.495, allocations: 7.938 kB / 0.5407 GB, free: 3.219 MB / 410.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