Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.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) 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.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_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.001621/0.001627, allocations: 188.2 kB / 16.4 MB, free: 5.621 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.084/2.084, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001215/0.001215, allocations: 102.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3558/0.3558, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004802, allocations: 8 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1334, allocations: 58.87 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5996/0.7331, allocations: 143.8 MB / 0.6193 GB, free: 10.86 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.7513, allocations: 8.395 MB / 0.6275 GB, free: 2.449 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.7525, allocations: 27.75 kB / 0.6275 GB, free: 2.422 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.7541, allocations: 346.4 kB / 0.6278 GB, free: 2.082 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006643/0.7608, allocations: 1.494 MB / 0.6293 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005717/0.7665, allocations: 1.265 MB / 0.6305 GB, free: 15.32 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003204/0.7698, allocations: 1.247 MB / 0.6317 GB, free: 14.07 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001797/0.7716, allocations: 0.6647 MB / 0.6324 GB, free: 13.41 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004644/0.7763, allocations: 1.31 MB / 0.6337 GB, free: 12.09 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004972/0.7813, allocations: 1.438 MB / 0.6351 GB, free: 10.65 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003775/0.7818, allocations: 52 kB / 0.6351 GB, free: 10.6 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004504/0.7863, allocations: 1.229 MB / 0.6363 GB, free: 9.367 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.7875, allocations: 0.5963 MB / 0.6369 GB, free: 8.77 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005943/0.7881, allocations: 293.1 kB / 0.6372 GB, free: 8.477 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004532/0.7926, allocations: 1.983 MB / 0.6391 GB, free: 6.496 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.7927, allocations: 0 / 0.6391 GB, free: 6.496 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.7927, allocations: 0 / 0.6391 GB, free: 6.496 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.473e-05/0.7928, allocations: 0 / 0.6391 GB, free: 6.496 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.005277/0.798, allocations: 1.419 MB / 0.6405 GB, free: 5.027 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.7981, allocations: 8.031 kB / 0.6405 GB, free: 5.02 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005884/0.7987, allocations: 172.9 kB / 0.6407 GB, free: 4.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002611/0.8013, allocations: 334.2 kB / 0.641 GB, free: 4.512 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.8038, allocations: 0.7107 MB / 0.6417 GB, free: 3.762 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002276/0.804, allocations: 141.4 kB / 0.6418 GB, free: 3.609 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003657/0.8044, allocations: 107.9 kB / 0.6419 GB, free: 3.504 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005319/0.8098, allocations: 1.833 MB / 0.6437 GB, free: 1.605 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.719e-05/0.8099, allocations: 3.906 kB / 0.6437 GB, free: 1.602 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002782/0.8102, allocations: 47.98 kB / 0.6438 GB, free: 1.555 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001921/0.8104, allocations: 97.89 kB / 0.6439 GB, free: 1.461 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005285/0.8157, allocations: 1.702 MB / 0.6455 GB, free: 15.76 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.0176/0.8333, allocations: 6.899 MB / 0.6523 GB, free: 8.383 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002392/0.8358, allocations: 0.7946 MB / 0.653 GB, free: 7.582 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002897/0.8361, allocations: 130.3 kB / 0.6532 GB, free: 7.438 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.184e-05/0.8362, allocations: 47.12 kB / 0.6532 GB, free: 7.383 MB / 458.7 MB Notification: Performance of pre-optimization done (n=60): time 3.827e-06/0.8362, allocations: 0 / 0.6532 GB, free: 7.383 MB / 458.7 MB Notification: Performance of matching and sorting (n=72): time 0.02069/0.8569, allocations: 4.173 MB / 0.6573 GB, free: 3.117 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.355e-05/0.857, allocations: 115.5 kB / 0.6574 GB, free: 2.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.8594, allocations: 1.093 MB / 0.6585 GB, free: 1.863 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/0.8598, allocations: 45.7 kB / 0.6585 GB, free: 1.812 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005576/0.8604, allocations: 0.5169 MB / 0.659 GB, free: 1.289 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.8608, allocations: 272.2 kB / 0.6593 GB, free: 1.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.8609, allocations: 19.94 kB / 0.6593 GB, free: 1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.8611, allocations: 354.8 kB / 0.6596 GB, free: 0.6445 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.8629, allocations: 0.5875 MB / 0.6602 GB, free: 56 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002167/0.8651, allocations: 0.8798 MB / 0.6611 GB, free: 15.05 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.8673, allocations: 0.7017 MB / 0.6617 GB, free: 14.36 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.8673, allocations: 4 kB / 0.6617 GB, free: 14.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.006047/0.8734, allocations: 1.954 MB / 0.6637 GB, free: 12.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.8735, allocations: 8 kB / 0.6637 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.8735, allocations: 8 kB / 0.6637 GB, free: 12.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009314/0.8829, allocations: 1.371 MB / 0.665 GB, free: 11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.8841, allocations: 143.7 kB / 0.6651 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005258/0.8894, allocations: 1.928 MB / 0.667 GB, free: 8.902 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/0.8916, allocations: 111.8 kB / 0.6671 GB, free: 8.793 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002953/0.892, allocations: 67.98 kB / 0.6672 GB, free: 8.727 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.00115/0.8931, allocations: 405.3 kB / 0.6676 GB, free: 8.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004031/0.8935, allocations: 110.8 kB / 0.6677 GB, free: 8.211 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004522/0.8981, allocations: 1.406 MB / 0.6691 GB, free: 6.793 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/0.8981, allocations: 8 kB / 0.6691 GB, free: 6.785 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.8982, allocations: 3.938 kB / 0.6691 GB, free: 6.781 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.8982, allocations: 7.969 kB / 0.6691 GB, free: 6.773 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008171/0.9064, allocations: 2.696 MB / 0.6717 GB, free: 4.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.9064, allocations: 0 / 0.6717 GB, free: 4.012 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003854/0.9103, allocations: 323.6 kB / 0.672 GB, free: 3.695 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003706/0.9107, allocations: 72.69 kB / 0.6721 GB, free: 3.621 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002311/0.911, allocations: 31.98 kB / 0.6721 GB, free: 3.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004/0.915, allocations: 2.844 MB / 0.6749 GB, free: 496 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.915, allocations: 0 / 0.6749 GB, free: 496 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005905/0.921, allocations: 1.936 MB / 0.6768 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/0.9224, allocations: 347.6 kB / 0.6771 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004268/0.9229, allocations: 31.98 kB / 0.6772 GB, free: 14.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002076/0.925, allocations: 87.86 kB / 0.6772 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003451/0.9254, allocations: 64.5 kB / 0.6773 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003029/0.9257, allocations: 63.95 kB / 0.6774 GB, free: 13.92 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001863/0.9276, allocations: 0.797 MB / 0.6781 GB, free: 13.11 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.9276, allocations: 0 / 0.6781 GB, free: 13.11 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002661/0.9303, allocations: 0.5116 MB / 0.6786 GB, free: 12.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * 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): 1 * Torn equation systems: 1 * 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: 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.009577/0.9399, allocations: 3.176 MB / 0.6817 GB, free: 9.387 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005149/0.9451, allocations: 1.481 MB / 0.6832 GB, free: 7.902 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.9452, allocations: 4.656 kB / 0.6832 GB, free: 7.898 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003204/0.9484, allocations: 0.8507 MB / 0.684 GB, free: 7.035 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006272/0.9547, allocations: 0.711 MB / 0.6847 GB, free: 6.324 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02992/0.9847, allocations: 14.88 MB / 0.6992 GB, free: 7.051 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/0.9861, allocations: 1.195 MB / 0.7004 GB, free: 5.828 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.9875, allocations: 443.3 kB / 0.7008 GB, free: 5.395 MB / 0.4949 GB Notification: Performance of SimCode: time 1.333e-06/0.9875, allocations: 0 / 0.7008 GB, free: 5.395 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.33/5.318, allocations: 38.05 MB / 0.738 GB, free: 165.7 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat