Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.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.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe",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.8228/0.8228, allocations: 150.8 MB / 166.1 MB, free: 15.16 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.231e-05/1.233e-05, allocations: 0 / 204.9 MB, free: 9.594 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1689, allocations: 31.98 MB / 236.8 MB, free: 5.457 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.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe): time 1.786/1.955, allocations: 295.6 MB / 0.52 GB, free: 12.08 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2065/2.162, allocations: 181.5 MB / 0.6973 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/2.162, allocations: 4 kB / 0.6973 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003828/2.162, allocations: 99.39 kB / 0.6974 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003645/2.163, allocations: 166.7 kB / 0.6975 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3726/2.535, allocations: 8.022 MB / 0.7054 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001577/2.537, allocations: 0.8763 MB / 0.7062 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004182/2.537, allocations: 286.2 kB / 0.7065 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004793/2.538, allocations: 323.8 kB / 0.7068 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004711/2.538, allocations: 361.5 kB / 0.7071 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.108e-05/2.538, allocations: 35.22 kB / 0.7072 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03305/2.571, allocations: 17.32 MB / 0.7241 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004531/2.572, allocations: 126.2 kB / 0.7242 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000585/2.573, allocations: 345 kB / 0.7245 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02283/2.595, allocations: 9.225 MB / 0.7335 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.341e-06/2.595, allocations: 0 / 0.7335 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.455e-06/2.595, allocations: 0.5938 kB / 0.7335 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.512e-05/2.595, allocations: 0 / 0.7335 GB, free: 6.855 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.009072/2.605, allocations: 2.236 MB / 0.7357 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/2.605, allocations: 11.28 kB / 0.7357 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/2.605, allocations: 97.5 kB / 0.7358 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/2.605, allocations: 67.72 kB / 0.7359 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/2.605, allocations: 366.8 kB / 0.7363 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/2.605, allocations: 100.6 kB / 0.7363 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.782e-05/2.605, allocations: 52.53 kB / 0.7364 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/2.607, allocations: 0.9241 MB / 0.7373 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/2.607, allocations: 9.203 kB / 0.7373 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/2.607, allocations: 24.44 kB / 0.7373 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/2.607, allocations: 18.56 kB / 0.7373 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002703/2.61, allocations: 1.018 MB / 0.7383 GB, free: 4.469 MB / 0.5762 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.003432/2.614, allocations: 3.919 MB / 0.7422 GB, free: 17.31 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/2.616, allocations: 0.7721 MB / 0.7429 GB, free: 17.11 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/2.617, allocations: 457.8 kB / 0.7434 GB, free: 17.01 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2336/2.851, allocations: 118.3 MB / 0.8589 GB, free: 10.98 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/2.851, allocations: 46.17 kB / 0.8589 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=71): time 2.284e-06/2.851, allocations: 0 / 0.8589 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of matching and sorting (n=71): time 0.004873/2.856, allocations: 1.593 MB / 0.8605 GB, free: 9.559 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/2.856, allocations: 55.41 kB / 0.8605 GB, free: 9.492 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/2.856, allocations: 402.8 kB / 0.8609 GB, free: 9.164 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/2.856, allocations: 37.08 kB / 0.8609 GB, free: 9.129 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/2.856, allocations: 282.5 kB / 0.8612 GB, free: 8.902 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/2.857, allocations: 250.2 kB / 0.8615 GB, free: 8.695 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/2.857, allocations: 79.55 kB / 0.8615 GB, free: 8.637 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001268/2.857, allocations: 364.4 kB / 0.8619 GB, free: 8.297 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/2.858, allocations: 433.1 kB / 0.8623 GB, free: 7.965 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/2.86, allocations: 0.6766 MB / 0.863 GB, free: 7.285 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002875/2.863, allocations: 1.129 MB / 0.8641 GB, free: 6.289 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/2.863, allocations: 4 kB / 0.8641 GB, free: 6.285 MB / 0.7012 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003698/2.866, allocations: 1.365 MB / 0.8654 GB, free: 5.23 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/2.866, allocations: 9.406 kB / 0.8654 GB, free: 5.223 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/2.866, allocations: 8 kB / 0.8654 GB, free: 5.215 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/2.869, allocations: 0.6885 MB / 0.8661 GB, free: 4.574 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/2.87, allocations: 332.3 kB / 0.8664 GB, free: 4.266 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/2.872, allocations: 1.965 MB / 0.8683 GB, free: 2.406 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009457/2.873, allocations: 189.9 kB / 0.8685 GB, free: 2.23 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/2.873, allocations: 38.59 kB / 0.8685 GB, free: 2.199 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * 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 {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002344/2.873, allocations: 193.2 kB / 0.8687 GB, free: 2.051 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.941e-05/2.873, allocations: 59.33 kB / 0.8688 GB, free: 1.992 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/2.877, allocations: 1.499 MB / 0.8702 GB, free: 0.8867 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003075/2.88, allocations: 1.199 MB / 0.8714 GB, free: 15.94 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/2.88, allocations: 0 / 0.8714 GB, free: 15.94 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/2.88, allocations: 7.984 kB / 0.8714 GB, free: 15.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004922/2.885, allocations: 2.397 MB / 0.8738 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/2.885, allocations: 0 / 0.8738 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/2.887, allocations: 385.4 kB / 0.8741 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003063/2.887, allocations: 212.3 kB / 0.8743 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/2.887, allocations: 19.17 kB / 0.8743 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007299/2.888, allocations: 1.224 MB / 0.8755 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/2.888, allocations: 1.781 kB / 0.8755 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/2.893, allocations: 1.937 MB / 0.8774 GB, free: 10.79 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/2.893, allocations: 213.4 kB / 0.8776 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.387e-05/2.893, allocations: 7.375 kB / 0.8776 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008284/2.894, allocations: 136.8 kB / 0.8778 GB, free: 10.47 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/2.894, allocations: 68.02 kB / 0.8778 GB, free: 10.42 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/2.894, allocations: 23.38 kB / 0.8779 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002428/2.894, allocations: 263 kB / 0.8781 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/2.894, allocations: 0 / 0.8781 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004238/2.899, allocations: 1.455 MB / 0.8795 GB, free: 8.836 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01207/2.911, allocations: 4.552 MB / 0.884 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003776/2.915, allocations: 1.309 MB / 0.8853 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/2.915, allocations: 4.188 kB / 0.8853 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001673/2.916, allocations: 0.6266 MB / 0.8859 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/2.917, allocations: 205.5 kB / 0.8861 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/2.933, allocations: 7.918 MB / 0.8938 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/2.934, allocations: 0.9352 MB / 0.8947 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0005387/2.934, allocations: 100.5 kB / 0.8948 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004603/2.935, allocations: 279 kB / 0.8951 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of SimCode: time 1.973e-06/2.935, allocations: 0 / 0.8951 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09942/3.034, allocations: 60.47 MB / 0.9541 GB, free: 15.11 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/3.035, allocations: 306.3 kB / 0.9544 GB, free: 14.73 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.635/7.67, allocations: 2.125 kB / 0.9544 GB, free: 14.73 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1)