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.001499/0.001499, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.3 MB / 235.5 MB, free: 2.945 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.001199/0.001199, allocations: 91.73 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.465e-05/2.468e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1075, allocations: 50.42 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.324/0.4315, allocations: 84.15 MB / 478.5 MB, free: 3.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.4318, allocations: 67.97 kB / 478.6 MB, free: 3.254 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06565/0.4974, allocations: 35.05 MB / 0.5016 GB, free: 268 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4975, allocations: 0 / 0.5016 GB, free: 268 kB / 378.7 MB Notification: Performance of Transformations before backend: time 2.652e-05/0.4975, allocations: 12 kB / 0.5016 GB, free: 256 kB / 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.0009114/0.4984, allocations: 0.8701 MB / 0.5024 GB, free: 15.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.4985, allocations: 12.02 kB / 0.5024 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.439e-05/0.4986, allocations: 54.55 kB / 0.5025 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.4987, allocations: 79.06 kB / 0.5026 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.4992, allocations: 411.6 kB / 0.503 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.4992, allocations: 16 kB / 0.503 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.4993, allocations: 23.94 kB / 0.503 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.4998, allocations: 289.4 kB / 0.5033 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.4998, allocations: 0 / 0.5033 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.4999, allocations: 8 kB / 0.5033 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.4999, allocations: 4 kB / 0.5033 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.5003, allocations: 207.9 kB / 0.5035 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.5015, allocations: 0.8787 MB / 0.5043 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.5018, allocations: 210.5 kB / 0.5045 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.5021, allocations: 152.9 kB / 0.5047 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.5021, allocations: 11.88 kB / 0.5047 GB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004407/0.5026, allocations: 378.7 kB / 0.5051 GB, free: 12.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 1.644e-06/0.5026, allocations: 0 / 0.5051 GB, free: 12.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008684/0.5035, allocations: 0.5844 MB / 0.5056 GB, free: 11.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/0.5036, allocations: 182.2 kB / 0.5058 GB, free: 11.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.5046, allocations: 0.8783 MB / 0.5067 GB, free: 10.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.5047, allocations: 33.7 kB / 0.5067 GB, free: 10.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.686e-05/0.5048, allocations: 153.7 kB / 0.5068 GB, free: 10.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.685e-05/0.5048, allocations: 51.41 kB / 0.5069 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.5049, allocations: 8 kB / 0.5069 GB, free: 10.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.505, allocations: 334.8 kB / 0.5072 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.5052, allocations: 123.9 kB / 0.5073 GB, free: 10.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.5054, allocations: 154.5 kB / 0.5075 GB, free: 9.863 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.5057, allocations: 226.9 kB / 0.5077 GB, free: 9.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5057, allocations: 3.953 kB / 0.5077 GB, free: 9.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007747/0.5065, allocations: 0.5585 MB / 0.5082 GB, free: 9.023 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.093e-05/0.5066, allocations: 130.8 kB / 0.5084 GB, free: 8.871 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5066, allocations: 0 / 0.5084 GB, free: 8.871 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.5066, allocations: 4 kB / 0.5084 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.33e-05/0.5067, allocations: 8 kB / 0.5084 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.5067, allocations: 7.984 kB / 0.5084 GB, free: 8.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.507, allocations: 39.86 kB / 0.5084 GB, free: 8.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.5071, allocations: 115.9 kB / 0.5085 GB, free: 8.699 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.000201/0.5073, allocations: 266 kB / 0.5088 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.065e-05/0.5074, allocations: 83.02 kB / 0.5089 GB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.5076, allocations: 134.2 kB / 0.509 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.5076, allocations: 4.125 kB / 0.509 GB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5076, allocations: 4 kB / 0.509 GB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.5076, allocations: 0 / 0.509 GB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006377/0.5083, allocations: 0.6258 MB / 0.5096 GB, free: 7.508 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.5083, allocations: 3.938 kB / 0.5096 GB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.5083, allocations: 11.98 kB / 0.5096 GB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.5083, allocations: 0 / 0.5096 GB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.5084, allocations: 31.92 kB / 0.5097 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.5084, allocations: 0 / 0.5097 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5084, allocations: 0 / 0.5097 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000864/0.5093, allocations: 0.6745 MB / 0.5103 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006191/0.5099, allocations: 0.4957 MB / 0.5108 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.984e-05/0.51, allocations: 24.12 kB / 0.5108 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.5102, allocations: 23.97 kB / 0.5109 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.5104, allocations: 59.88 kB / 0.5109 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.5105, allocations: 115.9 kB / 0.511 GB, free: 6.008 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008526/0.5113, allocations: 0.729 MB / 0.5117 GB, free: 5.285 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5113, allocations: 0 / 0.5117 GB, free: 5.285 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003222/0.5117, allocations: 84 kB / 0.5118 GB, free: 5.203 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.00123/0.5129, allocations: 1.261 MB / 0.513 GB, free: 3.891 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007357/0.5137, allocations: 0.6421 MB / 0.5137 GB, free: 3.199 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5137, allocations: 0 / 0.5137 GB, free: 3.199 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.5141, allocations: 0.5211 MB / 0.5142 GB, free: 2.629 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.5148, allocations: 165.9 kB / 0.5143 GB, free: 2.465 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.5168, allocations: 1.214 MB / 0.5155 GB, free: 1.211 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/0.5174, allocations: 0.9837 MB / 0.5165 GB, free: 204 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000347/0.5178, allocations: 161.2 kB / 0.5166 GB, free: 40 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.518, allocations: 131.3 kB / 0.5168 GB, free: 15.91 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.518, allocations: 0 / 0.5168 GB, free: 15.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.5388, allocations: 9.117 MB / 0.5257 GB, free: 6.871 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.539, allocations: 164.5 kB / 0.5258 GB, free: 6.637 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.31, allocations: 3.938 kB / 0.5258 GB, free: 6.633 MB / 410.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