Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009085/0.0009085, allocations: 95.91 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 177.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.3 MB / 241.9 MB, free: 336 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2018/0.2018, allocations: 44.22 MB / 337.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003607, allocations: 12.22 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1485, allocations: 61.92 MB / 471.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam): time 0.4793/0.6279, allocations: 159.8 MB / 0.6167 GB, free: 3.344 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006734/0.6347, allocations: 5.121 MB / 0.6217 GB, free: 14.21 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000835/0.6356, allocations: 27.75 kB / 0.6217 GB, free: 14.18 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009053/0.6365, allocations: 254.4 kB / 0.6219 GB, free: 13.93 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.003312/0.6398, allocations: 1.156 MB / 0.6231 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002374/0.6422, allocations: 0.8396 MB / 0.6239 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002734/0.645, allocations: 2.242 MB / 0.6261 GB, free: 9.695 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000929/0.6459, allocations: 380 kB / 0.6264 GB, free: 9.324 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002222/0.6482, allocations: 0.899 MB / 0.6273 GB, free: 8.422 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001443/0.6496, allocations: 0.7356 MB / 0.628 GB, free: 7.684 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002185/0.6499, allocations: 32 kB / 0.6281 GB, free: 7.652 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.6515, allocations: 455.4 kB / 0.6285 GB, free: 7.207 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004486/0.652, allocations: 235.2 kB / 0.6287 GB, free: 6.977 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003699/0.6524, allocations: 165.4 kB / 0.6289 GB, free: 6.809 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001601/0.654, allocations: 0.9275 MB / 0.6298 GB, free: 5.879 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.654, allocations: 0 / 0.6298 GB, free: 5.879 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.654, allocations: 0 / 0.6298 GB, free: 5.879 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.195e-05/0.6541, allocations: 0 / 0.6298 GB, free: 5.879 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002308/0.6564, allocations: 0.9582 MB / 0.6307 GB, free: 4.871 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.6564, allocations: 12.55 kB / 0.6307 GB, free: 4.859 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001885/0.6566, allocations: 94.52 kB / 0.6308 GB, free: 4.758 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008627/0.6575, allocations: 131.1 kB / 0.6309 GB, free: 4.629 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.6587, allocations: 0.4926 MB / 0.6314 GB, free: 4.094 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.6588, allocations: 100.4 kB / 0.6315 GB, free: 3.984 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.659, allocations: 51.98 kB / 0.6316 GB, free: 3.934 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.6605, allocations: 0.8174 MB / 0.6324 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.6605, allocations: 0 / 0.6324 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.476e-05/0.6606, allocations: 24 kB / 0.6324 GB, free: 3.02 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.866e-05/0.6607, allocations: 36.98 kB / 0.6324 GB, free: 2.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.662, allocations: 0.6282 MB / 0.633 GB, free: 2.355 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.00489/0.6669, allocations: 3.962 MB / 0.6369 GB, free: 14.13 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005966/0.6675, allocations: 369.7 kB / 0.6373 GB, free: 13.77 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.6678, allocations: 169.3 kB / 0.6374 GB, free: 13.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001187/0.6679, allocations: 101.3 kB / 0.6375 GB, free: 13.48 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.668, allocations: 42.78 kB / 0.6376 GB, free: 13.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=34): time 2.314e-06/0.668, allocations: 0 / 0.6376 GB, free: 13.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=39): time 0.005017/0.673, allocations: 1.654 MB / 0.6392 GB, free: 11.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.6731, allocations: 132.5 kB / 0.6393 GB, free: 11.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007132/0.6738, allocations: 0.6132 MB / 0.6399 GB, free: 10.92 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/0.6739, allocations: 33.7 kB / 0.6399 GB, free: 10.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.6741, allocations: 366.8 kB / 0.6403 GB, free: 10.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.6742, allocations: 142 kB / 0.6404 GB, free: 10.38 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.6743, allocations: 12 kB / 0.6404 GB, free: 10.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6744, allocations: 382.7 kB / 0.6408 GB, free: 9.984 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.6748, allocations: 201.9 kB / 0.641 GB, free: 9.789 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.6753, allocations: 0.5086 MB / 0.6415 GB, free: 9.133 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.6758, allocations: 292.6 kB / 0.6418 GB, free: 8.848 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.6758, allocations: 4 kB / 0.6418 GB, free: 8.844 MB / 478.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00141/0.6772, allocations: 0.8754 MB / 0.6426 GB, free: 7.957 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.6773, allocations: 8.969 kB / 0.6426 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.6773, allocations: 8 kB / 0.6426 GB, free: 7.941 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.6785, allocations: 328.5 kB / 0.643 GB, free: 7.617 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.6789, allocations: 119.8 kB / 0.6431 GB, free: 7.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.6799, allocations: 0.9293 MB / 0.644 GB, free: 6.547 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000487/0.6804, allocations: 47.94 kB / 0.644 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.803e-05/0.6805, allocations: 64 kB / 0.6441 GB, free: 6.438 MB / 478.1 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.0003132/0.6809, allocations: 241.6 kB / 0.6443 GB, free: 6.191 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.681, allocations: 79.23 kB / 0.6444 GB, free: 6.113 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.6827, allocations: 0.8669 MB / 0.6452 GB, free: 5.23 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.6827, allocations: 4 kB / 0.6452 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.6827, allocations: 3.938 kB / 0.6452 GB, free: 5.223 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.6827, allocations: 0 / 0.6452 GB, free: 5.223 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.6846, allocations: 1.457 MB / 0.6467 GB, free: 3.629 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.6846, allocations: 3.938 kB / 0.6467 GB, free: 3.625 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009866/0.6856, allocations: 211.8 kB / 0.6469 GB, free: 3.418 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.4e-05/0.6857, allocations: 29.02 kB / 0.6469 GB, free: 3.387 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.113e-05/0.6857, allocations: 23.95 kB / 0.6469 GB, free: 3.363 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001811/0.6876, allocations: 2.676 MB / 0.6495 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.6876, allocations: 4.156 kB / 0.6495 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.6888, allocations: 0.8168 MB / 0.6503 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.6891, allocations: 196.2 kB / 0.6505 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.6892, allocations: 15.94 kB / 0.6505 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004052/0.6896, allocations: 19.98 kB / 0.6506 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.799e-05/0.6897, allocations: 40.02 kB / 0.6506 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-05/0.6898, allocations: 43.98 kB / 0.6506 GB, free: 15.24 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005083/0.6903, allocations: 431 kB / 0.651 GB, free: 14.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6903, allocations: 0 / 0.651 GB, free: 14.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008907/0.6912, allocations: 259.9 kB / 0.6513 GB, free: 14.57 MB / 494.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 (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.002044/0.6933, allocations: 1.536 MB / 0.6528 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.6944, allocations: 0.5507 MB / 0.6533 GB, free: 12.44 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.6944, allocations: 7.938 kB / 0.6533 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009553/0.6954, allocations: 418.7 kB / 0.6537 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.6969, allocations: 340.5 kB / 0.6541 GB, free: 11.69 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006194/0.7031, allocations: 4.251 MB / 0.6582 GB, free: 7.215 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.7036, allocations: 0.9299 MB / 0.6591 GB, free: 6.258 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001231/0.7048, allocations: 463 kB / 0.6596 GB, free: 5.809 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005403/0.7054, allocations: 287.3 kB / 0.6598 GB, free: 5.527 MB / 494.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7054, allocations: 0 / 0.6598 GB, free: 5.527 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04008/0.7455, allocations: 22.75 MB / 0.6821 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.7457, allocations: 292.3 kB / 0.6823 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.553/3.299, allocations: 5.766 kB / 0.6823 GB, free: 14.77 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam_res.mat does not exist to compare? outputFormat=mat