Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.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.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009797/0.0009801, allocations: 97.41 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.076e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 51.47 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.35/0.4767, allocations: 84.29 MB / 479.5 MB, free: 8.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.4769, allocations: 77.5 kB / 479.6 MB, free: 8.551 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06275/0.5397, allocations: 34.86 MB / 0.5024 GB, free: 11.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5397, allocations: 0 / 0.5024 GB, free: 11.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.5397, allocations: 12 kB / 0.5024 GB, free: 11.33 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0009592/0.5407, allocations: 0.8826 MB / 0.5033 GB, free: 10.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.5408, allocations: 12.03 kB / 0.5033 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.5409, allocations: 79.06 kB / 0.5034 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004885/0.5414, allocations: 407.5 kB / 0.5038 GB, free: 9.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.5414, allocations: 9.781 kB / 0.5038 GB, free: 9.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.5415, allocations: 16 kB / 0.5038 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003473/0.5418, allocations: 191.9 kB / 0.504 GB, free: 9.656 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004486/0.5423, allocations: 269.5 kB / 0.5042 GB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.5423, allocations: 3.984 kB / 0.5042 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.5424, allocations: 4 kB / 0.5042 GB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.5424, allocations: 4 kB / 0.5043 GB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.5436, allocations: 0.8325 MB / 0.5051 GB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.5439, allocations: 202.5 kB / 0.5053 GB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.5441, allocations: 148.8 kB / 0.5054 GB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.5442, allocations: 0 / 0.5054 GB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004272/0.5446, allocations: 371.3 kB / 0.5058 GB, free: 7.746 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.5446, allocations: 0 / 0.5058 GB, free: 7.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007751/0.5454, allocations: 464.6 kB / 0.5062 GB, free: 7.285 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.5455, allocations: 182.1 kB / 0.5064 GB, free: 7.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.5466, allocations: 0.8392 MB / 0.5072 GB, free: 6.223 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/0.5466, allocations: 37.7 kB / 0.5072 GB, free: 6.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.5467, allocations: 147.6 kB / 0.5074 GB, free: 6.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.5468, allocations: 59.3 kB / 0.5074 GB, free: 5.977 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.5469, allocations: 4 kB / 0.5074 GB, free: 5.973 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.547, allocations: 338.9 kB / 0.5078 GB, free: 5.633 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.5472, allocations: 116 kB / 0.5079 GB, free: 5.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.5475, allocations: 142.5 kB / 0.508 GB, free: 5.371 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.5476, allocations: 95.83 kB / 0.5081 GB, free: 5.281 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5477, allocations: 0 / 0.5081 GB, free: 5.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007214/0.5484, allocations: 437.1 kB / 0.5085 GB, free: 4.844 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.5485, allocations: 130.8 kB / 0.5086 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.5485, allocations: 0 / 0.5086 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.5486, allocations: 4 kB / 0.5086 GB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.874e-05/0.5487, allocations: 11.94 kB / 0.5086 GB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.5487, allocations: 8 kB / 0.5087 GB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.549, allocations: 31.88 kB / 0.5087 GB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.5491, allocations: 119.9 kB / 0.5088 GB, free: 4.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0002799/0.5494, allocations: 265.9 kB / 0.5091 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000794/0.5502, allocations: 0.4939 MB / 0.5095 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.716e-05/0.5503, allocations: 80.94 kB / 0.5096 GB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002277/0.5506, allocations: 130.2 kB / 0.5097 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.5506, allocations: 0 / 0.5097 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.5506, allocations: 0 / 0.5097 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.5506, allocations: 0 / 0.5097 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007868/0.5514, allocations: 0.5873 MB / 0.5103 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.5514, allocations: 0 / 0.5103 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.001e-05/0.5515, allocations: 12.12 kB / 0.5103 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.5515, allocations: 3.938 kB / 0.5103 GB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.5515, allocations: 31.98 kB / 0.5104 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.5515, allocations: 3.984 kB / 0.5104 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.5516, allocations: 0 / 0.5104 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007573/0.5523, allocations: 0.5232 MB / 0.5109 GB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006158/0.5529, allocations: 0.4919 MB / 0.5114 GB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.5531, allocations: 20 kB / 0.5114 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.5533, allocations: 19.98 kB / 0.5114 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.5534, allocations: 71.84 kB / 0.5115 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.5536, allocations: 111.9 kB / 0.5116 GB, free: 1.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008456/0.5544, allocations: 0.6822 MB / 0.5122 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5544, allocations: 2.906 kB / 0.5122 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004035/0.5549, allocations: 84 kB / 0.5123 GB, free: 0.8086 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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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.001185/0.556, allocations: 1.103 MB / 0.5134 GB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006997/0.5568, allocations: 0.6187 MB / 0.514 GB, free: 15.01 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5568, allocations: 0 / 0.514 GB, free: 15.01 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.5572, allocations: 0.5132 MB / 0.5145 GB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/0.558, allocations: 168.6 kB / 0.5147 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.56, allocations: 1.207 MB / 0.5158 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006255/0.5606, allocations: 0.9835 MB / 0.5168 GB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003789/0.561, allocations: 156.9 kB / 0.5169 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.5612, allocations: 131.2 kB / 0.5171 GB, free: 11.75 MB / 394.7 MB Notification: Performance of SimCode: time 2.394e-06/0.5612, allocations: 4 kB / 0.5171 GB, free: 11.74 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.5883, allocations: 8.553 MB / 0.5254 GB, free: 3.23 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/0.5886, allocations: 132.7 kB / 0.5256 GB, free: 3.039 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.401, allocations: 0 / 0.5256 GB, free: 3.039 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat