Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.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.TestStaticExchangerKS,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS",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.7789/0.7789, allocations: 150.8 MB / 166 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.00031, allocations: 15.97 kB / 204.1 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1285, allocations: 31.33 MB / 235.4 MB, free: 5.426 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.TestStaticExchangerKS): time 1.491/1.62, allocations: 294.7 MB / 0.5177 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4212/2.041, allocations: 189.6 MB / 0.7029 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000342/2.042, allocations: 15 kB / 0.7029 GB, free: 3.727 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerKS.mo:58:3-60:35:writable] Warning: Connector Sc 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/StaticExchangerKS.mo:61:3-63:37: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/StaticExchangerKS.mo:64:3-66:35: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/StaticExchangerKS.mo:67:3-69:32: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/BoundaryConditions/SourceP.mo:58:3-59: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). Notification: Performance of NFTyping.typeComponents: time 0.0002024/2.042, allocations: 59.55 kB / 0.7029 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004196/2.042, allocations: 200.2 kB / 0.7031 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02148/2.064, allocations: 8.929 MB / 0.7119 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008141/2.065, allocations: 0.7424 MB / 0.7126 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003539/2.065, allocations: 377.5 kB / 0.7129 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/2.065, allocations: 282.8 kB / 0.7132 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/2.065, allocations: 331.7 kB / 0.7135 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.03e-05/2.065, allocations: 54.62 kB / 0.7136 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0284/2.094, allocations: 20.28 MB / 0.7334 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001997/2.094, allocations: 141.6 kB / 0.7335 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004206/2.095, allocations: 348.2 kB / 0.7338 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01833/2.113, allocations: 10.44 MB / 0.744 GB, free: 192 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/2.113, allocations: 1.875 kB / 0.744 GB, free: 192 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.082e-06/2.113, allocations: 2.312 kB / 0.744 GB, free: 192 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.023e-05/2.113, allocations: 0 / 0.744 GB, free: 192 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.004342/2.117, allocations: 2.099 MB / 0.7461 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/2.117, allocations: 8.094 kB / 0.7461 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/2.117, allocations: 111.4 kB / 0.7462 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/2.118, allocations: 84.19 kB / 0.7463 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/2.118, allocations: 425.3 kB / 0.7467 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/2.118, allocations: 53.94 kB / 0.7467 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.183e-05/2.118, allocations: 69 kB / 0.7468 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008994/2.119, allocations: 0.6886 MB / 0.7475 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/2.119, allocations: 0 / 0.7475 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.491e-05/2.119, allocations: 31.84 kB / 0.7475 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/2.119, allocations: 16.47 kB / 0.7475 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007154/2.12, allocations: 0.4911 MB / 0.748 GB, free: 14.16 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.01647/2.136, allocations: 11.87 MB / 0.7596 GB, free: 4.164 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/2.137, allocations: 187.4 kB / 0.7598 GB, free: 4.121 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/2.137, allocations: 87.72 kB / 0.7599 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2927/2.43, allocations: 150.2 MB / 0.9065 GB, free: 5.535 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/2.43, allocations: 37.88 kB / 0.9066 GB, free: 5.492 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=19): time 1.953e-06/2.43, allocations: 4 kB / 0.9066 GB, free: 5.488 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.002926/2.433, allocations: 0.74 MB / 0.9073 GB, free: 4.828 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/2.433, allocations: 55.41 kB / 0.9074 GB, free: 4.762 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/2.433, allocations: 482.4 kB / 0.9078 GB, free: 4.387 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/2.433, allocations: 25.7 kB / 0.9078 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/2.433, allocations: 362.6 kB / 0.9082 GB, free: 4.078 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/2.433, allocations: 70.03 kB / 0.9083 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/2.434, allocations: 100.8 kB / 0.9084 GB, free: 3.941 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001157/2.434, allocations: 361.1 kB / 0.9087 GB, free: 3.598 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/2.434, allocations: 88.89 kB / 0.9088 GB, free: 3.539 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/2.434, allocations: 259.7 kB / 0.909 GB, free: 3.254 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004366/2.435, allocations: 387.2 kB / 0.9094 GB, free: 2.914 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/2.435, allocations: 0 / 0.9094 GB, free: 2.914 MB / 0.7481 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000781/2.435, allocations: 0.4902 MB / 0.9099 GB, free: 2.566 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/2.435, allocations: 8 kB / 0.9099 GB, free: 2.559 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/2.435, allocations: 8 kB / 0.9099 GB, free: 2.551 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003296/2.439, allocations: 0.4985 MB / 0.9104 GB, free: 2.086 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/2.439, allocations: 60.8 kB / 0.9104 GB, free: 2.035 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009431/2.44, allocations: 0.8117 MB / 0.9112 GB, free: 1.309 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/2.44, allocations: 56.88 kB / 0.9113 GB, free: 1.258 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/2.44, allocations: 28.84 kB / 0.9113 GB, free: 1.234 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 8 (sourceP3.C.ftype,sourceP2.C.ftype,plateHeatExchanger.fluid_c,plateHeatExchanger.fluid_f,puitsP2.fluid,puitsP3.fluid,sourceP3.fluid1,sourceP2.fluid1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 {(4,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002222/2.44, allocations: 179.8 kB / 0.9115 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.17e-05/2.44, allocations: 47.44 kB / 0.9115 GB, free: 1.043 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/2.441, allocations: 436.7 kB / 0.9119 GB, free: 0.7148 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/2.441, allocations: 4 kB / 0.9119 GB, free: 0.7109 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/2.441, allocations: 0 / 0.9119 GB, free: 0.7109 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/2.442, allocations: 0 / 0.9119 GB, free: 0.7109 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005137/2.442, allocations: 485 kB / 0.9124 GB, free: 300 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/2.442, allocations: 0 / 0.9124 GB, free: 300 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/2.442, allocations: 1.203 kB / 0.9124 GB, free: 300 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/2.445, allocations: 425 kB / 0.9128 GB, free: 15.92 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/2.445, allocations: 10.42 kB / 0.9128 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000863/2.445, allocations: 0.8037 MB / 0.9136 GB, free: 15.18 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/2.445, allocations: 0 / 0.9136 GB, free: 15.18 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007958/2.446, allocations: 378.2 kB / 0.914 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/2.446, allocations: 149.2 kB / 0.9141 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.097e-05/2.447, allocations: 6.812 kB / 0.9141 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/2.447, allocations: 0 / 0.9141 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/2.447, allocations: 18.91 kB / 0.9141 GB, free: 14.71 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/2.447, allocations: 15.94 kB / 0.9142 GB, free: 14.69 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003353/2.447, allocations: 342.4 kB / 0.9145 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.71e-07/2.447, allocations: 0 / 0.9145 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003863/2.451, allocations: 1.539 MB / 0.916 GB, free: 13 MB / 0.7637 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 (1): * Single equations (assignments): 0 * 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 {(4,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007855/2.459, allocations: 3.119 MB / 0.919 GB, free: 10.3 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.000784/2.46, allocations: 297.4 kB / 0.9193 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/2.46, allocations: 0 / 0.9193 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003146/2.46, allocations: 124.2 kB / 0.9194 GB, free: 10 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/2.461, allocations: 129.6 kB / 0.9196 GB, free: 9.91 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006492/2.467, allocations: 4.823 MB / 0.9243 GB, free: 5.492 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/2.467, allocations: 0.86 MB / 0.9251 GB, free: 4.605 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002095/2.468, allocations: 67.98 kB / 0.9252 GB, free: 4.543 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/2.468, allocations: 192.8 kB / 0.9254 GB, free: 4.496 MB / 0.7637 GB Notification: Performance of SimCode: time 3.3e-07/2.468, allocations: 2.906 kB / 0.9254 GB, free: 4.496 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2209/2.689, allocations: 57.05 MB / 0.9811 GB, free: 453.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/2.689, allocations: 294 kB / 0.9813 GB, free: 453 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.353/7.042, allocations: 2.25 kB / 0.9814 GB, free: 453 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe 2>&1)