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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009729/0.0009727, allocations: 93.84 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009893/0.0009894, allocations: 182.1 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000297/0.000297, allocations: 6.125 kB / 300.8 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002109/0.1069, allocations: 1.727 MB / 353 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.1089, allocations: 0.9751 MB / 353.9 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.667e-05/0.109, allocations: 0 / 353.9 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1092, allocations: 35.7 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.1093, allocations: 47.84 kB / 354 MB, free: 8.809 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.1097, allocations: 78.84 kB / 354.1 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.11, allocations: 219.6 kB / 354.3 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1101, allocations: 73.67 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007194/0.1109, allocations: 0.6589 MB / 355 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.1111, allocations: 183.5 kB / 355.2 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.1112, allocations: 8 kB / 355.2 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.114e-05/0.1112, allocations: 11.94 kB / 355.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.1114, allocations: 151.5 kB / 355.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1116, allocations: 145.3 kB / 355.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007848/0.1124, allocations: 0.7832 MB / 356.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1124, allocations: 0 / 356.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1124, allocations: 0 / 356.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1124, allocations: 0 / 356.3 MB, free: 6.5 MB / 286.1 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.00127/0.1137, allocations: 0.9707 MB / 357.3 MB, free: 5.453 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.1137, allocations: 12.03 kB / 357.3 MB, free: 5.441 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.1138, allocations: 58.48 kB / 357.3 MB, free: 5.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.114, allocations: 82.97 kB / 357.4 MB, free: 5.293 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/0.1147, allocations: 395.6 kB / 357.8 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.066e-05/0.1147, allocations: 20 kB / 357.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.1148, allocations: 20 kB / 357.8 MB, free: 4.828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007325/0.1155, allocations: 293.4 kB / 358.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1156, allocations: 3.953 kB / 358.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.069e-05/0.1156, allocations: 12 kB / 358.1 MB, free: 4.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1156, allocations: 3.984 kB / 358.2 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004636/0.1161, allocations: 207.9 kB / 358.4 MB, free: 4.312 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.1176, allocations: 0.8826 MB / 359.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000438/0.118, allocations: 230.4 kB / 359.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.1181, allocations: 0 / 359.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005487/0.1186, allocations: 381.8 kB / 359.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.1186, allocations: 0 / 359.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001394/0.12, allocations: 0.8983 MB / 360.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.1202, allocations: 178.2 kB / 360.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.1217, allocations: 1.004 MB / 361.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.34e-05/0.1218, allocations: 37.7 kB / 361.9 MB, free: 0.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1219, allocations: 153.8 kB / 362.1 MB, free: 356 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.216e-05/0.122, allocations: 59.28 kB / 362.2 MB, free: 296 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.122, allocations: 4 kB / 362.2 MB, free: 292 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1222, allocations: 338.8 kB / 362.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.1224, allocations: 123.9 kB / 362.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.1227, allocations: 164.2 kB / 362.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.123, allocations: 234.7 kB / 363 MB, free: 15.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.123, allocations: 0 / 363 MB, free: 15.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009332/0.124, allocations: 0.582 MB / 363.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.1241, allocations: 134.8 kB / 363.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.1242, allocations: 7.984 kB / 363.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1242, allocations: 0 / 363.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.796e-05/0.1243, allocations: 12.06 kB / 363.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1243, allocations: 4 kB / 363.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.1246, allocations: 39.81 kB / 363.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.1248, allocations: 115.9 kB / 363.9 MB, free: 14.45 MB / 302.1 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.0006623/0.1255, allocations: 0.5259 MB / 364.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1256, allocations: 79.11 kB / 364.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.1258, allocations: 130.4 kB / 364.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1258, allocations: 7.984 kB / 364.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1258, allocations: 0 / 364.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.1258, allocations: 0 / 364.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007856/0.1266, allocations: 0.6258 MB / 365.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1266, allocations: 0 / 365.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.329e-05/0.1267, allocations: 15.89 kB / 365.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1267, allocations: 0 / 365.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/0.1267, allocations: 28.11 kB / 365.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1268, allocations: 8 kB / 365.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1268, allocations: 0 / 365.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.1279, allocations: 0.6942 MB / 366 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007665/0.1286, allocations: 0.4918 MB / 366.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.1287, allocations: 23.95 kB / 366.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.129, allocations: 31.91 kB / 366.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.1292, allocations: 51.94 kB / 366.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.1293, allocations: 123.9 kB / 366.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001051/0.1304, allocations: 0.7289 MB / 367.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1304, allocations: 3.938 kB / 367.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003661/0.1308, allocations: 91.84 kB / 367.5 MB, free: 10.65 MB / 302.1 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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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.001449/0.1322, allocations: 1.28 MB / 368.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009446/0.1332, allocations: 0.6498 MB / 369.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1332, allocations: 0 / 369.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.1338, allocations: 0.5327 MB / 370 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007398/0.1345, allocations: 171.5 kB / 370.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004857/0.1394, allocations: 3.462 MB / 373.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007219/0.1401, allocations: 0.9834 MB / 374.6 MB, free: 3.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003675/0.1405, allocations: 169.2 kB / 374.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.1408, allocations: 127.3 kB / 374.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1408, allocations: 0 / 374.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.1634, allocations: 9.051 MB / 384 MB, free: 10.13 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.1636, allocations: 170.6 kB / 384.1 MB, free: 9.891 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.177, allocations: 3.25 kB / 384.1 MB, free: 9.891 MB / 318.1 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