Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",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.7815/0.7815, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.0002801, allocations: 15.98 kB / 204.1 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 31.33 MB / 235.4 MB, free: 5.402 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.Examples.SimpleExamples.TestSingularPressureLoss): time 1.552/1.688, allocations: 293.6 MB / 0.5166 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04125/1.73, allocations: 37.54 MB / 0.5533 GB, free: 8.219 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002161/1.73, allocations: 0 / 0.5533 GB, free: 8.219 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/SingularPressureLoss.mo:25:3-27:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/SingularPressureLoss.mo:28:3-29:52:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003526/1.73, allocations: 92.19 kB / 0.5534 GB, free: 8.129 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/1.731, allocations: 75.38 kB / 0.5534 GB, free: 8.055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01963/1.75, allocations: 7.162 MB / 0.5604 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/1.751, allocations: 310.5 kB / 0.5607 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/1.751, allocations: 101.9 kB / 0.5608 GB, free: 500 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/1.751, allocations: 119.4 kB / 0.5609 GB, free: 380 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/1.751, allocations: 107.4 kB / 0.561 GB, free: 272 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/1.751, allocations: 12 kB / 0.5611 GB, free: 260 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0293/1.78, allocations: 17.72 MB / 0.5784 GB, free: 14.51 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.611e-05/1.781, allocations: 39.84 kB / 0.5784 GB, free: 14.47 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/1.781, allocations: 115.4 kB / 0.5785 GB, free: 14.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01812/1.799, allocations: 8.425 MB / 0.5867 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.799, allocations: 0 / 0.5867 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.302e-06/1.799, allocations: 0 / 0.5867 GB, free: 5.91 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/1.799, allocations: 0 / 0.5867 GB, free: 5.91 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004169/1.803, allocations: 1.416 MB / 0.5881 GB, free: 4.445 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/1.803, allocations: 12.03 kB / 0.5881 GB, free: 4.434 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.811e-05/1.803, allocations: 62.47 kB / 0.5882 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.504e-05/1.803, allocations: 39.5 kB / 0.5882 GB, free: 4.324 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/1.804, allocations: 222.6 kB / 0.5884 GB, free: 4.066 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/1.804, allocations: 12.44 kB / 0.5885 GB, free: 4.051 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/1.804, allocations: 19.94 kB / 0.5885 GB, free: 4.031 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00044/1.804, allocations: 290.8 kB / 0.5887 GB, free: 3.723 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/1.804, allocations: 3.938 kB / 0.5888 GB, free: 3.719 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/1.804, allocations: 13.08 kB / 0.5888 GB, free: 3.707 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/1.804, allocations: 11.94 kB / 0.5888 GB, free: 3.695 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002227/1.804, allocations: 157.1 kB / 0.5889 GB, free: 3.543 MB / 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.03355/1.838, allocations: 18.01 MB / 0.6065 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/1.838, allocations: 122.5 kB / 0.6066 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.582e-05/1.838, allocations: 80.97 kB / 0.6067 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.14/1.978, allocations: 77.27 MB / 0.6822 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/1.978, allocations: 38.56 kB / 0.6822 GB, free: 9.363 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.623e-06/1.978, allocations: 0 / 0.6822 GB, free: 9.363 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.000814/1.979, allocations: 397.1 kB / 0.6826 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/1.979, allocations: 51.41 kB / 0.6826 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/1.979, allocations: 215.7 kB / 0.6828 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/1.979, allocations: 25.7 kB / 0.6829 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.469e-05/1.98, allocations: 148.5 kB / 0.683 GB, free: 8.488 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.734e-05/1.98, allocations: 102.4 kB / 0.6831 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.541e-05/1.98, allocations: 53.59 kB / 0.6832 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001081/1.98, allocations: 334.8 kB / 0.6835 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.238e-05/1.98, allocations: 64.31 kB / 0.6835 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/1.98, allocations: 110.2 kB / 0.6836 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/1.98, allocations: 205.5 kB / 0.6838 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/1.98, allocations: 0 / 0.6838 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003984/1.981, allocations: 274 kB / 0.6841 GB, free: 7.316 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/1.981, allocations: 4 kB / 0.6841 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/1.981, allocations: 0 / 0.6841 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008629/1.982, allocations: 144.7 kB / 0.6842 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.09e-05/1.982, allocations: 17.23 kB / 0.6843 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004752/1.982, allocations: 0.6108 MB / 0.6848 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/1.982, allocations: 23.59 kB / 0.6849 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/1.982, allocations: 12.06 kB / 0.6849 GB, free: 6.48 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001247/1.982, allocations: 142.1 kB / 0.685 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.381e-05/1.982, allocations: 27.66 kB / 0.685 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006587/1.983, allocations: 0.5525 MB / 0.6856 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003163/1.983, allocations: 208.6 kB / 0.6858 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.983, allocations: 0 / 0.6858 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/1.983, allocations: 0 / 0.6858 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007291/1.984, allocations: 0.6912 MB / 0.6865 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/1.984, allocations: 3.938 kB / 0.6865 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.335e-05/1.984, allocations: 12 kB / 0.6865 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/1.985, allocations: 120.7 kB / 0.6866 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/1.985, allocations: 4 kB / 0.6866 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004163/1.985, allocations: 0.6363 MB / 0.6872 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/1.985, allocations: 3.938 kB / 0.6872 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/1.985, allocations: 303.8 kB / 0.6875 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/1.986, allocations: 104.8 kB / 0.6876 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/1.986, allocations: 15.84 kB / 0.6876 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/1.986, allocations: 4.062 kB / 0.6876 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/1.986, allocations: 11.92 kB / 0.6876 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/1.986, allocations: 8 kB / 0.6876 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002075/1.986, allocations: 229.9 kB / 0.6879 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.323e-06/1.986, allocations: 0 / 0.6879 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003009/1.989, allocations: 1.194 MB / 0.689 GB, free: 2.023 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 (11): * Single equations (assignments): 10 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1503/2.139, allocations: 2.505 MB / 0.6915 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005411/2.14, allocations: 229.5 kB / 0.6917 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/2.14, allocations: 0 / 0.6917 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001914/2.14, allocations: 84.25 kB / 0.6918 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/2.141, allocations: 116.5 kB / 0.6919 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004102/2.145, allocations: 3.002 MB / 0.6948 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/2.145, allocations: 0.7629 MB / 0.6956 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001104/2.145, allocations: 25.47 kB / 0.6956 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.286e-05/2.145, allocations: 86.19 kB / 0.6957 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/2.145, allocations: 1.281 kB / 0.6957 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06104/2.206, allocations: 47.26 MB / 0.7418 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001311/2.207, allocations: 250.3 kB / 0.7421 GB, free: 198.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.823/6.029, allocations: 1.312 kB / 0.7421 GB, free: 198.4 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)