Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Test.WaterComponents.TestValves,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValves,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValves",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.0007777/0.0007779, allocations: 88.48 kB / 16.31 MB, free: 6.461 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.001409/0.00141, allocations: 185.1 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 223.4 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4545/0.4545, allocations: 48.77 MB / 320.4 MB, free: 3.82 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004795/0.0004796, allocations: 16 kB / 391.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1185, allocations: 60.26 MB / 451.5 MB, free: 1.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValves): time 0.2482/0.3667, allocations: 66.03 MB / 0.5054 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01319/0.38, allocations: 11.19 MB / 0.5164 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009127/0.3809, allocations: 23.59 kB / 0.5164 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.382, allocations: 328.6 kB / 0.5167 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00142/0.3835, allocations: 0.5386 MB / 0.5172 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01504/0.3985, allocations: 4.266 MB / 0.5214 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002569/0.4011, allocations: 1.567 MB / 0.5229 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007919/0.4019, allocations: 465.2 kB / 0.5234 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009298/0.4029, allocations: 474.4 kB / 0.5238 GB, free: 7.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000712/0.4036, allocations: 0.548 MB / 0.5243 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.159e-05/0.4037, allocations: 38.03 kB / 0.5244 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01322/0.4169, allocations: 6.111 MB / 0.5303 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000258/0.4172, allocations: 131.4 kB / 0.5305 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005324/0.4177, allocations: 177.3 kB / 0.5306 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006491/0.4242, allocations: 2.873 MB / 0.5334 GB, free: 14.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.4243, allocations: 3.938 kB / 0.5335 GB, free: 14.49 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4243, allocations: 0 / 0.5335 GB, free: 14.49 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.4243, allocations: 4 kB / 0.5335 GB, free: 14.49 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.005478/0.4298, allocations: 1.668 MB / 0.5351 GB, free: 12.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.4299, allocations: 8.031 kB / 0.5351 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.43, allocations: 90.52 kB / 0.5352 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004592/0.4305, allocations: 122.9 kB / 0.5353 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008224/0.4313, allocations: 0.5414 MB / 0.5358 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.4314, allocations: 37.31 kB / 0.5359 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.058e-05/0.4315, allocations: 52 kB / 0.5359 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.4332, allocations: 0.8411 MB / 0.5367 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.4332, allocations: 0 / 0.5367 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.159e-05/0.4333, allocations: 24 kB / 0.5368 GB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.4333, allocations: 12 kB / 0.5368 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.4353, allocations: 0.8665 MB / 0.5376 GB, free: 10.09 MB / 414.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.00434/0.4396, allocations: 3.547 MB / 0.5411 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.4408, allocations: 433.2 kB / 0.5415 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004766/0.4413, allocations: 212.8 kB / 0.5417 GB, free: 5.551 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06013/0.5014, allocations: 32.29 MB / 0.5732 GB, free: 1.441 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/0.5015, allocations: 34.56 kB / 0.5733 GB, free: 1.398 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007607/0.5023, allocations: 99.47 kB / 0.5734 GB, free: 1.301 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.705e-06/0.5023, allocations: 0 / 0.5734 GB, free: 1.301 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.007805/0.5101, allocations: 1.852 MB / 0.5752 GB, free: 15.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.5102, allocations: 55.41 kB / 0.5752 GB, free: 15.35 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006962/0.5109, allocations: 0.6216 MB / 0.5758 GB, free: 14.72 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.5109, allocations: 29.7 kB / 0.5759 GB, free: 14.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.5112, allocations: 340 kB / 0.5762 GB, free: 14.35 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.757e-05/0.5113, allocations: 102.5 kB / 0.5763 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.5113, allocations: 4 kB / 0.5763 GB, free: 14.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5114, allocations: 318 kB / 0.5766 GB, free: 13.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.5118, allocations: 164.5 kB / 0.5767 GB, free: 13.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003836/0.5122, allocations: 214.3 kB / 0.5769 GB, free: 13.54 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.5126, allocations: 179.9 kB / 0.5771 GB, free: 13.36 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5126, allocations: 4 kB / 0.5771 GB, free: 13.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001297/0.5139, allocations: 0.6297 MB / 0.5777 GB, free: 12.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.785e-05/0.514, allocations: 133.6 kB / 0.5779 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.514, allocations: 4 kB / 0.5779 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006669/0.5207, allocations: 1.123 MB / 0.579 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.521, allocations: 55.91 kB / 0.579 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.5225, allocations: 0.9556 MB / 0.5799 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005881/0.5231, allocations: 59.81 kB / 0.58 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.5231, allocations: 19.98 kB / 0.58 GB, free: 10.33 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.5231, allocations: 4 kB / 0.58 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001054/0.5242, allocations: 456.2 kB / 0.5805 GB, free: 9.875 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.5242, allocations: 0 / 0.5805 GB, free: 9.875 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/0.5245, allocations: 68.95 kB / 0.5805 GB, free: 9.805 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/0.5249, allocations: 95.86 kB / 0.5806 GB, free: 9.711 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/0.5263, allocations: 1.453 MB / 0.582 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005191/0.5268, allocations: 55.91 kB / 0.5821 GB, free: 8.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.5269, allocations: 19.94 kB / 0.5821 GB, free: 8.051 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 18} Notification: Performance of prepare postOptimizeDAE: time 0.0003086/0.5272, allocations: 249.1 kB / 0.5824 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.5273, allocations: 75.06 kB / 0.5824 GB, free: 7.723 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/0.53, allocations: 2.067 MB / 0.5844 GB, free: 5.652 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.53, allocations: 19.97 kB / 0.5845 GB, free: 5.633 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.53, allocations: 4.094 kB / 0.5845 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.53, allocations: 11.91 kB / 0.5845 GB, free: 5.617 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.5311, allocations: 0.9349 MB / 0.5854 GB, free: 4.633 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5311, allocations: 0 / 0.5854 GB, free: 4.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.5313, allocations: 47.97 kB / 0.5854 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005333/0.5367, allocations: 2.757 MB / 0.5881 GB, free: 1.828 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.399e-05/0.5368, allocations: 15.98 kB / 0.5881 GB, free: 1.812 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002392/0.5392, allocations: 2.065 MB / 0.5902 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5392, allocations: 0 / 0.5902 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.5416, allocations: 1.767 MB / 0.5919 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000284/0.5419, allocations: 191.6 kB / 0.5921 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.663e-05/0.542, allocations: 8 kB / 0.5921 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.5424, allocations: 51.81 kB / 0.5921 GB, free: 13.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.5425, allocations: 36.38 kB / 0.5922 GB, free: 13.63 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.5425, allocations: 15.94 kB / 0.5922 GB, free: 13.61 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005576/0.5431, allocations: 443 kB / 0.5926 GB, free: 13.18 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5431, allocations: 0 / 0.5926 GB, free: 13.18 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003534/0.5466, allocations: 1.101 MB / 0.5937 GB, free: 12.08 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.006695/0.5533, allocations: 2.788 MB / 0.5964 GB, free: 9.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.5555, allocations: 0.9349 MB / 0.5973 GB, free: 8.32 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5556, allocations: 0 / 0.5973 GB, free: 8.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000883/0.5564, allocations: 0.4998 MB / 0.5978 GB, free: 7.816 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.5586, allocations: 422.4 kB / 0.5982 GB, free: 7.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007673/0.5663, allocations: 4.659 MB / 0.6027 GB, free: 2.684 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.5668, allocations: 0.991 MB / 0.6037 GB, free: 1.668 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006619/0.5675, allocations: 276.9 kB / 0.604 GB, free: 1.398 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.5679, allocations: 307.3 kB / 0.6043 GB, free: 1.098 MB / 478.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5679, allocations: 3.938 kB / 0.6043 GB, free: 1.094 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2994/0.8673, allocations: 51.75 MB / 0.6548 GB, free: 164.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.8675, allocations: 202 kB / 0.655 GB, free: 164 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.549/5.417, allocations: 1.25 kB / 0.655 GB, free: 164 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestValves_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestValves.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1) Environment - environmentSimulation: