Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.Air.SimpleAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008545/0.0008545, allocations: 97.52 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000921/0.0009214, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1894/0.1894, allocations: 45.92 MB / 344.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002384, allocations: 15.94 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 63.46 MB / 481.7 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.3768/0.4939, allocations: 134.4 MB / 0.6016 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006939/0.5009, allocations: 5.327 MB / 0.6068 GB, free: 10 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007348/0.5017, allocations: 27.75 kB / 0.6068 GB, free: 9.977 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008495/0.5026, allocations: 262.4 kB / 0.6071 GB, free: 9.715 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001893/0.5045, allocations: 0.8161 MB / 0.6079 GB, free: 8.895 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002305/0.5068, allocations: 0.7919 MB / 0.6087 GB, free: 8.109 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002635/0.5094, allocations: 2.21 MB / 0.6108 GB, free: 5.898 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006312/0.5101, allocations: 388 kB / 0.6112 GB, free: 5.516 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.5111, allocations: 0.6655 MB / 0.6118 GB, free: 4.848 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009353/0.5121, allocations: 0.7124 MB / 0.6125 GB, free: 4.133 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.573e-05/0.5122, allocations: 32 kB / 0.6126 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.5133, allocations: 415.1 kB / 0.613 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002718/0.5136, allocations: 239.2 kB / 0.6132 GB, free: 3.461 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.5138, allocations: 161.4 kB / 0.6133 GB, free: 3.297 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008333/0.5147, allocations: 0.8128 MB / 0.6141 GB, free: 2.484 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.5147, allocations: 0 / 0.6141 GB, free: 2.484 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5147, allocations: 0 / 0.6141 GB, free: 2.484 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.5147, allocations: 0 / 0.6141 GB, free: 2.484 MB / 446.1 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.001647/0.5164, allocations: 0.9153 MB / 0.615 GB, free: 1.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.5164, allocations: 16.02 kB / 0.615 GB, free: 1.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.5165, allocations: 98.5 kB / 0.6151 GB, free: 1.398 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003067/0.5168, allocations: 87.11 kB / 0.6152 GB, free: 1.312 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007046/0.5175, allocations: 0.4966 MB / 0.6157 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.83e-05/0.5177, allocations: 116.3 kB / 0.6158 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-05/0.5177, allocations: 44 kB / 0.6159 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.5189, allocations: 0.8071 MB / 0.6166 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.5189, allocations: 4 kB / 0.6166 GB, free: 15.72 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.519, allocations: 27.98 kB / 0.6167 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.5191, allocations: 40.98 kB / 0.6167 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.5201, allocations: 0.6478 MB / 0.6173 GB, free: 15.01 MB / 462.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.00404/0.5241, allocations: 3.963 MB / 0.6212 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007138/0.5249, allocations: 426.6 kB / 0.6216 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.5252, allocations: 201.4 kB / 0.6218 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005384/0.5257, allocations: 0.7366 MB / 0.6225 GB, free: 9.234 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.5257, allocations: 42.83 kB / 0.6226 GB, free: 9.184 MB / 462.1 MB Notification: Performance of pre-optimization done (n=40): time 1.834e-06/0.5258, allocations: 0 / 0.6226 GB, free: 9.184 MB / 462.1 MB Notification: Performance of matching and sorting (n=45): time 0.002913/0.5287, allocations: 1.527 MB / 0.6241 GB, free: 7.582 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.5288, allocations: 132.5 kB / 0.6242 GB, free: 7.422 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006159/0.5294, allocations: 0.5692 MB / 0.6247 GB, free: 6.844 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.5294, allocations: 33.7 kB / 0.6248 GB, free: 6.805 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.5297, allocations: 359 kB / 0.6251 GB, free: 6.445 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.5298, allocations: 165.7 kB / 0.6253 GB, free: 6.281 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.211e-05/0.5298, allocations: 12 kB / 0.6253 GB, free: 6.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.53, allocations: 378.7 kB / 0.6257 GB, free: 5.891 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003374/0.5303, allocations: 209.9 kB / 0.6259 GB, free: 5.688 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005088/0.5309, allocations: 0.5131 MB / 0.6264 GB, free: 5.039 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.5313, allocations: 308.6 kB / 0.6266 GB, free: 4.742 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5313, allocations: 4 kB / 0.6267 GB, free: 4.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001657/0.533, allocations: 0.9026 MB / 0.6275 GB, free: 3.824 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.533, allocations: 15.98 kB / 0.6275 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.533, allocations: 12 kB / 0.6276 GB, free: 3.797 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.5343, allocations: 295.8 kB / 0.6278 GB, free: 3.508 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.5347, allocations: 123.8 kB / 0.628 GB, free: 3.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009747/0.5356, allocations: 0.884 MB / 0.6288 GB, free: 2.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.5361, allocations: 35.98 kB / 0.6289 GB, free: 2.441 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.373e-05/0.5362, allocations: 43.92 kB / 0.6289 GB, free: 2.398 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (71): * Single equations (assignments): 70 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003318/0.5365, allocations: 254 kB / 0.6291 GB, free: 2.141 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.85e-05/0.5367, allocations: 67.16 kB / 0.6292 GB, free: 2.074 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001265/0.5379, allocations: 0.7715 MB / 0.63 GB, free: 1.273 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.5379, allocations: 4 kB / 0.63 GB, free: 1.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.538, allocations: 0 / 0.63 GB, free: 1.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.538, allocations: 3.984 kB / 0.63 GB, free: 1.266 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.5399, allocations: 1.411 MB / 0.6313 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5399, allocations: 0 / 0.6313 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5409, allocations: 204 kB / 0.6315 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-05/0.541, allocations: 24.84 kB / 0.6316 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.541, allocations: 15.98 kB / 0.6316 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/0.543, allocations: 2.685 MB / 0.6342 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.543, allocations: 4.031 kB / 0.6342 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.5444, allocations: 0.9995 MB / 0.6352 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/0.5447, allocations: 204.3 kB / 0.6354 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.191e-05/0.5448, allocations: 8.875 kB / 0.6354 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.5452, allocations: 39.89 kB / 0.6354 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-05/0.5453, allocations: 39.84 kB / 0.6355 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.5454, allocations: 27.97 kB / 0.6355 GB, free: 11.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005515/0.5459, allocations: 403.1 kB / 0.6359 GB, free: 10.78 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5459, allocations: 0 / 0.6359 GB, free: 10.78 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009047/0.5468, allocations: 228 kB / 0.6361 GB, free: 10.56 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002302/0.5492, allocations: 1.702 MB / 0.6377 GB, free: 8.797 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.5505, allocations: 0.5859 MB / 0.6383 GB, free: 8.215 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5506, allocations: 1.562 kB / 0.6383 GB, free: 8.215 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009977/0.5516, allocations: 462.8 kB / 0.6388 GB, free: 7.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.5532, allocations: 336.5 kB / 0.6391 GB, free: 7.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006572/0.5598, allocations: 4.265 MB / 0.6432 GB, free: 2.957 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006102/0.5604, allocations: 0.9387 MB / 0.6442 GB, free: 1.992 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008351/0.5613, allocations: 203.1 kB / 0.6444 GB, free: 1.801 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.5616, allocations: 235.3 kB / 0.6446 GB, free: 1.57 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5616, allocations: 4 kB / 0.6446 GB, free: 1.566 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.5988, allocations: 20.3 MB / 0.6644 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/0.5991, allocations: 278.9 kB / 0.6647 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.421/3.02, allocations: 0 / 0.6647 GB, free: 13.23 MB / 0.4981 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat