Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005675/0.005675, allocations: 101.2 kB / 15.73 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 195.9 kB / 16.67 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002012/0.002012, allocations: 286.9 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9179/0.9179, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 91.84 kB / 0.681 GB, free: 7.434 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4084, allocations: 86.98 MB / 0.7659 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.005428/0.4139, allocations: 4.717 MB / 0.7705 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002612/0.4165, allocations: 2.706 MB / 0.7732 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.973e-05/0.4166, allocations: 0 / 0.7732 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.4169, allocations: 43.69 kB / 0.7732 GB, free: 12.35 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.4172, allocations: 99.34 kB / 0.7733 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.4183, allocations: 0.4965 MB / 0.7738 GB, free: 11.76 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002582/0.4186, allocations: 231.9 kB / 0.774 GB, free: 11.53 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.694e-05/0.4186, allocations: 9.562 kB / 0.774 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.4188, allocations: 119.5 kB / 0.7742 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.419, allocations: 91.66 kB / 0.7742 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.419, allocations: 8 kB / 0.7742 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006361/0.4196, allocations: 363.3 kB / 0.7746 GB, free: 10.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.887e-05/0.4197, allocations: 43.88 kB / 0.7746 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.371e-05/0.4198, allocations: 79.66 kB / 0.7747 GB, free: 10.82 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004994/0.4203, allocations: 357.9 kB / 0.7751 GB, free: 10.48 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4203, allocations: 0 / 0.7751 GB, free: 10.48 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.253e-06/0.4204, allocations: 0 / 0.7751 GB, free: 10.48 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.4204, allocations: 0 / 0.7751 GB, free: 10.48 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006634/0.421, allocations: 0.507 MB / 0.7755 GB, free: 9.918 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.4211, allocations: 8.031 kB / 0.7756 GB, free: 9.91 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.904e-05/0.4211, allocations: 54.73 kB / 0.7756 GB, free: 9.848 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.4213, allocations: 24.69 kB / 0.7756 GB, free: 9.824 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.4215, allocations: 216 kB / 0.7758 GB, free: 9.574 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.4216, allocations: 12.7 kB / 0.7759 GB, free: 9.562 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.4216, allocations: 16.38 kB / 0.7759 GB, free: 9.547 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.4219, allocations: 251.9 kB / 0.7761 GB, free: 9.281 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.422, allocations: 0 / 0.7761 GB, free: 9.281 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.422, allocations: 12 kB / 0.7761 GB, free: 9.27 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.422, allocations: 11.97 kB / 0.7761 GB, free: 9.258 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004549/0.4225, allocations: 427.5 kB / 0.7765 GB, free: 8.84 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.4236, allocations: 0.9449 MB / 0.7775 GB, free: 7.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002443/0.4238, allocations: 165.2 kB / 0.7776 GB, free: 7.633 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.522e-05/0.4239, allocations: 56.89 kB / 0.7777 GB, free: 7.574 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001248/0.4252, allocations: 1.836 MB / 0.7795 GB, free: 5.379 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.4252, allocations: 38.56 kB / 0.7795 GB, free: 5.332 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.4252, allocations: 0 / 0.7795 GB, free: 5.332 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0003082/0.4255, allocations: 148.4 kB / 0.7796 GB, free: 5.184 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.4256, allocations: 55.41 kB / 0.7797 GB, free: 5.117 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.4257, allocations: 171 kB / 0.7799 GB, free: 4.941 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.4258, allocations: 33.7 kB / 0.7799 GB, free: 4.902 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.4258, allocations: 135.8 kB / 0.78 GB, free: 4.766 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.4259, allocations: 55.2 kB / 0.7801 GB, free: 4.711 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.471e-05/0.426, allocations: 57.59 kB / 0.7801 GB, free: 4.648 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4261, allocations: 326.8 kB / 0.7804 GB, free: 4.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.43e-05/0.4261, allocations: 39.97 kB / 0.7805 GB, free: 4.281 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.4263, allocations: 138.2 kB / 0.7806 GB, free: 4.098 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.4265, allocations: 197.5 kB / 0.7808 GB, free: 3.855 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4265, allocations: 0 / 0.7808 GB, free: 3.855 MB / 0.545 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000299/0.4268, allocations: 217.2 kB / 0.781 GB, free: 3.637 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.4268, allocations: 4 kB / 0.781 GB, free: 3.633 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4268, allocations: 7.938 kB / 0.781 GB, free: 3.625 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.4269, allocations: 11.88 kB / 0.781 GB, free: 3.613 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.427, allocations: 55.92 kB / 0.7811 GB, free: 3.559 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.4271, allocations: 8.453 kB / 0.7811 GB, free: 3.551 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.4272, allocations: 31.69 kB / 0.7811 GB, free: 3.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.4272, allocations: 12 kB / 0.7811 GB, free: 3.508 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 initialization (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.437e-05/0.4273, allocations: 129.8 kB / 0.7813 GB, free: 3.371 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.542e-05/0.4273, allocations: 15.81 kB / 0.7813 GB, free: 3.355 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.4276, allocations: 158.2 kB / 0.7814 GB, free: 3.199 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.4276, allocations: 7.922 kB / 0.7814 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4276, allocations: 0 / 0.7814 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.4277, allocations: 0 / 0.7814 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.4279, allocations: 221.5 kB / 0.7816 GB, free: 2.926 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4279, allocations: 8 kB / 0.7816 GB, free: 2.918 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.26e-05/0.428, allocations: 19.98 kB / 0.7817 GB, free: 2.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.428, allocations: 4 kB / 0.7817 GB, free: 2.895 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.428, allocations: 4 kB / 0.7817 GB, free: 2.891 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.428, allocations: 3.938 kB / 0.7817 GB, free: 2.887 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.428, allocations: 3.984 kB / 0.7817 GB, free: 2.883 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.4283, allocations: 219.3 kB / 0.7819 GB, free: 2.652 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.958e-05/0.4283, allocations: 108.9 kB / 0.782 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.4284, allocations: 3.938 kB / 0.782 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.4286, allocations: 19.92 kB / 0.782 GB, free: 2.504 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.953e-05/0.4286, allocations: 7.984 kB / 0.782 GB, free: 2.496 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.4286, allocations: 15.98 kB / 0.782 GB, free: 2.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.396e-05/0.4287, allocations: 121.8 kB / 0.7822 GB, free: 2.363 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4287, allocations: 0 / 0.7822 GB, free: 2.363 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003657/0.4291, allocations: 79.91 kB / 0.7822 GB, free: 2.285 MB / 0.545 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 (15): * Single equations (assignments): 14 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006956/0.4298, allocations: 0.8293 MB / 0.783 GB, free: 1.426 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.43, allocations: 126.7 kB / 0.7832 GB, free: 1.305 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.43, allocations: 0 / 0.7832 GB, free: 1.305 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.863e-05/0.4301, allocations: 43.92 kB / 0.7832 GB, free: 1.262 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.4305, allocations: 52.83 kB / 0.7833 GB, free: 1.211 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.4325, allocations: 2.034 MB / 0.7852 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.4328, allocations: 0.7128 MB / 0.7859 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001371/0.4329, allocations: 45.8 kB / 0.786 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.601e-05/0.433, allocations: 47.42 kB / 0.786 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.433, allocations: 7.938 kB / 0.786 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.4547, allocations: 5.32 MB / 0.7912 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.145/7.599, allocations: 10.98 kB / 0.7912 GB, free: 8.961 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterProperties.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)