Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008719/0.0008718, allocations: 86.2 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.965e-05/1.966e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4734, allocations: 83.48 MB / 471 MB, free: 11.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.4736, allocations: 75.95 kB / 471.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06664/0.5403, allocations: 34.8 MB / 0.4941 GB, free: 8.402 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5403, allocations: 0 / 0.4941 GB, free: 8.402 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.5403, allocations: 12 kB / 0.4941 GB, free: 8.391 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.001007/0.5414, allocations: 0.8817 MB / 0.4949 GB, free: 7.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.5414, allocations: 12.03 kB / 0.4949 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.5415, allocations: 79.06 kB / 0.495 GB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.5421, allocations: 399.6 kB / 0.4954 GB, free: 6.918 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.5421, allocations: 12 kB / 0.4954 GB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.5422, allocations: 16 kB / 0.4954 GB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003587/0.5425, allocations: 187.9 kB / 0.4956 GB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004523/0.543, allocations: 273.4 kB / 0.4959 GB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.543, allocations: 0 / 0.4959 GB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.5431, allocations: 7.984 kB / 0.4959 GB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.5431, allocations: 4 kB / 0.4959 GB, free: 6.422 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.5444, allocations: 0.848 MB / 0.4967 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.5447, allocations: 198.7 kB / 0.4969 GB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.5449, allocations: 152.8 kB / 0.497 GB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.545, allocations: 0 / 0.497 GB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000444/0.5454, allocations: 372.5 kB / 0.4974 GB, free: 4.773 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 4.528e-06/0.5454, allocations: 96 / 0.4974 GB, free: 4.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008001/0.5462, allocations: 464.5 kB / 0.4978 GB, free: 4.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.5464, allocations: 170.2 kB / 0.498 GB, free: 4.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.5475, allocations: 0.8432 MB / 0.4988 GB, free: 3.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.5475, allocations: 29.7 kB / 0.4988 GB, free: 3.223 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.5476, allocations: 157.9 kB / 0.499 GB, free: 3.066 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.403e-05/0.5477, allocations: 59.23 kB / 0.4991 GB, free: 3.008 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.5478, allocations: 0 / 0.4991 GB, free: 3.008 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5479, allocations: 338.8 kB / 0.4994 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.5481, allocations: 116 kB / 0.4995 GB, free: 2.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.5483, allocations: 146.5 kB / 0.4996 GB, free: 2.402 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.5485, allocations: 91.97 kB / 0.4997 GB, free: 2.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5485, allocations: 0 / 0.4997 GB, free: 2.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006985/0.5492, allocations: 433.1 kB / 0.5001 GB, free: 1.883 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001383/0.5493, allocations: 136.2 kB / 0.5003 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.5494, allocations: 0 / 0.5003 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.5494, allocations: 0 / 0.5003 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.519e-05/0.5495, allocations: 16 kB / 0.5003 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.5495, allocations: 7.938 kB / 0.5003 GB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.5498, allocations: 35.91 kB / 0.5003 GB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.5499, allocations: 111.9 kB / 0.5004 GB, free: 1.559 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.000241/0.5501, allocations: 266 kB / 0.5007 GB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007947/0.5509, allocations: 0.5004 MB / 0.5012 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.243e-05/0.551, allocations: 79.06 kB / 0.5012 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00025/0.5513, allocations: 130.2 kB / 0.5014 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.5513, allocations: 4.125 kB / 0.5014 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.5513, allocations: 4 kB / 0.5014 GB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.5513, allocations: 4.031 kB / 0.5014 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008153/0.5522, allocations: 0.5759 MB / 0.5019 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.5522, allocations: 7.953 kB / 0.5019 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.914e-05/0.5522, allocations: 12 kB / 0.502 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.5522, allocations: 0 / 0.502 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.5523, allocations: 31.92 kB / 0.502 GB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.5523, allocations: 3.984 kB / 0.502 GB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5523, allocations: 0 / 0.502 GB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008082/0.5531, allocations: 0.5228 MB / 0.5025 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006761/0.5538, allocations: 0.4958 MB / 0.503 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5539, allocations: 20 kB / 0.503 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.5542, allocations: 19.98 kB / 0.503 GB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.5544, allocations: 59.92 kB / 0.5031 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.5545, allocations: 115.9 kB / 0.5032 GB, free: 14.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008959/0.5554, allocations: 0.6822 MB / 0.5039 GB, free: 13.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5554, allocations: 0 / 0.5039 GB, free: 13.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003452/0.5558, allocations: 80 kB / 0.5039 GB, free: 13.84 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.001184/0.557, allocations: 1.111 MB / 0.505 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007705/0.5577, allocations: 0.6187 MB / 0.5056 GB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5578, allocations: 0 / 0.5056 GB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005187/0.5583, allocations: 0.5171 MB / 0.5061 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007877/0.5591, allocations: 166.1 kB / 0.5063 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.5612, allocations: 1.197 MB / 0.5075 GB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006745/0.5619, allocations: 0.9874 MB / 0.5084 GB, free: 9.055 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000414/0.5623, allocations: 161 kB / 0.5086 GB, free: 8.895 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.5625, allocations: 131.4 kB / 0.5087 GB, free: 8.766 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5626, allocations: 4 kB / 0.5087 GB, free: 8.762 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.5951, allocations: 8.554 MB / 0.5171 GB, free: 216 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/0.5953, allocations: 133 kB / 0.5172 GB, free: 20 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.463, allocations: 0 / 0.5172 GB, free: 20 kB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat