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.9013/0.9013, allocations: 150.9 MB / 166.4 MB, free: 14.23 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003368, allocations: 19.97 kB / 204.6 MB, free: 9.535 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1275, allocations: 31.33 MB / 236 MB, free: 5.43 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.53/1.657, allocations: 295 MB / 0.5185 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03296/1.69, allocations: 28.97 MB / 0.5468 GB, free: 320 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/1.69, allocations: 4 kB / 0.5468 GB, free: 316 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.0004764/1.691, allocations: 180.4 kB / 0.5469 GB, free: 136 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002078/1.691, allocations: 135 kB / 0.5471 GB, free: 0 / 430.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.02053/1.712, allocations: 9.547 MB / 0.5564 GB, free: 6.457 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004562/1.712, allocations: 434.1 kB / 0.5568 GB, free: 6.031 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/1.712, allocations: 122.2 kB / 0.5569 GB, free: 5.918 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/1.712, allocations: 171.3 kB / 0.5571 GB, free: 5.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/1.713, allocations: 139.3 kB / 0.5572 GB, free: 5.613 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/1.713, allocations: 16 kB / 0.5572 GB, free: 5.598 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02989/1.742, allocations: 20.24 MB / 0.577 GB, free: 1.336 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 9.507e-05/1.743, allocations: 51.78 kB / 0.5771 GB, free: 1.285 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/1.743, allocations: 159.2 kB / 0.5772 GB, free: 1.129 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01515/1.758, allocations: 8.588 MB / 0.5856 GB, free: 8.523 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/1.758, allocations: 8 kB / 0.5856 GB, free: 8.516 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.184e-06/1.758, allocations: 0 / 0.5856 GB, free: 8.516 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/1.758, allocations: 0 / 0.5856 GB, free: 8.516 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.004049/1.762, allocations: 1.404 MB / 0.587 GB, free: 7.062 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/1.762, allocations: 12.03 kB / 0.587 GB, free: 7.051 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.743e-05/1.762, allocations: 66.72 kB / 0.587 GB, free: 6.977 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.119e-05/1.762, allocations: 32.56 kB / 0.5871 GB, free: 6.945 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/1.763, allocations: 241.8 kB / 0.5873 GB, free: 6.672 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/1.763, allocations: 24.31 kB / 0.5873 GB, free: 6.648 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/1.763, allocations: 20 kB / 0.5873 GB, free: 6.629 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004499/1.763, allocations: 341.2 kB / 0.5877 GB, free: 6.266 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/1.763, allocations: 7.938 kB / 0.5877 GB, free: 6.258 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/1.763, allocations: 4 kB / 0.5877 GB, free: 6.254 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/1.763, allocations: 23.98 kB / 0.5877 GB, free: 6.23 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/1.763, allocations: 208.9 kB / 0.5879 GB, free: 6.027 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.02012/1.784, allocations: 9.891 MB / 0.5976 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/1.784, allocations: 150.9 kB / 0.5977 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/1.784, allocations: 109.7 kB / 0.5978 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1207/1.905, allocations: 51.56 MB / 0.6482 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/1.905, allocations: 34.56 kB / 0.6482 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 2.484e-06/1.905, allocations: 0 / 0.6482 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001164/1.906, allocations: 0.5226 MB / 0.6487 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/1.906, allocations: 55.41 kB / 0.6488 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/1.906, allocations: 221 kB / 0.649 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/1.906, allocations: 33.7 kB / 0.649 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.43e-05/1.906, allocations: 144.9 kB / 0.6491 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/1.906, allocations: 169.5 kB / 0.6493 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.889e-05/1.906, allocations: 53.69 kB / 0.6494 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001013/1.907, allocations: 342.8 kB / 0.6497 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/1.907, allocations: 84.53 kB / 0.6498 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/1.907, allocations: 149.3 kB / 0.6499 GB, free: 488 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/1.907, allocations: 274.9 kB / 0.6502 GB, free: 192 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.907, allocations: 0 / 0.6502 GB, free: 192 kB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005312/1.908, allocations: 340.4 kB / 0.6505 GB, free: 15.85 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/1.908, allocations: 6.031 kB / 0.6505 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/1.908, allocations: 8.188 kB / 0.6505 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/1.908, allocations: 108.8 kB / 0.6506 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.599e-05/1.908, allocations: 15.92 kB / 0.6506 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004325/1.909, allocations: 0.597 MB / 0.6512 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/1.909, allocations: 35.53 kB / 0.6512 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/1.909, allocations: 12.06 kB / 0.6513 GB, free: 15.04 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.0001322/1.909, allocations: 145.8 kB / 0.6514 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/1.909, allocations: 23.62 kB / 0.6514 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008916/1.91, allocations: 0.8157 MB / 0.6522 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005051/1.91, allocations: 380.4 kB / 0.6526 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.91, allocations: 0 / 0.6526 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/1.91, allocations: 7.938 kB / 0.6526 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/1.912, allocations: 1.478 MB / 0.654 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/1.912, allocations: 12.12 kB / 0.654 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/1.912, allocations: 67.86 kB / 0.6541 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/1.913, allocations: 92.8 kB / 0.6542 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/1.913, allocations: 12 kB / 0.6542 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004082/1.913, allocations: 0.6303 MB / 0.6548 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.913, allocations: 12.06 kB / 0.6548 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006736/1.914, allocations: 0.6364 MB / 0.6554 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/1.914, allocations: 128.5 kB / 0.6556 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.746e-05/1.914, allocations: 23.84 kB / 0.6556 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/1.914, allocations: 16.09 kB / 0.6556 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/1.914, allocations: 49.36 kB / 0.6557 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/1.914, allocations: 19.94 kB / 0.6557 GB, free: 10.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002864/1.914, allocations: 287 kB / 0.6559 GB, free: 9.926 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.914, allocations: 0 / 0.6559 GB, free: 9.926 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003075/1.918, allocations: 1.343 MB / 0.6573 GB, free: 8.582 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.006699/1.924, allocations: 2.716 MB / 0.6599 GB, free: 5.781 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007055/1.925, allocations: 497 kB / 0.6604 GB, free: 5.27 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/1.925, allocations: 4 kB / 0.6604 GB, free: 5.266 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000309/1.925, allocations: 196.4 kB / 0.6606 GB, free: 5.074 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/1.927, allocations: 224.2 kB / 0.6608 GB, free: 4.855 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/1.932, allocations: 4.15 MB / 0.6648 GB, free: 468 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/1.932, allocations: 0.8401 MB / 0.6657 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001748/1.932, allocations: 42.95 kB / 0.6657 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/1.933, allocations: 163.4 kB / 0.6659 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/1.933, allocations: 0 / 0.6659 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2326/2.165, allocations: 59.65 MB / 0.7241 GB, free: 196.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/16.07, allocations: 3.062 kB / 0.7241 GB, free: 196.7 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)