Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 200.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 226.5 MB / 243.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009274/0.0009273, allocations: 104.2 kB / 295.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3417/0.3417, allocations: 44.83 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003215, allocations: 11.98 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3308, allocations: 62.96 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.FlueGas): time 0.1482/0.479, allocations: 135.8 MB / 0.6486 GB, free: 1.27 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.4818, allocations: 2.038 MB / 0.6506 GB, free: 15.23 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.605e-05/0.4819, allocations: 0 / 0.6506 GB, free: 15.23 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.4823, allocations: 51.78 kB / 0.6506 GB, free: 15.18 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.484, allocations: 0.5523 MB / 0.6512 GB, free: 14.62 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.4843, allocations: 91.44 kB / 0.6513 GB, free: 14.54 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.4848, allocations: 302.9 kB / 0.6516 GB, free: 14.24 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.061e-05/0.4848, allocations: 11.98 kB / 0.6516 GB, free: 14.23 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.4852, allocations: 123.5 kB / 0.6517 GB, free: 14.11 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.4855, allocations: 99.72 kB / 0.6518 GB, free: 14.01 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.4855, allocations: 7.938 kB / 0.6518 GB, free: 14 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002261/0.4878, allocations: 1.306 MB / 0.6531 GB, free: 12.69 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.4879, allocations: 87.75 kB / 0.6531 GB, free: 12.61 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.488, allocations: 113.3 kB / 0.6533 GB, free: 12.49 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009514/0.489, allocations: 0.5163 MB / 0.6538 GB, free: 11.97 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.489, allocations: 0 / 0.6538 GB, free: 11.97 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.489, allocations: 0 / 0.6538 GB, free: 11.97 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.489, allocations: 0 / 0.6538 GB, free: 11.97 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008766/0.4899, allocations: 471.4 kB / 0.6542 GB, free: 11.46 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.49, allocations: 8.031 kB / 0.6542 GB, free: 11.46 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.637e-05/0.4901, allocations: 58.73 kB / 0.6543 GB, free: 11.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006932/0.497, allocations: 0.7262 MB / 0.655 GB, free: 10.66 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000534/0.4976, allocations: 287.5 kB / 0.6553 GB, free: 10.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.4976, allocations: 12.33 kB / 0.6553 GB, free: 10.33 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.4977, allocations: 16 kB / 0.6553 GB, free: 10.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.4993, allocations: 0.703 MB / 0.656 GB, free: 9.605 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.4993, allocations: 0 / 0.656 GB, free: 9.605 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.893e-05/0.4994, allocations: 4 kB / 0.656 GB, free: 9.602 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.819e-05/0.4994, allocations: 12 kB / 0.656 GB, free: 9.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.5015, allocations: 0.9173 MB / 0.6569 GB, free: 8.672 MB / 474.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.005031/0.5065, allocations: 1.997 MB / 0.6588 GB, free: 6.492 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.5076, allocations: 0.5048 MB / 0.6593 GB, free: 5.969 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006356/0.5083, allocations: 321.6 kB / 0.6596 GB, free: 5.648 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008835/0.5092, allocations: 375.2 kB / 0.66 GB, free: 5.227 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.5092, allocations: 38.5 kB / 0.66 GB, free: 5.18 MB / 474.7 MB Notification: Performance of pre-optimization done (n=28): time 2.635e-06/0.5093, allocations: 0 / 0.66 GB, free: 5.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=28): time 0.002223/0.5115, allocations: 0.9019 MB / 0.6609 GB, free: 4.273 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.5116, allocations: 77.11 kB / 0.661 GB, free: 4.18 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.5117, allocations: 140.3 kB / 0.6611 GB, free: 4.035 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.461e-05/0.5118, allocations: 29.7 kB / 0.6611 GB, free: 4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.5119, allocations: 116.3 kB / 0.6612 GB, free: 3.883 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.512, allocations: 106.5 kB / 0.6614 GB, free: 3.777 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.512, allocations: 4 kB / 0.6614 GB, free: 3.773 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.5122, allocations: 326.8 kB / 0.6617 GB, free: 3.445 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006336/0.5128, allocations: 303.6 kB / 0.662 GB, free: 3.148 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007268/0.5136, allocations: 401.5 kB / 0.6623 GB, free: 2.711 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.5149, allocations: 0.6935 MB / 0.663 GB, free: 1.973 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.5149, allocations: 4 kB / 0.663 GB, free: 1.969 MB / 474.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001609/0.5165, allocations: 0.7431 MB / 0.6637 GB, free: 1.219 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.5166, allocations: 7.984 kB / 0.6638 GB, free: 1.211 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.5166, allocations: 4 kB / 0.6638 GB, free: 1.207 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.5166, allocations: 4 kB / 0.6638 GB, free: 1.203 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.5177, allocations: 95.86 kB / 0.6639 GB, free: 1.109 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.5177, allocations: 8.594 kB / 0.6639 GB, free: 1.102 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009012/0.5186, allocations: 51.72 kB / 0.6639 GB, free: 1.051 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.281e-05/0.5187, allocations: 27.92 kB / 0.6639 GB, free: 1.023 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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.0002678/0.519, allocations: 149.6 kB / 0.6641 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.5192, allocations: 15.89 kB / 0.6641 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.5211, allocations: 0.7859 MB / 0.6649 GB, free: 64 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.5211, allocations: 0 / 0.6649 GB, free: 64 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.5212, allocations: 4 kB / 0.6649 GB, free: 60 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5212, allocations: 0 / 0.6649 GB, free: 60 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.5223, allocations: 0.8017 MB / 0.6656 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5223, allocations: 0 / 0.6656 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5233, allocations: 83.86 kB / 0.6657 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.5233, allocations: 0 / 0.6657 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.453e-05/0.5234, allocations: 23.91 kB / 0.6658 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.5234, allocations: 0 / 0.6658 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5234, allocations: 0 / 0.6658 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.5254, allocations: 0.9534 MB / 0.6667 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.877e-05/0.5255, allocations: 100.8 kB / 0.6668 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.154e-05/0.5256, allocations: 11.98 kB / 0.6668 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009563/0.5265, allocations: 35.95 kB / 0.6668 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/0.5266, allocations: 11.98 kB / 0.6668 GB, free: 13.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.5267, allocations: 23.97 kB / 0.6669 GB, free: 13.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.794e-05/0.5268, allocations: 95.27 kB / 0.6669 GB, free: 13.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5268, allocations: 0 / 0.6669 GB, free: 13.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007749/0.5276, allocations: 199.8 kB / 0.6671 GB, free: 13.59 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4],state.p,state.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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.003252/0.5308, allocations: 1.738 MB / 0.6688 GB, free: 11.82 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.5323, allocations: 0.6535 MB / 0.6695 GB, free: 11.17 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.5323, allocations: 4 kB / 0.6695 GB, free: 11.17 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006624/0.533, allocations: 331.6 kB / 0.6698 GB, free: 10.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007993/0.5338, allocations: 96.84 kB / 0.6699 GB, free: 10.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004335/0.5381, allocations: 2.417 MB / 0.6722 GB, free: 8.23 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.5384, allocations: 0.7329 MB / 0.673 GB, free: 7.473 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004907/0.5389, allocations: 75.38 kB / 0.673 GB, free: 7.398 MB / 490.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5389, allocations: 0 / 0.673 GB, free: 7.398 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.624/4.163, allocations: 8.355 MB / 0.6812 GB, free: 143 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_FlueGas_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_FlueGas.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/FlueGas/FlueGas.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.FlueGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches