Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.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.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerDTorWorEff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerDTorWorEff",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.8865/0.8865, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003363, allocations: 19.97 kB / 204.1 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1519, allocations: 31.34 MB / 235.4 MB, free: 5.422 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.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff): time 1.521/1.672, allocations: 294.9 MB / 0.5179 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4551/2.128, allocations: 189.6 MB / 0.703 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004759/2.128, allocations: 13.97 kB / 0.7031 GB, free: 3.746 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:73:3-74:65:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:75:3-76:67:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:77:3-78:64:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:79:3-80:63:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002204/2.128, allocations: 60.52 kB / 0.7031 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004485/2.129, allocations: 207 kB / 0.7033 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02183/2.151, allocations: 8.937 MB / 0.712 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007914/2.151, allocations: 0.7653 MB / 0.7128 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/2.152, allocations: 388.4 kB / 0.7132 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/2.152, allocations: 290 kB / 0.7134 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/2.152, allocations: 346.9 kB / 0.7138 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.035e-05/2.152, allocations: 52.28 kB / 0.7138 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03106/2.183, allocations: 20.29 MB / 0.7336 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001938/2.184, allocations: 145.2 kB / 0.7338 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004772/2.184, allocations: 357.4 kB / 0.7341 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02256/2.207, allocations: 10.46 MB / 0.7443 GB, free: 172 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/2.207, allocations: 0 / 0.7443 GB, free: 172 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.883e-06/2.207, allocations: 1.203 kB / 0.7443 GB, free: 172 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.829e-06/2.207, allocations: 0 / 0.7443 GB, free: 172 kB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.005216/2.212, allocations: 2.122 MB / 0.7464 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/2.212, allocations: 10.91 kB / 0.7464 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/2.212, allocations: 113.1 kB / 0.7465 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/2.212, allocations: 83.84 kB / 0.7466 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/2.213, allocations: 434.1 kB / 0.747 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/2.213, allocations: 50.62 kB / 0.7471 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/2.213, allocations: 67.72 kB / 0.7471 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009076/2.214, allocations: 0.7026 MB / 0.7478 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/2.214, allocations: 1.344 kB / 0.7478 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/2.214, allocations: 29.38 kB / 0.7478 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/2.214, allocations: 15.66 kB / 0.7479 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007406/2.215, allocations: 0.5225 MB / 0.7484 GB, free: 14.11 MB / 0.5919 GB 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.002661/2.217, allocations: 3.135 MB / 0.7514 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/2.218, allocations: 240.5 kB / 0.7517 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/2.218, allocations: 105.5 kB / 0.7518 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.354/2.572, allocations: 182.6 MB / 0.9301 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/2.572, allocations: 34.56 kB / 0.9301 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=25): time 1.904e-06/2.572, allocations: 0 / 0.9301 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25): time 0.002424/2.575, allocations: 0.7405 MB / 0.9308 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/2.575, allocations: 55.41 kB / 0.9309 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005618/2.575, allocations: 0.4929 MB / 0.9314 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/2.575, allocations: 28.2 kB / 0.9314 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/2.575, allocations: 350.9 kB / 0.9317 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.456e-05/2.575, allocations: 94.8 kB / 0.9318 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/2.576, allocations: 103.8 kB / 0.9319 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001435/2.576, allocations: 363 kB / 0.9322 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/2.576, allocations: 98.77 kB / 0.9323 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/2.576, allocations: 267.9 kB / 0.9326 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004731/2.577, allocations: 400.7 kB / 0.933 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/2.577, allocations: 4 kB / 0.933 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007781/2.578, allocations: 0.5085 MB / 0.9335 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/2.578, allocations: 8 kB / 0.9335 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/2.578, allocations: 4 kB / 0.9335 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001848/2.579, allocations: 377.5 kB / 0.9339 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/2.58, allocations: 70.25 kB / 0.9339 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007946/2.58, allocations: 0.7611 MB / 0.9347 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/2.581, allocations: 62.97 kB / 0.9347 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/2.581, allocations: 28.84 kB / 0.9348 GB, free: 8.02 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 8 (sourceWaterSteam_FF.C.ftype,sourceWaterSteam_FC.C.ftype,sinkWaterSteam_FF.fluid,sinkWaterSteam_FC.fluid,exchangerWaterSteamDTorWorEFF.fluid_c,exchangerWaterSteamDTorWorEFF.fluid_f,sourceWaterSteam_FC.fluid1,sourceWaterSteam_FF.fluid1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/2.581, allocations: 189.3 kB / 0.9349 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.823e-05/2.581, allocations: 52.55 kB / 0.935 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/2.582, allocations: 0.5002 MB / 0.9355 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/2.582, allocations: 0 / 0.9355 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/2.582, allocations: 3.938 kB / 0.9355 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/2.582, allocations: 4 kB / 0.9355 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002037/2.584, allocations: 1.06 MB / 0.9365 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/2.584, allocations: 0 / 0.9365 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.548e-05/2.584, allocations: 19.48 kB / 0.9365 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/2.586, allocations: 304.2 kB / 0.9368 GB, free: 6.238 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/2.586, allocations: 7.562 kB / 0.9368 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006696/2.587, allocations: 0.7701 MB / 0.9376 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/2.587, allocations: 1.094 kB / 0.9376 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008483/2.587, allocations: 487.7 kB / 0.938 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/2.588, allocations: 158.5 kB / 0.9382 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.051e-05/2.588, allocations: 7.25 kB / 0.9382 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/2.588, allocations: 3.562 kB / 0.9382 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/2.588, allocations: 15.92 kB / 0.9382 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/2.588, allocations: 11.25 kB / 0.9382 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003702/2.588, allocations: 365.9 kB / 0.9386 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.3e-07/2.588, allocations: 4 kB / 0.9386 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003748/2.592, allocations: 1.547 MB / 0.9401 GB, free: 3.227 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007147/2.599, allocations: 3.231 MB / 0.9433 GB, free: 424 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006098/2.6, allocations: 290.3 kB / 0.9435 GB, free: 220 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/2.6, allocations: 0 / 0.9435 GB, free: 220 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002319/2.6, allocations: 105.2 kB / 0.9436 GB, free: 144 kB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007112/2.601, allocations: 155.5 kB / 0.9438 GB, free: 24 kB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006792/2.608, allocations: 5.184 MB / 0.9488 GB, free: 11.08 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/2.608, allocations: 0.866 MB / 0.9497 GB, free: 10.19 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002701/2.608, allocations: 77.25 kB / 0.9498 GB, free: 10.11 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/2.609, allocations: 211.4 kB / 0.95 GB, free: 9.906 MB / 0.795 GB Notification: Performance of SimCode: time 3.81e-07/2.609, allocations: 0 / 0.95 GB, free: 9.906 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2309/2.839, allocations: 57.68 MB / 1.006 GB, free: 434.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/2.84, allocations: 310.2 kB / 1.007 GB, free: 433.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.331/7.17, allocations: 0 / 1.007 GB, free: 433.8 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerDTorWorEff_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerDTorWorEff.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe 2>&1)