Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009265/0.0009264, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 45.93 MB / 344 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002817/0.0002817, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1422, allocations: 63.46 MB / 481.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4958/0.6381, allocations: 144 MB / 0.6109 GB, free: 5.301 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.6483, allocations: 6.542 MB / 0.6173 GB, free: 14.75 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.6494, allocations: 23.81 kB / 0.6173 GB, free: 14.72 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.6507, allocations: 318.4 kB / 0.6176 GB, free: 14.41 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004975/0.6557, allocations: 1.284 MB / 0.6189 GB, free: 13.12 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00346/0.6592, allocations: 1.074 MB / 0.6199 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002281/0.6614, allocations: 1.177 MB / 0.6211 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007736/0.6622, allocations: 461.1 kB / 0.6215 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003015/0.6653, allocations: 1.294 MB / 0.6228 GB, free: 9.133 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003007/0.6683, allocations: 1.341 MB / 0.6241 GB, free: 7.789 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001829/0.6685, allocations: 36 kB / 0.6241 GB, free: 7.754 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002887/0.6714, allocations: 1.018 MB / 0.6251 GB, free: 6.734 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006287/0.672, allocations: 379 kB / 0.6255 GB, free: 6.363 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004995/0.6725, allocations: 225.2 kB / 0.6257 GB, free: 6.137 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.6752, allocations: 1.494 MB / 0.6271 GB, free: 4.645 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.6753, allocations: 0 / 0.6271 GB, free: 4.645 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6753, allocations: 0 / 0.6271 GB, free: 4.645 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.6753, allocations: 0 / 0.6271 GB, free: 4.645 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003323/0.6786, allocations: 1.255 MB / 0.6284 GB, free: 3.336 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.679e-05/0.6787, allocations: 8.031 kB / 0.6284 GB, free: 3.328 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002381/0.6789, allocations: 134.6 kB / 0.6285 GB, free: 3.191 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/0.6804, allocations: 306.5 kB / 0.6288 GB, free: 2.891 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.6816, allocations: 0.5745 MB / 0.6293 GB, free: 2.277 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.6818, allocations: 116.6 kB / 0.6295 GB, free: 2.152 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.6819, allocations: 67.98 kB / 0.6295 GB, free: 2.086 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002496/0.6844, allocations: 1.252 MB / 0.6307 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.368e-05/0.6845, allocations: 11.94 kB / 0.6308 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.6847, allocations: 32 kB / 0.6308 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001638/0.6849, allocations: 81.27 kB / 0.6309 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002783/0.6877, allocations: 1.063 MB / 0.6319 GB, free: 15.58 MB / 478.1 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.01047/0.6981, allocations: 4.822 MB / 0.6366 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.6988, allocations: 281.7 kB / 0.6369 GB, free: 10.18 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.699, allocations: 89.11 kB / 0.637 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.075e-05/0.699, allocations: 42.55 kB / 0.637 GB, free: 10.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=28): time 2.825e-06/0.699, allocations: 4 kB / 0.637 GB, free: 10.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.007202/0.7062, allocations: 1.743 MB / 0.6387 GB, free: 8.188 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.7064, allocations: 136.5 kB / 0.6388 GB, free: 8.023 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.7078, allocations: 0.9349 MB / 0.6398 GB, free: 7.062 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-05/0.7079, allocations: 37.7 kB / 0.6398 GB, free: 7.02 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005046/0.7084, allocations: 0.5633 MB / 0.6403 GB, free: 6.445 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.7086, allocations: 130.3 kB / 0.6405 GB, free: 6.316 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.7086, allocations: 20 kB / 0.6405 GB, free: 6.297 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.7088, allocations: 402.7 kB / 0.6409 GB, free: 5.895 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004642/0.7093, allocations: 270.5 kB / 0.6411 GB, free: 5.629 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009526/0.7103, allocations: 0.8639 MB / 0.642 GB, free: 4.48 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.711, allocations: 460.2 kB / 0.6424 GB, free: 4.031 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.745e-05/0.7111, allocations: 4 kB / 0.6424 GB, free: 4.027 MB / 478.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001986/0.7131, allocations: 1.227 MB / 0.6436 GB, free: 2.789 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.7131, allocations: 14.03 kB / 0.6436 GB, free: 2.777 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.7131, allocations: 20 kB / 0.6436 GB, free: 2.758 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.7146, allocations: 298.1 kB / 0.6439 GB, free: 2.465 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.7152, allocations: 203.6 kB / 0.6441 GB, free: 2.266 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001232/0.7165, allocations: 0.9074 MB / 0.645 GB, free: 1.332 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009176/0.7174, allocations: 64.03 kB / 0.6451 GB, free: 1.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.7175, allocations: 68 kB / 0.6451 GB, free: 1.203 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005423/0.718, allocations: 353.7 kB / 0.6455 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.7182, allocations: 94.88 kB / 0.6456 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.7193, allocations: 0.5132 MB / 0.6461 GB, free: 240 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.7193, allocations: 4 kB / 0.6461 GB, free: 236 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.7194, allocations: 4 kB / 0.6461 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.7194, allocations: 0 / 0.6461 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.7213, allocations: 1.126 MB / 0.6472 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.7213, allocations: 0 / 0.6472 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009737/0.7223, allocations: 187.8 kB / 0.6473 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.7224, allocations: 28.8 kB / 0.6474 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.7225, allocations: 12 kB / 0.6474 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002417/0.7249, allocations: 2.688 MB / 0.65 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.7249, allocations: 7.922 kB / 0.65 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.7262, allocations: 0.7007 MB / 0.6507 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004682/0.7267, allocations: 212.2 kB / 0.6509 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.7268, allocations: 12 kB / 0.6509 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004379/0.7273, allocations: 19.98 kB / 0.6509 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-05/0.7273, allocations: 27.91 kB / 0.651 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-05/0.7274, allocations: 23.98 kB / 0.651 GB, free: 10.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009182/0.7283, allocations: 0.6165 MB / 0.6516 GB, free: 10.19 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7283, allocations: 4 kB / 0.6516 GB, free: 10.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001489/0.7298, allocations: 379.9 kB / 0.652 GB, free: 9.812 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (33): * Single equations (assignments): 31 * 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.003074/0.7329, allocations: 1.764 MB / 0.6537 GB, free: 8.016 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.7344, allocations: 0.6749 MB / 0.6543 GB, free: 7.348 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.7344, allocations: 0 / 0.6543 GB, free: 7.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009659/0.7354, allocations: 370.4 kB / 0.6547 GB, free: 6.973 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/0.7374, allocations: 410.2 kB / 0.6551 GB, free: 6.574 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.7517, allocations: 19.01 MB / 0.6736 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007087/0.7525, allocations: 1.052 MB / 0.6747 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00127/0.7538, allocations: 387 kB / 0.675 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.7542, allocations: 319.3 kB / 0.6753 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of SimCode: time 1.643e-06/0.7542, allocations: 0 / 0.6753 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0551/0.8094, allocations: 29.38 MB / 0.704 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002541/0.8097, allocations: 307.9 kB / 0.7043 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.563/3.373, allocations: 0 / 0.7043 GB, free: 3.828 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat