Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002383/0.002383, allocations: 181.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.339/2.339, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 97.23 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5277/0.5277, allocations: 43.55 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004812/0.0004814, allocations: 16 kB / 431.5 MB, free: 6.039 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1316, allocations: 58.85 MB / 490.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice): time 0.5467/0.6784, allocations: 143.1 MB / 0.6186 GB, free: 7.93 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.6904, allocations: 5.755 MB / 0.6242 GB, free: 2.172 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000608/0.691, allocations: 19.81 kB / 0.6242 GB, free: 2.152 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.6921, allocations: 258.7 kB / 0.6245 GB, free: 1.898 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005518/0.6977, allocations: 1.397 MB / 0.6258 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003381/0.7011, allocations: 0.7565 MB / 0.6266 GB, free: 15.76 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.7036, allocations: 0.9652 MB / 0.6275 GB, free: 14.79 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007706/0.7044, allocations: 348.1 kB / 0.6279 GB, free: 14.45 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.7061, allocations: 0.4984 MB / 0.6283 GB, free: 13.95 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009016/0.707, allocations: 358.6 kB / 0.6287 GB, free: 13.6 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.7072, allocations: 24 kB / 0.6287 GB, free: 13.57 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004512/0.7117, allocations: 1.279 MB / 0.63 GB, free: 12.29 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003248/0.7121, allocations: 131.5 kB / 0.6301 GB, free: 12.16 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003343/0.7124, allocations: 157.3 kB / 0.6302 GB, free: 12 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00309/0.7155, allocations: 1.145 MB / 0.6314 GB, free: 10.86 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.7156, allocations: 7.875 kB / 0.6314 GB, free: 10.86 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.7156, allocations: 4 kB / 0.6314 GB, free: 10.85 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.7156, allocations: 0 / 0.6314 GB, free: 10.85 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002844/0.7185, allocations: 1.065 MB / 0.6324 GB, free: 9.727 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.7186, allocations: 8.031 kB / 0.6324 GB, free: 9.719 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001968/0.7188, allocations: 86.53 kB / 0.6325 GB, free: 9.625 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/0.7205, allocations: 167 kB / 0.6327 GB, free: 9.461 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.7221, allocations: 0.5522 MB / 0.6332 GB, free: 8.867 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.925e-05/0.7221, allocations: 32.95 kB / 0.6332 GB, free: 8.836 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.7223, allocations: 47.94 kB / 0.6333 GB, free: 8.789 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.7242, allocations: 0.5906 MB / 0.6338 GB, free: 8.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.7242, allocations: 0 / 0.6338 GB, free: 8.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.52e-05/0.7243, allocations: 20 kB / 0.6339 GB, free: 8.141 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.7244, allocations: 8 kB / 0.6339 GB, free: 8.133 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.7257, allocations: 463.6 kB / 0.6343 GB, free: 7.68 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005414/0.7311, allocations: 2.639 MB / 0.6369 GB, free: 4.863 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008654/0.732, allocations: 287.3 kB / 0.6372 GB, free: 4.574 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004794/0.7325, allocations: 238.5 kB / 0.6374 GB, free: 4.309 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007795/0.7333, allocations: 338.3 kB / 0.6377 GB, free: 3.945 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 2.805e-06/0.7333, allocations: 0 / 0.6377 GB, free: 3.945 MB / 458.7 MB Notification: Performance of matching and sorting (n=35): time 0.002012/0.7354, allocations: 0.692 MB / 0.6384 GB, free: 3.223 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/0.7356, allocations: 290.7 kB / 0.6387 GB, free: 2.871 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.7367, allocations: 0.5665 MB / 0.6392 GB, free: 2.297 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.991e-05/0.7368, allocations: 33.7 kB / 0.6393 GB, free: 2.258 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.7372, allocations: 357.9 kB / 0.6396 GB, free: 1.906 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.7373, allocations: 118.4 kB / 0.6397 GB, free: 1.789 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.861e-05/0.7374, allocations: 8 kB / 0.6397 GB, free: 1.781 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.7376, allocations: 330.8 kB / 0.64 GB, free: 1.449 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004972/0.7381, allocations: 157 kB / 0.6402 GB, free: 1.297 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.7389, allocations: 382.6 kB / 0.6405 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006095/0.7395, allocations: 233.4 kB / 0.6408 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/0.7395, allocations: 4 kB / 0.6408 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001739/0.7413, allocations: 0.6083 MB / 0.6414 GB, free: 15.96 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001118/0.7424, allocations: 2.217 MB / 0.6435 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.7424, allocations: 4 kB / 0.6435 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.7425, allocations: 8 kB / 0.6435 GB, free: 13.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006216/0.7487, allocations: 399.6 kB / 0.6439 GB, free: 13.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007531/0.7495, allocations: 0.6289 MB / 0.6445 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009458/0.7505, allocations: 72.39 kB / 0.6446 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.7506, allocations: 55.98 kB / 0.6447 GB, free: 12.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.7506, allocations: 4 kB / 0.6447 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001566/0.7522, allocations: 0.5576 MB / 0.6452 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.7523, allocations: 4 kB / 0.6452 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.7523, allocations: 12 kB / 0.6452 GB, free: 11.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007574/0.7531, allocations: 119.9 kB / 0.6453 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.7531, allocations: 15.92 kB / 0.6454 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006369/0.7537, allocations: 59.17 kB / 0.6454 GB, free: 11.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.7539, allocations: 48 kB / 0.6455 GB, free: 11.57 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005853/0.7545, allocations: 312.3 kB / 0.6458 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.7547, allocations: 63.25 kB / 0.6458 GB, free: 11.19 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003108/0.7578, allocations: 0.8425 MB / 0.6466 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.7579, allocations: 4 kB / 0.6466 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.7579, allocations: 0 / 0.6466 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.7579, allocations: 0 / 0.6466 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/0.7613, allocations: 1.61 MB / 0.6482 GB, free: 8.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.433e-06/0.7614, allocations: 0 / 0.6482 GB, free: 8.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002211/0.7636, allocations: 195.9 kB / 0.6484 GB, free: 8.379 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-05/0.7637, allocations: 7.938 kB / 0.6484 GB, free: 8.371 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.252e-05/0.7638, allocations: 27.98 kB / 0.6484 GB, free: 8.344 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005775/0.7644, allocations: 0.5938 MB / 0.649 GB, free: 7.727 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.7644, allocations: 7.969 kB / 0.649 GB, free: 7.719 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.7661, allocations: 0.757 MB / 0.6498 GB, free: 6.875 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.7664, allocations: 148.2 kB / 0.6499 GB, free: 6.711 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.7666, allocations: 11.98 kB / 0.6499 GB, free: 6.699 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006517/0.7672, allocations: 31.92 kB / 0.6499 GB, free: 6.668 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.7674, allocations: 43.86 kB / 0.65 GB, free: 6.625 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.866e-05/0.7675, allocations: 31.98 kB / 0.65 GB, free: 6.594 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007902/0.7683, allocations: 407.1 kB / 0.6504 GB, free: 6.203 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7683, allocations: 0 / 0.6504 GB, free: 6.203 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002329/0.7707, allocations: 0.5152 MB / 0.6509 GB, free: 5.688 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004098/0.7748, allocations: 2.212 MB / 0.6531 GB, free: 3.406 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01077/0.7856, allocations: 1.231 MB / 0.6543 GB, free: 2.152 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.7856, allocations: 4.188 kB / 0.6543 GB, free: 2.148 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003114/0.7888, allocations: 447.4 kB / 0.6547 GB, free: 1.699 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/0.7914, allocations: 302.4 kB / 0.655 GB, free: 1.406 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.8027, allocations: 7.248 MB / 0.6621 GB, free: 9.965 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009687/0.8037, allocations: 0.9036 MB / 0.6629 GB, free: 9.035 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.8052, allocations: 279.3 kB / 0.6632 GB, free: 8.762 MB / 490.7 MB Notification: Performance of SimCode: time 2.004e-06/0.8053, allocations: 0 / 0.6632 GB, free: 8.762 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.877/4.682, allocations: 19.44 MB / 0.6822 GB, free: 145.7 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat