Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.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.TestSimpleStaticCondenser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSimpleStaticCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSimpleStaticCondenser",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.7993/0.7993, allocations: 150.9 MB / 166.4 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003502, allocations: 15.98 kB / 204.6 MB, free: 9.73 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1526, allocations: 31.33 MB / 236 MB, free: 5.395 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.TestSimpleStaticCondenser): time 1.54/1.693, allocations: 296.3 MB / 0.5198 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/1.719, allocations: 24.02 MB / 0.5433 GB, free: 3.832 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/1.719, allocations: 5.688 kB / 0.5433 GB, free: 3.828 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/SimpleStaticCondenser.mo:58:3-60:44:writable] Warning: Connector Ec 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/HeatExchangers/SimpleStaticCondenser.mo:61:3-63:42:writable] Warning: Connector Ef 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/HeatExchangers/SimpleStaticCondenser.mo:64:3-66:36:writable] Warning: Connector Sf 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/HeatExchangers/SimpleStaticCondenser.mo:67:3-69:37:writable] Warning: Connector Sc 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). [/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). Notification: Performance of NFTyping.typeComponents: time 0.0005085/1.72, allocations: 211.8 kB / 0.5435 GB, free: 3.621 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004314/1.72, allocations: 260.4 kB / 0.5437 GB, free: 3.367 MB / 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. Notification: Performance of NFTyping.typeClassSections: time 0.01614/1.737, allocations: 7.424 MB / 0.551 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009347/1.738, allocations: 0.8826 MB / 0.5518 GB, free: 11.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/1.738, allocations: 242 kB / 0.5521 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003362/1.738, allocations: 334.7 kB / 0.5524 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/1.738, allocations: 270.6 kB / 0.5527 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/1.739, allocations: 43.94 kB / 0.5527 GB, free: 10.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02263/1.761, allocations: 15.86 MB / 0.5682 GB, free: 10.33 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/1.761, allocations: 98.53 kB / 0.5683 GB, free: 10.24 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003889/1.762, allocations: 326.3 kB / 0.5686 GB, free: 9.918 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/1.774, allocations: 7.075 MB / 0.5755 GB, free: 2.828 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/1.774, allocations: 4 kB / 0.5755 GB, free: 2.824 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.643e-06/1.774, allocations: 0 / 0.5755 GB, free: 2.824 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/1.774, allocations: 0 / 0.5755 GB, free: 2.824 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: 205 * Number of variables: 205 Notification: Performance of Generate backend data structure: time 0.003156/1.778, allocations: 1.478 MB / 0.5769 GB, free: 1.297 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/1.778, allocations: 12.03 kB / 0.577 GB, free: 1.285 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.62e-05/1.778, allocations: 111.2 kB / 0.5771 GB, free: 1.168 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.61e-05/1.778, allocations: 72 kB / 0.5771 GB, free: 1.098 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/1.778, allocations: 322.2 kB / 0.5774 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/1.778, allocations: 30.88 kB / 0.5775 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/1.778, allocations: 40.12 kB / 0.5775 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007821/1.779, allocations: 0.6933 MB / 0.5782 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/1.779, allocations: 3.938 kB / 0.5782 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/1.779, allocations: 16 kB / 0.5782 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-05/1.779, allocations: 43.95 kB / 0.5782 GB, free: 15.87 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000531/1.78, allocations: 451.6 kB / 0.5787 GB, free: 15.43 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.07068/1.85, allocations: 36.15 MB / 0.614 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/1.851, allocations: 374.7 kB / 0.6143 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003279/1.851, allocations: 298.8 kB / 0.6146 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07911/1.93, allocations: 36.35 MB / 0.6501 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/1.93, allocations: 38.56 kB / 0.6502 GB, free: 15.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=124): time 2.575e-06/1.93, allocations: 0 / 0.6502 GB, free: 15.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=124): time 0.002164/1.933, allocations: 1.196 MB / 0.6513 GB, free: 13.94 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/1.933, allocations: 63.34 kB / 0.6514 GB, free: 13.86 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/1.933, allocations: 328.4 kB / 0.6517 GB, free: 13.54 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/1.933, allocations: 29.7 kB / 0.6517 GB, free: 13.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/1.933, allocations: 217.3 kB / 0.6519 GB, free: 13.28 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/1.934, allocations: 393.8 kB / 0.6523 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/1.934, allocations: 117.6 kB / 0.6524 GB, free: 12.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001294/1.934, allocations: 370.8 kB / 0.6528 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/1.934, allocations: 213.2 kB / 0.653 GB, free: 12.19 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/1.934, allocations: 332.5 kB / 0.6533 GB, free: 11.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006741/1.935, allocations: 0.6136 MB / 0.6539 GB, free: 11.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.935, allocations: 0 / 0.6539 GB, free: 11.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001044/1.936, allocations: 0.7804 MB / 0.6547 GB, free: 10.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/1.936, allocations: 9.562 kB / 0.6547 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/1.936, allocations: 7.938 kB / 0.6547 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/1.938, allocations: 338.5 kB / 0.655 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-05/1.938, allocations: 15.98 kB / 0.655 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009841/1.939, allocations: 1.293 MB / 0.6563 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/1.939, allocations: 78.94 kB / 0.6563 GB, free: 8.613 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/1.939, allocations: 16 kB / 0.6564 GB, free: 8.598 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (sinkP1.C.a,sinkP.C.a,sourceP1.C.b,sourceP.C.b,simpleStaticCondenser.Sc.b,simpleStaticCondenser.Sf.b,simpleStaticCondenser.Ef.a,simpleStaticCondenser.Ec.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,3), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000207/1.939, allocations: 174.4 kB / 0.6565 GB, free: 8.418 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.779e-05/1.94, allocations: 51.25 kB / 0.6566 GB, free: 8.367 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/1.943, allocations: 4.035 MB / 0.6605 GB, free: 4.152 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009664/1.944, allocations: 0.8157 MB / 0.6613 GB, free: 3.32 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.944, allocations: 3.938 kB / 0.6613 GB, free: 3.316 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/1.944, allocations: 3.984 kB / 0.6613 GB, free: 3.312 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/1.946, allocations: 2.191 MB / 0.6635 GB, free: 1.062 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/1.946, allocations: 0 / 0.6635 GB, free: 1.062 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002257/1.947, allocations: 95.84 kB / 0.6636 GB, free: 0.9688 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007329/1.947, allocations: 241.4 kB / 0.6638 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.202e-05/1.947, allocations: 19.09 kB / 0.6638 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009793/1.948, allocations: 1.332 MB / 0.6651 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.948, allocations: 0 / 0.6651 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/1.95, allocations: 0.9687 MB / 0.666 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/1.95, allocations: 184 kB / 0.6662 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/1.95, allocations: 39.66 kB / 0.6663 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/1.95, allocations: 23.94 kB / 0.6663 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/1.95, allocations: 44.53 kB / 0.6663 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/1.95, allocations: 16 kB / 0.6663 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004582/1.951, allocations: 426.8 kB / 0.6667 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.563e-06/1.951, allocations: 0 / 0.6667 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002339/1.953, allocations: 0.9877 MB / 0.6677 GB, free: 12.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (67): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,4), (2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005851/1.959, allocations: 2.583 MB / 0.6702 GB, free: 10 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001921/1.961, allocations: 1.034 MB / 0.6712 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/1.961, allocations: 4 kB / 0.6712 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005682/1.962, allocations: 404.8 kB / 0.6716 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002042/1.964, allocations: 447 kB / 0.6721 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/1.971, allocations: 5.72 MB / 0.6776 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/1.972, allocations: 0.9944 MB / 0.6786 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003143/1.972, allocations: 80.45 kB / 0.6787 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002762/1.972, allocations: 307.3 kB / 0.679 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/1.972, allocations: 0 / 0.679 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2355/2.208, allocations: 54.23 MB / 0.7319 GB, free: 206.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/14.81, allocations: 14.05 kB / 0.732 GB, free: 206.4 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSimpleStaticCondenser.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSimpleStaticCondenser.pipe 2>&1)