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.002236/0.002236, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.301/1.301, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009083/0.0009082, allocations: 95.48 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.0002909, allocations: 11.98 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2579, allocations: 50.41 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3618, allocations: 84.21 MB / 485.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.3621, allocations: 81.98 kB / 485.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2957/0.6578, allocations: 34.81 MB / 0.5085 GB, free: 97.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.6579, allocations: 0 / 0.5085 GB, free: 97.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.6579, allocations: 13.47 kB / 0.5085 GB, free: 97.5 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.00113/0.659, allocations: 0.9942 MB / 0.5095 GB, free: 96.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.6591, allocations: 11.81 kB / 0.5095 GB, free: 96.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.6592, allocations: 55.95 kB / 0.5095 GB, free: 96.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.6593, allocations: 83.75 kB / 0.5096 GB, free: 96.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005377/0.6599, allocations: 403.2 kB / 0.51 GB, free: 96.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.6599, allocations: 15.56 kB / 0.51 GB, free: 96.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.66, allocations: 19.19 kB / 0.51 GB, free: 96.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.6605, allocations: 297.4 kB / 0.5103 GB, free: 96.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.6606, allocations: 4 kB / 0.5103 GB, free: 96.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.6606, allocations: 7.062 kB / 0.5103 GB, free: 96.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.892e-06/0.6606, allocations: 3.969 kB / 0.5103 GB, free: 96.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003934/0.661, allocations: 208.9 kB / 0.5105 GB, free: 96.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.6624, allocations: 0.8805 MB / 0.5114 GB, free: 96.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.6628, allocations: 211.2 kB / 0.5116 GB, free: 96.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.6629, allocations: 7.688 kB / 0.5116 GB, free: 96.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004774/0.6633, allocations: 396.3 kB / 0.512 GB, free: 95.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.564e-06/0.6634, allocations: 0 / 0.512 GB, free: 95.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001233/0.6646, allocations: 0.8913 MB / 0.5128 GB, free: 95.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.6647, allocations: 177 kB / 0.513 GB, free: 95.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.6657, allocations: 0.8796 MB / 0.5139 GB, free: 94.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.6658, allocations: 37.58 kB / 0.5139 GB, free: 94.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.6659, allocations: 151.6 kB / 0.514 GB, free: 94.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.666, allocations: 53.42 kB / 0.5141 GB, free: 94.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.666, allocations: 7.656 kB / 0.5141 GB, free: 94.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.6661, allocations: 339.2 kB / 0.5144 GB, free: 94.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/0.6663, allocations: 124.9 kB / 0.5145 GB, free: 94.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.6666, allocations: 159.3 kB / 0.5147 GB, free: 94.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.6668, allocations: 232.5 kB / 0.5149 GB, free: 94.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6669, allocations: 4 kB / 0.5149 GB, free: 94.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007946/0.6677, allocations: 0.5583 MB / 0.5155 GB, free: 93.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.6677, allocations: 135.2 kB / 0.5156 GB, free: 93.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.6678, allocations: 0 / 0.5156 GB, free: 93.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.6678, allocations: 3.438 kB / 0.5156 GB, free: 93.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.6679, allocations: 18.69 kB / 0.5156 GB, free: 93.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.6679, allocations: 10.64 kB / 0.5156 GB, free: 93.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.6682, allocations: 31.98 kB / 0.5157 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.6683, allocations: 116.1 kB / 0.5158 GB, free: 93.57 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.0005103/0.6688, allocations: 0.5269 MB / 0.5163 GB, free: 93.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.827e-05/0.6689, allocations: 79.91 kB / 0.5164 GB, free: 93.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.6691, allocations: 129 kB / 0.5165 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.6691, allocations: 0 / 0.5165 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.6691, allocations: 7.656 kB / 0.5165 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.6691, allocations: 7.125 kB / 0.5165 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005707/0.6697, allocations: 0.6244 MB / 0.5171 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.6697, allocations: 0 / 0.5171 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.955e-05/0.6697, allocations: 7.25 kB / 0.5171 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.6697, allocations: 3.938 kB / 0.5171 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.6698, allocations: 31.62 kB / 0.5171 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.6698, allocations: 0 / 0.5171 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6698, allocations: 3.844 kB / 0.5172 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008671/0.6707, allocations: 0.683 MB / 0.5178 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006165/0.6713, allocations: 0.4942 MB / 0.5183 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.6714, allocations: 20.5 kB / 0.5183 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.6716, allocations: 31.5 kB / 0.5184 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.6718, allocations: 55.69 kB / 0.5184 GB, free: 91.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.6719, allocations: 120 kB / 0.5185 GB, free: 91.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008045/0.6727, allocations: 0.7318 MB / 0.5192 GB, free: 91.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6727, allocations: 0 / 0.5192 GB, free: 91.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003381/0.6731, allocations: 89.31 kB / 0.5193 GB, free: 91.54 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.001131/0.6742, allocations: 1.259 MB / 0.5205 GB, free: 90.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007745/0.675, allocations: 0.6543 MB / 0.5212 GB, free: 90.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.675, allocations: 0 / 0.5212 GB, free: 90.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.6755, allocations: 0.5274 MB / 0.5217 GB, free: 89.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006727/0.6761, allocations: 174.4 kB / 0.5219 GB, free: 89.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003941/0.6801, allocations: 3.465 MB / 0.5253 GB, free: 86.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005341/0.6807, allocations: 0.9816 MB / 0.5262 GB, free: 85.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004039/0.6811, allocations: 164.4 kB / 0.5264 GB, free: 85.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.6813, allocations: 134.7 kB / 0.5265 GB, free: 85.06 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6813, allocations: 0 / 0.5265 GB, free: 85.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.7024, allocations: 9.116 MB / 0.5354 GB, free: 76.32 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.7027, allocations: 177 kB / 0.5356 GB, free: 76.08 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/2.783, allocations: 0 / 0.5356 GB, free: 76.08 MB / 378.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