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.001326/0.001326, 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.41/1.41, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009276/0.0009275, allocations: 89.06 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.779e-05/3.806e-05, allocations: 0 / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1268, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.4649, allocations: 84.97 MB / 487.1 MB, free: 4.434 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.4651, allocations: 66.91 kB / 487.2 MB, free: 4.402 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0662/0.5313, allocations: 35.09 MB / 0.51 GB, free: 3.285 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5314, allocations: 4 kB / 0.51 GB, free: 3.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.002e-05/0.5314, allocations: 12.84 kB / 0.51 GB, free: 3.27 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.001144/0.5326, allocations: 0.8801 MB / 0.5109 GB, free: 2.332 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.5326, allocations: 12.03 kB / 0.5109 GB, free: 2.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.5327, allocations: 50.55 kB / 0.5109 GB, free: 2.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.5329, allocations: 79.06 kB / 0.511 GB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.5334, allocations: 403.5 kB / 0.5114 GB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.5335, allocations: 16 kB / 0.5114 GB, free: 1.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.5335, allocations: 20 kB / 0.5114 GB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005432/0.5341, allocations: 289.5 kB / 0.5117 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.5341, allocations: 6.422 kB / 0.5117 GB, free: 1.418 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.5342, allocations: 15.98 kB / 0.5117 GB, free: 1.402 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.5342, allocations: 4 kB / 0.5117 GB, free: 1.398 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003786/0.5346, allocations: 199.9 kB / 0.5119 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.536, allocations: 0.8778 MB / 0.5128 GB, free: 280 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.5365, allocations: 218.5 kB / 0.513 GB, free: 52 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.5367, allocations: 148.8 kB / 0.5131 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.5368, allocations: 4 kB / 0.5131 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.5373, allocations: 385.9 kB / 0.5135 GB, free: 15.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 5.851e-06/0.5373, allocations: 0 / 0.5135 GB, free: 15.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.001052/0.5384, allocations: 0.5853 MB / 0.5141 GB, free: 14.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.756e-05/0.5385, allocations: 174.4 kB / 0.5142 GB, free: 14.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.5398, allocations: 0.886 MB / 0.5151 GB, free: 13.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/0.5399, allocations: 33.7 kB / 0.5151 GB, free: 13.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.54, allocations: 153.9 kB / 0.5153 GB, free: 13.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.181e-05/0.5401, allocations: 59.28 kB / 0.5153 GB, free: 13.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.5401, allocations: 8 kB / 0.5153 GB, free: 13.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.5403, allocations: 330.8 kB / 0.5157 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.5405, allocations: 128 kB / 0.5158 GB, free: 13.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.5408, allocations: 146.5 kB / 0.5159 GB, free: 12.89 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.5411, allocations: 218.8 kB / 0.5161 GB, free: 12.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.5411, allocations: 4 kB / 0.5161 GB, free: 12.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008156/0.5419, allocations: 0.5639 MB / 0.5167 GB, free: 12.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.323e-05/0.542, allocations: 130.8 kB / 0.5168 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.542, allocations: 4 kB / 0.5168 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.5421, allocations: 0 / 0.5168 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.5422, allocations: 19.92 kB / 0.5168 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5422, allocations: 0 / 0.5168 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/0.5425, allocations: 35.88 kB / 0.5169 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.5427, allocations: 115.8 kB / 0.517 GB, free: 11.74 MB / 394.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.0002295/0.5429, allocations: 273.9 kB / 0.5172 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.543, allocations: 75.16 kB / 0.5173 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002513/0.5433, allocations: 130.3 kB / 0.5174 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.5433, allocations: 0 / 0.5174 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5433, allocations: 8.031 kB / 0.5174 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.5433, allocations: 3.984 kB / 0.5175 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007955/0.5441, allocations: 0.6335 MB / 0.5181 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.5441, allocations: 0 / 0.5181 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.58e-05/0.5442, allocations: 15.98 kB / 0.5181 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.5442, allocations: 0.9375 kB / 0.5181 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.528e-05/0.5443, allocations: 23.98 kB / 0.5181 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.5443, allocations: 4 kB / 0.5181 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5443, allocations: 0 / 0.5181 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009623/0.5452, allocations: 0.6722 MB / 0.5188 GB, free: 9.781 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007494/0.546, allocations: 0.4957 MB / 0.5193 GB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.5461, allocations: 24 kB / 0.5193 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.5464, allocations: 27.97 kB / 0.5193 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.5466, allocations: 55.94 kB / 0.5194 GB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.5467, allocations: 112.5 kB / 0.5195 GB, free: 9.051 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009772/0.5477, allocations: 0.7212 MB / 0.5202 GB, free: 8.336 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5477, allocations: 0 / 0.5202 GB, free: 8.336 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003742/0.5481, allocations: 88 kB / 0.5203 GB, free: 8.25 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: 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.001275/0.5494, allocations: 1.255 MB / 0.5215 GB, free: 6.941 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008177/0.5502, allocations: 0.6407 MB / 0.5221 GB, free: 6.254 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5502, allocations: 0 / 0.5221 GB, free: 6.254 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004688/0.5507, allocations: 0.5287 MB / 0.5226 GB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.5514, allocations: 166.4 kB / 0.5228 GB, free: 5.512 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.5534, allocations: 1.224 MB / 0.524 GB, free: 4.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.554, allocations: 0.976 MB / 0.5249 GB, free: 3.246 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.5545, allocations: 165 kB / 0.5251 GB, free: 3.086 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.5547, allocations: 135.2 kB / 0.5252 GB, free: 2.953 MB / 394.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5547, allocations: 0 / 0.5252 GB, free: 2.953 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.5773, allocations: 9.13 MB / 0.5341 GB, free: 9.996 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.5776, allocations: 156 kB / 0.5343 GB, free: 9.77 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.461, allocations: 0 / 0.5343 GB, free: 9.77 MB / 410.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