Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.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.TestRefP,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestRefP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestRefP,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestRefP",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.8942/0.8942, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.642e-05/1.643e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1436, allocations: 31.98 MB / 236.8 MB, free: 5.402 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.TestRefP): time 1.509/1.653, allocations: 295.3 MB / 0.5197 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1767/1.829, allocations: 185.4 MB / 0.7007 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/1.83, allocations: 4 kB / 0.7007 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002889/1.83, allocations: 95.41 kB / 0.7008 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002564/1.83, allocations: 131 kB / 0.7009 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2753/2.105, allocations: 8.824 MB / 0.7095 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006381/2.106, allocations: 0.53 MB / 0.7101 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/2.106, allocations: 234.9 kB / 0.7103 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/2.107, allocations: 189.2 kB / 0.7105 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/2.107, allocations: 192 kB / 0.7106 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/2.107, allocations: 17.22 kB / 0.7107 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02893/2.136, allocations: 20.16 MB / 0.7303 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001697/2.136, allocations: 74.42 kB / 0.7304 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003405/2.136, allocations: 240.3 kB / 0.7306 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01995/2.156, allocations: 9.915 MB / 0.7403 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/2.156, allocations: 3.281 kB / 0.7403 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.494e-06/2.156, allocations: 0 / 0.7403 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.925e-06/2.156, allocations: 0.625 kB / 0.7403 GB, free: 2.215 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.004128/2.16, allocations: 1.791 MB / 0.7421 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/2.161, allocations: 9.719 kB / 0.7421 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.942e-05/2.161, allocations: 93.91 kB / 0.7422 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/2.161, allocations: 53.34 kB / 0.7422 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/2.161, allocations: 310.7 kB / 0.7425 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/2.161, allocations: 35.44 kB / 0.7426 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/2.161, allocations: 46.25 kB / 0.7426 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/2.162, allocations: 0.526 MB / 0.7431 GB, free: 468 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/2.162, allocations: 6.125 kB / 0.7431 GB, free: 468 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/2.162, allocations: 19.97 kB / 0.7431 GB, free: 468 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/2.162, allocations: 15.55 kB / 0.7432 GB, free: 464 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005012/2.162, allocations: 337.2 kB / 0.7435 GB, free: 424 kB / 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.01905/2.181, allocations: 11.98 MB / 0.7552 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009851/2.182, allocations: 331.7 kB / 0.7555 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/2.183, allocations: 143 kB / 0.7556 GB, free: 6.93 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2202/2.403, allocations: 118.3 MB / 0.8711 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/2.403, allocations: 38.25 kB / 0.8712 GB, free: 13 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=43): time 2.394e-06/2.403, allocations: 4 kB / 0.8712 GB, free: 13 MB / 0.7169 GB Notification: Performance of matching and sorting (n=43): time 0.00728/2.41, allocations: 1.709 MB / 0.8729 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/2.41, allocations: 59.41 kB / 0.8729 GB, free: 11.35 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/2.41, allocations: 315.1 kB / 0.8732 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/2.411, allocations: 33.45 kB / 0.8732 GB, free: 11.06 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/2.411, allocations: 231.3 kB / 0.8735 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.117e-05/2.411, allocations: 148.1 kB / 0.8736 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.679e-05/2.411, allocations: 48.44 kB / 0.8736 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000106/2.411, allocations: 349.5 kB / 0.874 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/2.411, allocations: 119.6 kB / 0.8741 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/2.411, allocations: 218.9 kB / 0.8743 GB, free: 10.11 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005341/2.412, allocations: 374.3 kB / 0.8747 GB, free: 9.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/2.412, allocations: 4 kB / 0.8747 GB, free: 9.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002015/2.414, allocations: 0.7143 MB / 0.8754 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/2.414, allocations: 8 kB / 0.8754 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/2.414, allocations: 12.77 kB / 0.8754 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/2.416, allocations: 472.7 kB / 0.8758 GB, free: 8.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.373e-05/2.416, allocations: 22.89 kB / 0.8759 GB, free: 8.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008378/2.417, allocations: 0.8569 MB / 0.8767 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/2.417, allocations: 43.28 kB / 0.8767 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/2.417, allocations: 23.67 kB / 0.8768 GB, free: 8.031 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,refT.C2.b,refT.C1.a,loopBreakerH.C2.b,loopBreakerH.C1.a,loopBreakerQ.C2.b,loopBreakerQ.C1.a,pump.C2.b,pump.C1.a,refP.C2.b,refP.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(6,33.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001754/2.417, allocations: 165.6 kB / 0.8769 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/2.417, allocations: 39.47 kB / 0.877 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/2.418, allocations: 0.7573 MB / 0.8777 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009827/2.419, allocations: 0.5925 MB / 0.8783 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/2.419, allocations: 4 kB / 0.8783 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/2.419, allocations: 5.016 kB / 0.8783 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/2.421, allocations: 1.42 MB / 0.8797 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/2.421, allocations: 0 / 0.8797 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/2.421, allocations: 34.89 kB / 0.8797 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/2.423, allocations: 470.3 kB / 0.8801 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/2.423, allocations: 11.31 kB / 0.8802 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007819/2.424, allocations: 0.8879 MB / 0.881 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/2.424, allocations: 4.031 kB / 0.881 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/2.425, allocations: 0.7281 MB / 0.8817 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/2.425, allocations: 151.1 kB / 0.8819 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/2.425, allocations: 11.38 kB / 0.8819 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/2.425, allocations: 23.33 kB / 0.8819 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.91e-05/2.425, allocations: 39.75 kB / 0.882 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/2.425, allocations: 15.55 kB / 0.882 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001765/2.425, allocations: 215.6 kB / 0.8822 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/2.425, allocations: 0 / 0.8822 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003597/2.429, allocations: 1.518 MB / 0.8837 GB, free: 2.273 MB / 0.7169 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(6,33.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007579/2.437, allocations: 3.489 MB / 0.8871 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001043/2.438, allocations: 0.5733 MB / 0.8876 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/2.438, allocations: 0 / 0.8876 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004938/2.438, allocations: 348.7 kB / 0.888 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007993/2.439, allocations: 140.6 kB / 0.8881 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006315/2.445, allocations: 4.629 MB / 0.8926 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/2.446, allocations: 0.8556 MB / 0.8934 GB, free: 9.43 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001481/2.446, allocations: 39.27 kB / 0.8935 GB, free: 9.391 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/2.446, allocations: 174.5 kB / 0.8937 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of SimCode: time 5.01e-07/2.446, allocations: 0 / 0.8937 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08071/2.527, allocations: 56.87 MB / 0.9492 GB, free: 0.7695 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/2.527, allocations: 275.8 kB / 0.9494 GB, free: 416 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.193/6.72, allocations: 0 / 0.9494 GB, free: 416 kB / 0.7794 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestRefP_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestRefP.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe 2>&1)