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.784/0.784, allocations: 150.9 MB / 166.4 MB, free: 14.37 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003099, allocations: 15.97 kB / 204.8 MB, free: 9.551 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1485, allocations: 31.33 MB / 236.1 MB, free: 5.379 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.544/1.693, allocations: 294.7 MB / 0.5184 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03532/1.728, allocations: 28.97 MB / 0.5467 GB, free: 276 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/1.729, allocations: 3.938 kB / 0.5467 GB, free: 272 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.0006556/1.729, allocations: 183.9 kB / 0.5468 GB, free: 88 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000446/1.73, allocations: 135.1 kB / 0.547 GB, free: 15.95 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.028/1.758, allocations: 9.555 MB / 0.5563 GB, free: 6.406 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006885/1.758, allocations: 430.1 kB / 0.5567 GB, free: 5.984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000274/1.759, allocations: 122.9 kB / 0.5568 GB, free: 5.871 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002935/1.759, allocations: 179.2 kB / 0.557 GB, free: 5.695 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/1.759, allocations: 139.3 kB / 0.5571 GB, free: 5.559 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.487e-05/1.759, allocations: 16 kB / 0.5572 GB, free: 5.543 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03383/1.793, allocations: 20.53 MB / 0.5772 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/1.793, allocations: 51.78 kB / 0.5772 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002549/1.794, allocations: 155.2 kB / 0.5774 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02214/1.816, allocations: 8.58 MB / 0.5858 GB, free: 8.188 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.816, allocations: 0 / 0.5858 GB, free: 8.188 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.364e-06/1.816, allocations: 0 / 0.5858 GB, free: 8.188 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/1.816, allocations: 0 / 0.5858 GB, free: 8.188 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.004912/1.821, allocations: 1.412 MB / 0.5872 GB, free: 6.727 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/1.821, allocations: 8.031 kB / 0.5872 GB, free: 6.719 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.063e-05/1.821, allocations: 66.72 kB / 0.5872 GB, free: 6.645 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.293e-05/1.821, allocations: 28.56 kB / 0.5873 GB, free: 6.617 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/1.821, allocations: 239.8 kB / 0.5875 GB, free: 6.344 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/1.821, allocations: 20.38 kB / 0.5875 GB, free: 6.324 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/1.821, allocations: 20 kB / 0.5875 GB, free: 6.305 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005202/1.822, allocations: 349.1 kB / 0.5879 GB, free: 5.934 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/1.822, allocations: 0 / 0.5879 GB, free: 5.934 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/1.822, allocations: 12 kB / 0.5879 GB, free: 5.922 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.455e-05/1.822, allocations: 17.14 kB / 0.5879 GB, free: 5.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002786/1.822, allocations: 212.8 kB / 0.5881 GB, free: 5.699 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.01896/1.841, allocations: 9.937 MB / 0.5978 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/1.841, allocations: 155.7 kB / 0.5979 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/1.842, allocations: 109.7 kB / 0.598 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.109/1.951, allocations: 52.02 MB / 0.6488 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/1.951, allocations: 35.59 kB / 0.6489 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 2.205e-06/1.951, allocations: 0 / 0.6489 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001127/1.952, allocations: 0.5172 MB / 0.6494 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/1.952, allocations: 51.41 kB / 0.6494 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/1.952, allocations: 229 kB / 0.6496 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/1.952, allocations: 29.7 kB / 0.6497 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.595e-05/1.952, allocations: 152.9 kB / 0.6498 GB, free: 464 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/1.952, allocations: 165.4 kB / 0.65 GB, free: 296 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.599e-05/1.952, allocations: 57.69 kB / 0.65 GB, free: 232 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001793/1.953, allocations: 342.8 kB / 0.6504 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/1.953, allocations: 80.53 kB / 0.6504 GB, free: 15.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/1.953, allocations: 149.3 kB / 0.6506 GB, free: 15.64 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/1.953, allocations: 267.2 kB / 0.6508 GB, free: 15.36 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/1.953, allocations: 0 / 0.6508 GB, free: 15.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004713/1.954, allocations: 339.2 kB / 0.6512 GB, free: 15.02 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.954, allocations: 7.984 kB / 0.6512 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/1.954, allocations: 0 / 0.6512 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002993/1.954, allocations: 114.6 kB / 0.6513 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.059e-05/1.954, allocations: 11.94 kB / 0.6513 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00048/1.955, allocations: 0.6108 MB / 0.6519 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/1.955, allocations: 35.53 kB / 0.6519 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/1.955, allocations: 4 kB / 0.6519 GB, free: 14.21 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.0001494/1.955, allocations: 153.9 kB / 0.6521 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/1.955, allocations: 31.56 kB / 0.6521 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/1.956, allocations: 0.8018 MB / 0.6529 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005913/1.957, allocations: 380.4 kB / 0.6532 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.957, allocations: 0 / 0.6532 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/1.957, allocations: 7.984 kB / 0.6532 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/1.959, allocations: 1.472 MB / 0.6547 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/1.959, allocations: 8 kB / 0.6547 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/1.959, allocations: 67.84 kB / 0.6548 GB, free: 11.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/1.959, allocations: 92.8 kB / 0.6548 GB, free: 11.03 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/1.959, allocations: 12 kB / 0.6549 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004378/1.959, allocations: 0.6391 MB / 0.6555 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.959, allocations: 8 kB / 0.6555 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/1.96, allocations: 0.6404 MB / 0.6561 GB, free: 9.621 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.791e-05/1.96, allocations: 129.3 kB / 0.6562 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.387e-05/1.96, allocations: 27.83 kB / 0.6563 GB, free: 9.449 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/1.96, allocations: 12 kB / 0.6563 GB, free: 9.438 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/1.961, allocations: 43.84 kB / 0.6563 GB, free: 9.395 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.051e-05/1.961, allocations: 16 kB / 0.6563 GB, free: 9.379 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002937/1.961, allocations: 295 kB / 0.6566 GB, free: 9.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/1.961, allocations: 0 / 0.6566 GB, free: 9.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003976/1.965, allocations: 1.324 MB / 0.6579 GB, free: 7.766 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.007282/1.972, allocations: 2.721 MB / 0.6606 GB, free: 4.961 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0008056/1.973, allocations: 496.9 kB / 0.661 GB, free: 4.449 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/1.973, allocations: 4 kB / 0.661 GB, free: 4.445 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003026/1.973, allocations: 198.1 kB / 0.6612 GB, free: 4.254 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/1.974, allocations: 214.1 kB / 0.6614 GB, free: 4.043 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006467/1.981, allocations: 4.146 MB / 0.6655 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/1.981, allocations: 0.84 MB / 0.6663 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002499/1.982, allocations: 46.89 kB / 0.6663 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/1.982, allocations: 159.4 kB / 0.6665 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/1.982, allocations: 4 kB / 0.6665 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2605/2.242, allocations: 59.54 MB / 0.7247 GB, free: 197.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/16.67, allocations: 4.438 kB / 0.7247 GB, free: 197.5 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)