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.001174/0.001175, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008852/0.0008852, allocations: 109.5 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001961/0.0001961, allocations: 8 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1821, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09085/0.273, allocations: 85.03 MB / 494.5 MB, free: 5.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.2732, allocations: 78.36 kB / 494.6 MB, free: 5.465 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2177/0.4909, allocations: 34.87 MB / 0.5171 GB, free: 93.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.491, allocations: 0 / 0.5171 GB, free: 93.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.491, allocations: 9.781 kB / 0.5171 GB, free: 93.26 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.0008415/0.4919, allocations: 0.9947 MB / 0.518 GB, free: 92.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.4919, allocations: 7.938 kB / 0.518 GB, free: 92.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.372e-05/0.492, allocations: 54.39 kB / 0.5181 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.028e-05/0.4921, allocations: 86.48 kB / 0.5182 GB, free: 92.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.4925, allocations: 411.3 kB / 0.5186 GB, free: 91.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.4926, allocations: 13.25 kB / 0.5186 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.4926, allocations: 20.88 kB / 0.5186 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.4931, allocations: 303.3 kB / 0.5189 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.4931, allocations: 0 / 0.5189 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.863e-05/0.4932, allocations: 6.969 kB / 0.5189 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.4932, allocations: 3.719 kB / 0.5189 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003552/0.4936, allocations: 207.1 kB / 0.5191 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.4946, allocations: 0.8805 MB / 0.52 GB, free: 90.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.495, allocations: 222 kB / 0.5202 GB, free: 90.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.495, allocations: 0 / 0.5202 GB, free: 90.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.4954, allocations: 387.7 kB / 0.5205 GB, free: 90.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.4954, allocations: 0 / 0.5205 GB, free: 90.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.00106/0.4965, allocations: 0.892 MB / 0.5214 GB, free: 89.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.4965, allocations: 178.2 kB / 0.5216 GB, free: 89.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008321/0.4974, allocations: 0.8782 MB / 0.5224 GB, free: 88.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.4974, allocations: 37.7 kB / 0.5225 GB, free: 88.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.107e-05/0.4975, allocations: 149.7 kB / 0.5226 GB, free: 88.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.491e-05/0.4976, allocations: 55.19 kB / 0.5227 GB, free: 88.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.4976, allocations: 11.94 kB / 0.5227 GB, free: 88.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.362e-05/0.4977, allocations: 342.8 kB / 0.523 GB, free: 87.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.4979, allocations: 116 kB / 0.5231 GB, free: 87.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.4981, allocations: 169.6 kB / 0.5233 GB, free: 87.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.4983, allocations: 231.8 kB / 0.5235 GB, free: 87.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4983, allocations: 0 / 0.5235 GB, free: 87.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007262/0.4991, allocations: 0.565 MB / 0.5241 GB, free: 86.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/0.4991, allocations: 134.8 kB / 0.5242 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4992, allocations: 0 / 0.5242 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.4992, allocations: 8 kB / 0.5242 GB, free: 86.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.897e-05/0.4992, allocations: 23.78 kB / 0.5242 GB, free: 86.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.4993, allocations: 4 kB / 0.5242 GB, free: 86.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.4995, allocations: 39.81 kB / 0.5243 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-05/0.4996, allocations: 111.9 kB / 0.5244 GB, free: 86.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,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,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,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 () * Number of clocked 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.0004036/0.5, allocations: 0.5336 MB / 0.5249 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.5001, allocations: 79.06 kB / 0.525 GB, free: 85.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.5002, allocations: 134.4 kB / 0.5251 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.5002, allocations: 0 / 0.5251 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.5003, allocations: 3.953 kB / 0.5251 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.5003, allocations: 0 / 0.5251 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004867/0.5008, allocations: 0.6175 MB / 0.5257 GB, free: 85.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5008, allocations: 128 / 0.5257 GB, free: 85.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.5008, allocations: 23.98 kB / 0.5257 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.5008, allocations: 0 / 0.5257 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.5009, allocations: 27.98 kB / 0.5257 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5009, allocations: 0 / 0.5257 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.5009, allocations: 3.953 kB / 0.5258 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007832/0.5017, allocations: 0.6822 MB / 0.5264 GB, free: 84.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000526/0.5022, allocations: 0.4919 MB / 0.5269 GB, free: 83.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.514e-05/0.5023, allocations: 20 kB / 0.5269 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.5025, allocations: 31.88 kB / 0.5269 GB, free: 83.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.5026, allocations: 55.94 kB / 0.527 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.5027, allocations: 123.8 kB / 0.5271 GB, free: 83.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006866/0.5034, allocations: 0.7211 MB / 0.5278 GB, free: 82.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5034, allocations: 0 / 0.5278 GB, free: 82.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003014/0.5037, allocations: 84 kB / 0.5279 GB, free: 82.7 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) * Number of clocked states: 0 () * 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.0009759/0.5047, allocations: 1.258 MB / 0.5291 GB, free: 81.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006516/0.5054, allocations: 0.6652 MB / 0.5298 GB, free: 80.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5054, allocations: 3.938 kB / 0.5298 GB, free: 80.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.5058, allocations: 0.5251 MB / 0.5303 GB, free: 80.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.5064, allocations: 164.4 kB / 0.5305 GB, free: 79.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.5099, allocations: 3.47 MB / 0.5338 GB, free: 76.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.5103, allocations: 0.9795 MB / 0.5348 GB, free: 75.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003347/0.5107, allocations: 161.2 kB / 0.535 GB, free: 75.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.5109, allocations: 135.4 kB / 0.5351 GB, free: 75.11 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5109, allocations: 0 / 0.5351 GB, free: 75.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.5286, allocations: 9.112 MB / 0.544 GB, free: 66.15 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001153/0.5288, allocations: 181.3 kB / 0.5442 GB, free: 65.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.389, allocations: 0 / 0.5442 GB, free: 65.91 MB / 378.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