Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.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.Air.DryAirNasa,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa",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.001535/0.001535, allocations: 188.1 kB / 16.4 MB, free: 5.625 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.198/2.198, allocations: 205.4 MB / 222.5 MB, free: 13.85 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: 90.88 kB / 270.9 MB, free: 13.38 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.2997/0.2997, allocations: 43.57 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004839/0.0004841, allocations: 8 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1261, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa): time 0.6277/0.7538, allocations: 141.9 MB / 0.6174 GB, free: 12.8 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01847/0.7724, allocations: 8.804 MB / 0.626 GB, free: 3.988 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.7735, allocations: 19.81 kB / 0.626 GB, free: 3.969 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.7748, allocations: 270.6 kB / 0.6263 GB, free: 3.703 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005296/0.7801, allocations: 1.184 MB / 0.6274 GB, free: 2.52 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004128/0.7842, allocations: 0.9081 MB / 0.6283 GB, free: 1.613 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002677/0.7869, allocations: 1.044 MB / 0.6293 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009866/0.788, allocations: 379.4 kB / 0.6297 GB, free: 200 kB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002746/0.7908, allocations: 0.744 MB / 0.6304 GB, free: 15.45 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.7921, allocations: 454.5 kB / 0.6309 GB, free: 15 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002051/0.7924, allocations: 32 kB / 0.6309 GB, free: 14.97 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002675/0.7951, allocations: 0.6242 MB / 0.6315 GB, free: 14.35 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005692/0.7957, allocations: 219.4 kB / 0.6317 GB, free: 14.13 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003801/0.7961, allocations: 161.4 kB / 0.6319 GB, free: 13.97 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.7987, allocations: 0.9909 MB / 0.6328 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.7988, allocations: 0 / 0.6328 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 5.891e-06/0.7988, allocations: 0 / 0.6328 GB, free: 12.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.004e-05/0.7988, allocations: 3.938 kB / 0.6328 GB, free: 12.97 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003433/0.8023, allocations: 0.9862 MB / 0.6338 GB, free: 11.94 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.8024, allocations: 16.02 kB / 0.6338 GB, free: 11.92 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003258/0.8027, allocations: 98.5 kB / 0.6339 GB, free: 11.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/0.804, allocations: 135.1 kB / 0.634 GB, free: 11.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.8054, allocations: 496.5 kB / 0.6345 GB, free: 11.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.8056, allocations: 104.4 kB / 0.6346 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.8058, allocations: 48 kB / 0.6347 GB, free: 11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.808, allocations: 0.8135 MB / 0.6355 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.8081, allocations: 4 kB / 0.6355 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.8082, allocations: 27.98 kB / 0.6355 GB, free: 10.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.599e-05/0.8083, allocations: 36.92 kB / 0.6355 GB, free: 10.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.8103, allocations: 0.6244 MB / 0.6361 GB, free: 9.41 MB / 442.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.007701/0.818, allocations: 3.955 MB / 0.64 GB, free: 5.203 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.8191, allocations: 351.7 kB / 0.6403 GB, free: 4.852 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.8192, allocations: 24.92 kB / 0.6403 GB, free: 4.828 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.8193, allocations: 42.78 kB / 0.6404 GB, free: 4.777 MB / 442.7 MB Notification: Performance of pre-optimization done (n=34): time 2.915e-06/0.8193, allocations: 0 / 0.6404 GB, free: 4.777 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.01/0.8293, allocations: 1.678 MB / 0.642 GB, free: 3.027 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.8295, allocations: 136.5 kB / 0.6422 GB, free: 2.863 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.8307, allocations: 0.6016 MB / 0.6427 GB, free: 2.254 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.8309, allocations: 37.7 kB / 0.6428 GB, free: 2.211 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00038/0.8313, allocations: 389.4 kB / 0.6432 GB, free: 1.828 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.8315, allocations: 145.9 kB / 0.6433 GB, free: 1.684 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.827e-05/0.8316, allocations: 20 kB / 0.6433 GB, free: 1.664 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.8318, allocations: 338.8 kB / 0.6436 GB, free: 1.324 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006543/0.8324, allocations: 197.9 kB / 0.6438 GB, free: 1.133 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009625/0.8334, allocations: 0.5047 MB / 0.6443 GB, free: 496 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008499/0.8343, allocations: 287.8 kB / 0.6446 GB, free: 208 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.8343, allocations: 8 kB / 0.6446 GB, free: 200 kB / 442.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002562/0.8369, allocations: 0.8304 MB / 0.6454 GB, free: 15.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.837, allocations: 15.98 kB / 0.6454 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.837, allocations: 15.94 kB / 0.6454 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002512/0.8395, allocations: 320.6 kB / 0.6457 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008139/0.8404, allocations: 115.8 kB / 0.6459 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.8423, allocations: 0.9386 MB / 0.6468 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.8434, allocations: 43.91 kB / 0.6468 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.8436, allocations: 68 kB / 0.6469 GB, free: 13.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (67): * Single equations (assignments): 66 * 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.0005857/0.8442, allocations: 245.6 kB / 0.6471 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.8444, allocations: 71.16 kB / 0.6472 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.847, allocations: 0.674 MB / 0.6478 GB, free: 12.81 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.847, allocations: 15.89 kB / 0.6479 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.8471, allocations: 4 kB / 0.6479 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.8471, allocations: 3.938 kB / 0.6479 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003241/0.8503, allocations: 1.261 MB / 0.6491 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.8504, allocations: 4.031 kB / 0.6491 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/0.8525, allocations: 203.8 kB / 0.6493 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.8527, allocations: 24.84 kB / 0.6493 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.77e-05/0.8528, allocations: 19.98 kB / 0.6493 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00313/0.8559, allocations: 2.699 MB / 0.652 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.856, allocations: 3.984 kB / 0.652 GB, free: 8.211 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.8583, allocations: 0.8459 MB / 0.6528 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000551/0.8589, allocations: 184.3 kB / 0.653 GB, free: 7.109 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.8591, allocations: 16 kB / 0.653 GB, free: 7.094 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000746/0.8599, allocations: 27.97 kB / 0.653 GB, free: 7.066 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.8601, allocations: 31.97 kB / 0.653 GB, free: 7.035 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.8602, allocations: 47.92 kB / 0.6531 GB, free: 6.988 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000865/0.8611, allocations: 431 kB / 0.6535 GB, free: 6.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8611, allocations: 0 / 0.6535 GB, free: 6.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001615/0.8627, allocations: 296 kB / 0.6538 GB, free: 6.281 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (39): * Single equations (assignments): 37 * 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.004227/0.867, allocations: 1.925 MB / 0.6557 GB, free: 4.305 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002122/0.8691, allocations: 0.5512 MB / 0.6562 GB, free: 3.754 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.8692, allocations: 3.859 kB / 0.6562 GB, free: 3.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.871, allocations: 402.5 kB / 0.6566 GB, free: 3.344 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003051/0.874, allocations: 323.3 kB / 0.6569 GB, free: 3.031 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.8891, allocations: 10.88 MB / 0.6675 GB, free: 7.871 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.8899, allocations: 0.9455 MB / 0.6685 GB, free: 6.898 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.8909, allocations: 287.3 kB / 0.6687 GB, free: 6.617 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/0.891, allocations: 0 / 0.6687 GB, free: 6.617 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.449/4.34, allocations: 19.87 MB / 0.6881 GB, free: 2.75 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa_res.mat does not exist to compare? outputFormat=mat