Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7759/0.7759, allocations: 150.9 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002934, allocations: 15.97 kB / 204.2 MB, free: 9.98 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1226, allocations: 31.33 MB / 235.6 MB, free: 5.434 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine): time 1.512/1.635, allocations: 293.8 MB / 0.517 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0328/1.667, allocations: 29.52 MB / 0.5458 GB, free: 104 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/1.668, allocations: 4 kB / 0.5458 GB, free: 100 kB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:35:3-37:17:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:38:3-39:44:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005093/1.668, allocations: 168.2 kB / 0.546 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/1.668, allocations: 115.2 kB / 0.5461 GB, free: 15.82 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1445:9-1445:35:writable] Warning: h was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02189/1.69, allocations: 8.39 MB / 0.5543 GB, free: 7.441 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004796/1.691, allocations: 438.1 kB / 0.5547 GB, free: 7.012 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/1.691, allocations: 124.3 kB / 0.5548 GB, free: 6.898 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/1.691, allocations: 175.2 kB / 0.555 GB, free: 6.727 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/1.691, allocations: 143.3 kB / 0.5551 GB, free: 6.586 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/1.691, allocations: 16 kB / 0.5552 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02801/1.719, allocations: 20.36 MB / 0.575 GB, free: 2.184 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-05/1.719, allocations: 51.8 kB / 0.5751 GB, free: 2.133 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/1.72, allocations: 159.2 kB / 0.5752 GB, free: 1.977 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.014/1.734, allocations: 8.619 MB / 0.5837 GB, free: 9.34 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/1.734, allocations: 3.938 kB / 0.5837 GB, free: 9.336 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.272e-06/1.734, allocations: 0 / 0.5837 GB, free: 9.336 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/1.734, allocations: 0 / 0.5837 GB, free: 9.336 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.003411/1.737, allocations: 1.404 MB / 0.585 GB, free: 7.883 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/1.737, allocations: 11.97 kB / 0.585 GB, free: 7.871 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.124e-05/1.737, allocations: 74.72 kB / 0.5851 GB, free: 7.789 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/1.737, allocations: 28.56 kB / 0.5851 GB, free: 7.762 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/1.737, allocations: 235.8 kB / 0.5854 GB, free: 7.492 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/1.737, allocations: 20.38 kB / 0.5854 GB, free: 7.473 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/1.738, allocations: 20.61 kB / 0.5854 GB, free: 7.453 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004463/1.738, allocations: 349.1 kB / 0.5857 GB, free: 7.082 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/1.738, allocations: 0 / 0.5857 GB, free: 7.082 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/1.738, allocations: 12 kB / 0.5858 GB, free: 7.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/1.738, allocations: 11.98 kB / 0.5858 GB, free: 7.059 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/1.738, allocations: 213.7 kB / 0.586 GB, free: 6.852 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.01837/1.757, allocations: 9.895 MB / 0.5956 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/1.757, allocations: 143 kB / 0.5958 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/1.757, allocations: 117.7 kB / 0.5959 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1074/1.864, allocations: 51.56 MB / 0.6462 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/1.865, allocations: 34.56 kB / 0.6463 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 1.954e-06/1.865, allocations: 0 / 0.6463 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001119/1.866, allocations: 0.5249 MB / 0.6468 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.086e-05/1.866, allocations: 51.41 kB / 0.6468 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/1.866, allocations: 229 kB / 0.647 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/1.866, allocations: 25.7 kB / 0.6471 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/1.866, allocations: 152.9 kB / 0.6472 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/1.866, allocations: 165.5 kB / 0.6474 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.91e-05/1.866, allocations: 61.62 kB / 0.6474 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001567/1.867, allocations: 338.8 kB / 0.6478 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/1.867, allocations: 84.53 kB / 0.6478 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/1.867, allocations: 141.3 kB / 0.648 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/1.867, allocations: 265.8 kB / 0.6482 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.867, allocations: 0 / 0.6482 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005127/1.868, allocations: 339.4 kB / 0.6485 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/1.868, allocations: 8 kB / 0.6486 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/1.868, allocations: 3.938 kB / 0.6486 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002997/1.868, allocations: 108.8 kB / 0.6487 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.439e-05/1.868, allocations: 11.98 kB / 0.6487 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005389/1.869, allocations: 0.6147 MB / 0.6493 GB, free: 15.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/1.869, allocations: 31.56 kB / 0.6493 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/1.869, allocations: 15.98 kB / 0.6493 GB, free: 15.86 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,puitsP.C.a,steamEngine1.C2.b,steamEngine1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001305/1.869, allocations: 137.9 kB / 0.6494 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/1.869, allocations: 31.56 kB / 0.6495 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009106/1.87, allocations: 0.804 MB / 0.6503 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005273/1.87, allocations: 384.3 kB / 0.6506 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.87, allocations: 4 kB / 0.6506 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/1.87, allocations: 0 / 0.6506 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/1.872, allocations: 1.49 MB / 0.6521 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.872, allocations: 4 kB / 0.6521 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/1.872, allocations: 63.92 kB / 0.6522 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/1.873, allocations: 88.8 kB / 0.6522 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.627e-05/1.873, allocations: 16 kB / 0.6523 GB, free: 12.67 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004099/1.873, allocations: 0.6422 MB / 0.6529 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/1.873, allocations: 7.938 kB / 0.6529 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/1.874, allocations: 0.6404 MB / 0.6535 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.905e-05/1.874, allocations: 124.5 kB / 0.6536 GB, free: 11.13 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.845e-05/1.874, allocations: 31.78 kB / 0.6537 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/1.874, allocations: 12 kB / 0.6537 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/1.874, allocations: 43.83 kB / 0.6537 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/1.874, allocations: 20 kB / 0.6537 GB, free: 11.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002923/1.874, allocations: 287 kB / 0.654 GB, free: 10.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.874, allocations: 3.938 kB / 0.654 GB, free: 10.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003159/1.878, allocations: 1.331 MB / 0.6553 GB, free: 9.406 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 0 () * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00661/1.884, allocations: 2.727 MB / 0.658 GB, free: 6.605 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007083/1.885, allocations: 0.4929 MB / 0.6585 GB, free: 6.086 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/1.885, allocations: 0 / 0.6585 GB, free: 6.086 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002762/1.885, allocations: 198 kB / 0.6586 GB, free: 5.895 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/1.886, allocations: 214.6 kB / 0.6589 GB, free: 5.684 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00537/1.892, allocations: 4.29 MB / 0.663 GB, free: 1.152 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/1.892, allocations: 0.8362 MB / 0.6639 GB, free: 296 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001823/1.893, allocations: 46.94 kB / 0.6639 GB, free: 248 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/1.893, allocations: 159.4 kB / 0.6641 GB, free: 88 kB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/1.893, allocations: 0 / 0.6641 GB, free: 88 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2282/2.121, allocations: 59.55 MB / 0.7222 GB, free: 197.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001239/2.121, allocations: 232.1 kB / 0.7224 GB, free: 196.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.071/7.193, allocations: 3.094 kB / 0.7224 GB, free: 196.9 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)