Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",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.0009734/0.0009734, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0006751/0.0006749, allocations: 86.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2172, allocations: 47.58 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3548/0.5721, allocations: 159.5 MB / 0.5222 GB, free: 1.113 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003604/0.5758, allocations: 3.576 MB / 0.5257 GB, free: 1.016 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.5761, allocations: 4.219 kB / 0.5257 GB, free: 1.016 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006335/0.5768, allocations: 200.2 kB / 0.5259 GB, free: 1.004 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006024/0.5774, allocations: 341.6 kB / 0.5262 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.5786, allocations: 455.4 kB / 0.5266 GB, free: 0.957 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.5799, allocations: 1.294 MB / 0.5279 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003316/0.5803, allocations: 237.8 kB / 0.5281 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.583, allocations: 1.198 MB / 0.5293 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004665/0.5835, allocations: 453.2 kB / 0.5297 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.083e-05/0.5836, allocations: 28.62 kB / 0.5298 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.5849, allocations: 0.8567 MB / 0.5306 GB, free: 0.875 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003132/0.5852, allocations: 423.4 kB / 0.531 GB, free: 0.875 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004315/0.5857, allocations: 460.8 kB / 0.5314 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.5868, allocations: 1.238 MB / 0.5326 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5868, allocations: 3.938 kB / 0.5327 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5868, allocations: 2.906 kB / 0.5327 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.5868, allocations: 0 / 0.5327 GB, free: 0.7578 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001338/0.5882, allocations: 0.8813 MB / 0.5335 GB, free: 16.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.5882, allocations: 11.25 kB / 0.5335 GB, free: 16.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/0.5884, allocations: 114.9 kB / 0.5336 GB, free: 16.06 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.5889, allocations: 160.3 kB / 0.5338 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005796/0.5895, allocations: 486 kB / 0.5343 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.5896, allocations: 45.19 kB / 0.5343 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-05/0.5896, allocations: 71.31 kB / 0.5344 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.5909, allocations: 0.9457 MB / 0.5353 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.591, allocations: 6.469 kB / 0.5353 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-05/0.591, allocations: 29.56 kB / 0.5353 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.487e-05/0.5911, allocations: 42.45 kB / 0.5354 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.5921, allocations: 0.8635 MB / 0.5362 GB, free: 15.33 MB / 394.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.004681/0.5968, allocations: 3.453 MB / 0.5396 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/0.5975, allocations: 0.6334 MB / 0.5402 GB, free: 13.08 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003893/0.5979, allocations: 371.2 kB / 0.5405 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/0.598, allocations: 19.59 kB / 0.5406 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.598, allocations: 47.5 kB / 0.5406 GB, free: 12.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 2.565e-06/0.5981, allocations: 1.859 kB / 0.5406 GB, free: 12.97 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.01344/0.6115, allocations: 6.212 MB / 0.5467 GB, free: 10.01 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.6116, allocations: 60.75 kB / 0.5467 GB, free: 9.949 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005667/0.6121, allocations: 0.5405 MB / 0.5473 GB, free: 9.758 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.294e-05/0.6122, allocations: 45.64 kB / 0.5473 GB, free: 9.727 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.6124, allocations: 282.7 kB / 0.5476 GB, free: 9.551 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.6126, allocations: 246 kB / 0.5478 GB, free: 9.371 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.6127, allocations: 14.62 kB / 0.5478 GB, free: 9.371 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.6128, allocations: 370.7 kB / 0.5482 GB, free: 9.039 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005338/0.6133, allocations: 444.2 kB / 0.5486 GB, free: 8.973 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.6139, allocations: 0.512 MB / 0.5491 GB, free: 8.844 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.6152, allocations: 0.9653 MB / 0.55 GB, free: 8.688 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.6153, allocations: 0 / 0.55 GB, free: 8.688 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001759/0.617, allocations: 1.344 MB / 0.5514 GB, free: 8.383 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.617, allocations: 10.23 kB / 0.5514 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.6171, allocations: 3 kB / 0.5514 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005365/0.6176, allocations: 325.7 kB / 0.5517 GB, free: 8.262 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009153/0.6185, allocations: 183.9 kB / 0.5519 GB, free: 8.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006888/0.6254, allocations: 10.24 MB / 0.5619 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008009/0.6263, allocations: 79.34 kB / 0.5619 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.6264, allocations: 49.33 kB / 0.562 GB, free: 14.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004725/0.6269, allocations: 277 kB / 0.5622 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.6271, allocations: 62.88 kB / 0.5623 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.629, allocations: 1.282 MB / 0.5636 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.629, allocations: 8 kB / 0.5636 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.629, allocations: 4 kB / 0.5636 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001588/0.6306, allocations: 1.601 MB / 0.5651 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.6338, allocations: 2.269 MB / 0.5673 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.6338, allocations: 7.984 kB / 0.5674 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.6349, allocations: 221.9 kB / 0.5676 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.6351, allocations: 61.97 kB / 0.5676 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.208e-05/0.6352, allocations: 45.34 kB / 0.5677 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.6363, allocations: 1.436 MB / 0.5691 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.6363, allocations: 3.938 kB / 0.5691 GB, free: 9.113 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/0.6384, allocations: 1.593 MB / 0.5706 GB, free: 8.012 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002238/0.6386, allocations: 152.5 kB / 0.5708 GB, free: 7.848 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.6387, allocations: 35.92 kB / 0.5708 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007849/0.6395, allocations: 79.28 kB / 0.5709 GB, free: 7.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.6397, allocations: 57.7 kB / 0.5709 GB, free: 7.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6398, allocations: 58.2 kB / 0.571 GB, free: 7.664 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004112/0.6402, allocations: 404.9 kB / 0.5714 GB, free: 7.359 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6402, allocations: 0 / 0.5714 GB, free: 7.359 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00109/0.6413, allocations: 348 kB / 0.5717 GB, free: 7.047 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.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 (77): * Single equations (assignments): 76 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003767/0.6451, allocations: 2.614 MB / 0.5743 GB, free: 4.961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.6474, allocations: 1.862 MB / 0.5761 GB, free: 3.383 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.6474, allocations: 4 kB / 0.5761 GB, free: 3.379 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008446/0.6483, allocations: 0.6866 MB / 0.5768 GB, free: 2.879 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.6507, allocations: 485.3 kB / 0.5772 GB, free: 2.477 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008788/0.6595, allocations: 6.188 MB / 0.5833 GB, free: 13.47 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005454/0.6601, allocations: 0.9752 MB / 0.5842 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.6606, allocations: 278.7 kB / 0.5845 GB, free: 12.39 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6606, allocations: 1.641 kB / 0.5845 GB, free: 12.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.527/7.188, allocations: 26.78 MB / 0.6106 GB, free: 1.707 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches