Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",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.767/0.767, allocations: 150.8 MB / 166.1 MB, free: 15.14 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.849e-05/1.849e-05, allocations: 4 kB / 204.9 MB, free: 9.586 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.141, allocations: 31.99 MB / 236.8 MB, free: 5.297 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.TestPipePressureLoss): time 1.767/1.908, allocations: 294.6 MB / 0.519 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04014/1.948, allocations: 36.99 MB / 0.5551 GB, free: 8.277 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/1.948, allocations: 0 / 0.5551 GB, free: 8.277 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/1.949, allocations: 83.55 kB / 0.5552 GB, free: 8.195 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/1.949, allocations: 87.36 kB / 0.5553 GB, free: 8.109 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01933/1.968, allocations: 7.307 MB / 0.5624 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005144/1.969, allocations: 330.4 kB / 0.5627 GB, free: 488 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/1.969, allocations: 89.88 kB / 0.5628 GB, free: 400 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/1.969, allocations: 119.3 kB / 0.5629 GB, free: 280 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/1.969, allocations: 103.5 kB / 0.563 GB, free: 176 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/1.969, allocations: 4 kB / 0.563 GB, free: 172 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02684/1.996, allocations: 17.8 MB / 0.5804 GB, free: 14.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.173e-05/1.996, allocations: 39.78 kB / 0.5804 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/1.996, allocations: 145 kB / 0.5806 GB, free: 14.16 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/2.013, allocations: 8.343 MB / 0.5887 GB, free: 5.793 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/2.013, allocations: 0 / 0.5887 GB, free: 5.793 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.894e-06/2.013, allocations: 0 / 0.5887 GB, free: 5.793 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/2.013, allocations: 0 / 0.5887 GB, free: 5.793 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003632/2.016, allocations: 1.384 MB / 0.5901 GB, free: 4.359 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/2.016, allocations: 12.03 kB / 0.5901 GB, free: 4.348 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.555e-05/2.017, allocations: 66.47 kB / 0.5902 GB, free: 4.273 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/2.017, allocations: 31.62 kB / 0.5902 GB, free: 4.242 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/2.017, allocations: 234.5 kB / 0.5904 GB, free: 3.973 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/2.017, allocations: 20.38 kB / 0.5904 GB, free: 3.949 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/2.017, allocations: 20 kB / 0.5905 GB, free: 3.93 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004551/2.017, allocations: 295.3 kB / 0.5907 GB, free: 3.617 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/2.017, allocations: 4 kB / 0.5907 GB, free: 3.613 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/2.017, allocations: 13.88 kB / 0.5907 GB, free: 3.602 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/2.017, allocations: 11.98 kB / 0.5908 GB, free: 3.59 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/2.018, allocations: 169 kB / 0.5909 GB, free: 3.426 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.03579/2.054, allocations: 18.14 MB / 0.6086 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/2.054, allocations: 126.7 kB / 0.6088 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/2.054, allocations: 96.83 kB / 0.6088 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1497/2.204, allocations: 77.93 MB / 0.685 GB, free: 8.484 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/2.204, allocations: 42.55 kB / 0.685 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.754e-06/2.204, allocations: 3.938 kB / 0.685 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001009/2.205, allocations: 447.4 kB / 0.6854 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/2.205, allocations: 55.34 kB / 0.6855 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/2.205, allocations: 223.1 kB / 0.6857 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/2.205, allocations: 25.7 kB / 0.6857 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/2.205, allocations: 148.5 kB / 0.6859 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.606e-05/2.205, allocations: 110.3 kB / 0.686 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.215e-05/2.205, allocations: 29.7 kB / 0.686 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001224/2.205, allocations: 334.8 kB / 0.6863 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/2.206, allocations: 75.97 kB / 0.6864 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/2.206, allocations: 121 kB / 0.6865 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/2.206, allocations: 204.6 kB / 0.6867 GB, free: 6.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/2.206, allocations: 0 / 0.6867 GB, free: 6.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004244/2.206, allocations: 301.5 kB / 0.687 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/2.206, allocations: 8 kB / 0.687 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/2.206, allocations: 0 / 0.687 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009139/2.207, allocations: 199.8 kB / 0.6872 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.215e-05/2.207, allocations: 8 kB / 0.6872 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005048/2.208, allocations: 0.6225 MB / 0.6878 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/2.208, allocations: 35.72 kB / 0.6878 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/2.208, allocations: 7.984 kB / 0.6878 GB, free: 5.383 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001268/2.208, allocations: 137.8 kB / 0.688 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/2.208, allocations: 23.72 kB / 0.688 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000706/2.209, allocations: 0.6064 MB / 0.6886 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003512/2.209, allocations: 214.4 kB / 0.6888 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/2.209, allocations: 0 / 0.6888 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/2.209, allocations: 3.984 kB / 0.6888 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009161/2.21, allocations: 0.7288 MB / 0.6895 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/2.21, allocations: 0 / 0.6895 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.557e-05/2.21, allocations: 19.98 kB / 0.6895 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005009/2.211, allocations: 145.6 kB / 0.6897 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/2.211, allocations: 4 kB / 0.6897 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004281/2.211, allocations: 0.663 MB / 0.6903 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/2.211, allocations: 0 / 0.6903 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004072/2.212, allocations: 341.5 kB / 0.6906 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/2.212, allocations: 140.6 kB / 0.6908 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/2.212, allocations: 4.766 kB / 0.6908 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/2.212, allocations: 8 kB / 0.6908 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/2.212, allocations: 11.92 kB / 0.6908 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/2.212, allocations: 4 kB / 0.6908 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000218/2.212, allocations: 234 kB / 0.691 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.51e-07/2.212, allocations: 0 / 0.691 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002878/2.215, allocations: 1.183 MB / 0.6922 GB, free: 0.7266 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1701/2.385, allocations: 2.53 MB / 0.6946 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006232/2.386, allocations: 240.2 kB / 0.6949 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/2.386, allocations: 3.781 kB / 0.6949 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002278/2.386, allocations: 95.36 kB / 0.695 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008503/2.387, allocations: 122.5 kB / 0.6951 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005406/2.392, allocations: 3.126 MB / 0.6981 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/2.393, allocations: 0.7713 MB / 0.6989 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001695/2.393, allocations: 18.33 kB / 0.6989 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/2.393, allocations: 93.55 kB / 0.699 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/2.393, allocations: 0 / 0.699 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06751/2.461, allocations: 46.58 MB / 0.7445 GB, free: 200.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/2.461, allocations: 244 kB / 0.7447 GB, free: 200.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.74/6.201, allocations: 4.875 kB / 0.7447 GB, free: 200.1 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)