Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.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.TestJunctions4,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestJunctions4,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions4",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.7927/0.7927, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.804e-05, allocations: 4 kB / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1468, allocations: 31.98 MB / 236.8 MB, free: 5.262 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestJunctions4): time 1.539/1.686, allocations: 295.6 MB / 0.5199 GB, free: 12.35 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04232/1.728, allocations: 37.23 MB / 0.5563 GB, free: 7.262 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/1.728, allocations: 4 kB / 0.5563 GB, free: 7.258 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003002/1.729, allocations: 107.3 kB / 0.5564 GB, free: 7.152 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003077/1.729, allocations: 158.7 kB / 0.5566 GB, free: 6.996 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01859/1.747, allocations: 7.376 MB / 0.5638 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006946/1.748, allocations: 0.6219 MB / 0.5644 GB, free: 15 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/1.748, allocations: 225.1 kB / 0.5646 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002621/1.749, allocations: 214.9 kB / 0.5648 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/1.749, allocations: 198.9 kB / 0.565 GB, free: 14.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.439e-05/1.749, allocations: 16 kB / 0.565 GB, free: 14.36 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02711/1.776, allocations: 17.82 MB / 0.5824 GB, free: 12.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.181e-05/1.776, allocations: 67.58 kB / 0.5825 GB, free: 12.45 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002953/1.777, allocations: 272.3 kB / 0.5827 GB, free: 12.18 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01723/1.794, allocations: 8.623 MB / 0.5911 GB, free: 3.535 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/1.794, allocations: 0 / 0.5911 GB, free: 3.535 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.077e-06/1.794, allocations: 0 / 0.5911 GB, free: 3.535 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/1.794, allocations: 3.938 kB / 0.5911 GB, free: 3.531 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003905/1.798, allocations: 1.587 MB / 0.5927 GB, free: 1.891 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/1.798, allocations: 8.031 kB / 0.5927 GB, free: 1.883 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/1.798, allocations: 102.5 kB / 0.5928 GB, free: 1.773 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.048e-05/1.798, allocations: 59.28 kB / 0.5928 GB, free: 1.715 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/1.798, allocations: 298.1 kB / 0.5931 GB, free: 1.383 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.524e-05/1.798, allocations: 62.7 kB / 0.5932 GB, free: 1.316 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.296e-05/1.798, allocations: 44 kB / 0.5932 GB, free: 1.273 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007989/1.799, allocations: 0.5923 MB / 0.5938 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/1.799, allocations: 3.938 kB / 0.5938 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/1.799, allocations: 16 kB / 0.5938 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.637e-05/1.799, allocations: 35.91 kB / 0.5939 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005227/1.8, allocations: 352 kB / 0.5942 GB, free: 240 kB / 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.02081/1.821, allocations: 12 MB / 0.6059 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003682/1.821, allocations: 239.9 kB / 0.6061 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/1.821, allocations: 181.9 kB / 0.6063 GB, free: 2.535 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4026/2.224, allocations: 120.1 MB / 0.7236 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/2.224, allocations: 31.34 kB / 0.7236 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/2.224, allocations: 0 / 0.7236 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=66): time 0.002533/2.227, allocations: 1.148 MB / 0.7247 GB, free: 211 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/2.227, allocations: 59.19 kB / 0.7248 GB, free: 211 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002975/2.227, allocations: 288.9 kB / 0.7251 GB, free: 210.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/2.227, allocations: 28.7 kB / 0.7251 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/2.227, allocations: 220.5 kB / 0.7253 GB, free: 210.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/2.227, allocations: 220.5 kB / 0.7255 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.051e-05/2.227, allocations: 52.48 kB / 0.7256 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.105e-05/2.227, allocations: 358.5 kB / 0.7259 GB, free: 210.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/2.228, allocations: 124.6 kB / 0.726 GB, free: 210.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/2.228, allocations: 221.9 kB / 0.7262 GB, free: 210.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000459/2.228, allocations: 415.5 kB / 0.7266 GB, free: 210 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/2.228, allocations: 0 / 0.7266 GB, free: 210 MB / 0.5762 GB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009498/2.229, allocations: 0.6196 MB / 0.7272 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/2.229, allocations: 7.844 kB / 0.7272 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/2.229, allocations: 3.875 kB / 0.7273 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/2.231, allocations: 0.6174 MB / 0.7279 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.64e-05/2.231, allocations: 9.531 kB / 0.7279 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/2.232, allocations: 2.014 MB / 0.7298 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/2.232, allocations: 66.62 kB / 0.7299 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/2.232, allocations: 11.75 kB / 0.7299 GB, free: 208.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 12 (source.C.b,sourceP.C.b,sinkP.C.a,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,singularPressureLoss.C2.b,singularPressureLoss.C1.a,deheaterMixer2_1.Ce.a,deheaterMixer2_1.Cs.b,deheaterMixer2_1.Ce_mix.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000162/2.233, allocations: 173.9 kB / 0.7301 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.681e-05/2.233, allocations: 36.69 kB / 0.7301 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/2.234, allocations: 1.449 MB / 0.7315 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008651/2.235, allocations: 0.7585 MB / 0.7323 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/2.235, allocations: 3.938 kB / 0.7323 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/2.235, allocations: 2.859 kB / 0.7323 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002194/2.237, allocations: 1.864 MB / 0.7341 GB, free: 207.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/2.237, allocations: 3.719 kB / 0.7341 GB, free: 207.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/2.237, allocations: 63.14 kB / 0.7342 GB, free: 207.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/2.238, allocations: 0.59 MB / 0.7347 GB, free: 207 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/2.239, allocations: 12.53 kB / 0.7347 GB, free: 207 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/2.24, allocations: 2.071 MB / 0.7368 GB, free: 205.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/2.24, allocations: 0.8906 kB / 0.7368 GB, free: 205.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/2.241, allocations: 0.9071 MB / 0.7376 GB, free: 205 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/2.241, allocations: 188.2 kB / 0.7378 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/2.241, allocations: 10.53 kB / 0.7378 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/2.241, allocations: 23.53 kB / 0.7379 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/2.241, allocations: 35.72 kB / 0.7379 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/2.241, allocations: 14.72 kB / 0.7379 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002048/2.242, allocations: 236.2 kB / 0.7381 GB, free: 204.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.242, allocations: 0 / 0.7381 GB, free: 204.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002763/2.244, allocations: 1.277 MB / 0.7394 GB, free: 204.2 MB / 0.5762 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 (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (4,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006472/2.251, allocations: 3.114 MB / 0.7424 GB, free: 201.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001234/2.252, allocations: 0.7044 MB / 0.7431 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/2.252, allocations: 0.75 kB / 0.7431 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006993/2.253, allocations: 375.3 kB / 0.7435 GB, free: 200.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/2.254, allocations: 248.1 kB / 0.7437 GB, free: 200.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006029/2.26, allocations: 4.997 MB / 0.7486 GB, free: 196.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/2.26, allocations: 0.907 MB / 0.7495 GB, free: 195.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001787/2.261, allocations: 44.62 kB / 0.7495 GB, free: 195.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/2.261, allocations: 217.7 kB / 0.7497 GB, free: 195.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/2.261, allocations: 0 / 0.7497 GB, free: 195.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06666/2.327, allocations: 54.75 MB / 0.8032 GB, free: 141.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/2.328, allocations: 230.3 kB / 0.8034 GB, free: 141.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.266/6.594, allocations: 2.625 kB / 0.8034 GB, free: 141.4 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestJunctions4.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestJunctions4.pipe 2>&1)