Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.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.ValveZeroFlow,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow",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.001511/0.00151, allocations: 91.28 kB / 16.3 MB, free: 5.996 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.001933/0.001933, allocations: 183.5 kB / 17.2 MB, free: 5.914 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.894/1.894, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5537/0.5537, allocations: 48.77 MB / 320.4 MB, free: 3.828 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.001113/0.001113, allocations: 16 kB / 391.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2017, allocations: 60.24 MB / 451.5 MB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow): time 0.3776/0.5793, allocations: 35.36 MB / 486.8 MB, free: 28.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.5958, allocations: 8.552 MB / 495.4 MB, free: 22.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006568/0.5966, allocations: 14.03 kB / 495.4 MB, free: 22.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009945/0.5976, allocations: 190.6 kB / 495.6 MB, free: 22.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.5987, allocations: 284.5 kB / 495.9 MB, free: 21.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01946/0.6182, allocations: 3.651 MB / 499.5 MB, free: 20.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001561/0.6197, allocations: 0.4999 MB / 0.4883 GB, free: 19.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006082/0.6204, allocations: 193.8 kB / 0.4885 GB, free: 19.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006029/0.621, allocations: 217.2 kB / 0.4887 GB, free: 19.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005056/0.6215, allocations: 231.3 kB / 0.4889 GB, free: 19.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.146e-05/0.6216, allocations: 16.09 kB / 0.4889 GB, free: 19.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02145/0.643, allocations: 6.075 MB / 0.4949 GB, free: 17.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002928/0.6434, allocations: 59.44 kB / 0.4949 GB, free: 17.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005397/0.644, allocations: 113.1 kB / 0.495 GB, free: 17.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.6542, allocations: 2.483 MB / 0.4975 GB, free: 15.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.6543, allocations: 0 / 0.4975 GB, free: 15.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.6543, allocations: 1.188 kB / 0.4975 GB, free: 15.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.873e-05/0.6543, allocations: 4 kB / 0.4975 GB, free: 15.61 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.006269/0.6606, allocations: 1.114 MB / 0.4986 GB, free: 14.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.6607, allocations: 9.188 kB / 0.4986 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001532/0.6609, allocations: 63.88 kB / 0.4986 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000472/0.6613, allocations: 81.78 kB / 0.4987 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008075/0.6622, allocations: 362.8 kB / 0.499 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.6622, allocations: 20.91 kB / 0.4991 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.146e-05/0.6623, allocations: 31 kB / 0.4991 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.6635, allocations: 384.6 kB / 0.4995 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.6635, allocations: 0 / 0.4995 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.6636, allocations: 11.5 kB / 0.4995 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.6636, allocations: 7.312 kB / 0.4995 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009944/0.6646, allocations: 267.8 kB / 0.4997 GB, free: 13.93 MB / 382.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.002619/0.6672, allocations: 2.032 MB / 0.5017 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.6679, allocations: 156.8 kB / 0.5019 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09933/0.7672, allocations: 32.3 MB / 0.5334 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.7674, allocations: 34.56 kB / 0.5334 GB, free: 10.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 3.547e-06/0.7674, allocations: 0 / 0.5334 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.003778/0.7712, allocations: 0.5888 MB / 0.534 GB, free: 9.828 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.7712, allocations: 51.41 kB / 0.5341 GB, free: 9.766 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007934/0.7721, allocations: 405.9 kB / 0.5345 GB, free: 9.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.7721, allocations: 29.7 kB / 0.5345 GB, free: 9.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.7724, allocations: 212.1 kB / 0.5347 GB, free: 9.109 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.7725, allocations: 55.19 kB / 0.5347 GB, free: 9.055 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-05/0.7725, allocations: 4 kB / 0.5347 GB, free: 9.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.7727, allocations: 346.8 kB / 0.5351 GB, free: 8.703 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.773, allocations: 72.33 kB / 0.5351 GB, free: 8.633 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.7733, allocations: 104.9 kB / 0.5352 GB, free: 8.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.7736, allocations: 83.91 kB / 0.5353 GB, free: 8.434 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.7736, allocations: 0 / 0.5353 GB, free: 8.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001075/0.7747, allocations: 301.7 kB / 0.5356 GB, free: 8.129 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002725/0.775, allocations: 453 kB / 0.536 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.775, allocations: 0 / 0.536 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002908/0.7779, allocations: 238.1 kB / 0.5363 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000412/0.7783, allocations: 51.95 kB / 0.5363 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.7796, allocations: 0.6499 MB / 0.537 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006993/0.7803, allocations: 36.61 kB / 0.537 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.543e-05/0.7804, allocations: 8 kB / 0.537 GB, free: 6.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.7804, allocations: 4 kB / 0.537 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001129/0.7816, allocations: 239.2 kB / 0.5372 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.7816, allocations: 8.031 kB / 0.5372 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005906/0.7822, allocations: 76.77 kB / 0.5373 GB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.7826, allocations: 67.88 kB / 0.5374 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/0.7851, allocations: 1.469 MB / 0.5388 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005971/0.7857, allocations: 35.67 kB / 0.5388 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.7858, allocations: 13.19 kB / 0.5389 GB, free: 4.609 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (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 (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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003682/0.7862, allocations: 221.1 kB / 0.5391 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.7864, allocations: 39.81 kB / 0.5391 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.7883, allocations: 0.9237 MB / 0.54 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/0.7884, allocations: 15.97 kB / 0.54 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.7884, allocations: 0 / 0.54 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.7884, allocations: 0 / 0.54 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.7895, allocations: 0.5423 MB / 0.5406 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.7895, allocations: 0 / 0.5406 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.7896, allocations: 25.05 kB / 0.5406 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002858/0.7925, allocations: 0.8714 MB / 0.5414 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.7926, allocations: 4 kB / 0.5414 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.7941, allocations: 1.081 MB / 0.5425 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.7942, allocations: 1.484 kB / 0.5425 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.7958, allocations: 0.8025 MB / 0.5433 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003396/0.7961, allocations: 152.2 kB / 0.5434 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.857e-05/0.7963, allocations: 12 kB / 0.5434 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.7967, allocations: 21.67 kB / 0.5435 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.7968, allocations: 15.97 kB / 0.5435 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.7969, allocations: 11.94 kB / 0.5435 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006502/0.7975, allocations: 330.9 kB / 0.5438 GB, free: 15.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7976, allocations: 4 kB / 0.5438 GB, free: 15.42 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005497/0.8031, allocations: 0.9601 MB / 0.5447 GB, free: 14.46 MB / 430.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: 4 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region) * 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 (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 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01064/0.8138, allocations: 2.001 MB / 0.5467 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00221/0.816, allocations: 485.8 kB / 0.5472 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.8161, allocations: 0 / 0.5472 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005834/0.8166, allocations: 198.5 kB / 0.5473 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.8187, allocations: 220.9 kB / 0.5476 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/0.8261, allocations: 2.237 MB / 0.5497 GB, free: 9.242 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007743/0.8269, allocations: 0.8552 MB / 0.5506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007413/0.8277, allocations: 173.3 kB / 0.5507 GB, free: 8.199 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.8281, allocations: 167.4 kB / 0.5509 GB, free: 8.035 MB / 430.1 MB Notification: Performance of SimCode: time 1.954e-06/0.8281, allocations: 0 / 0.5509 GB, free: 8.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08875/0.9168, allocations: 40.58 MB / 0.5905 GB, free: 15.46 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/0.9171, allocations: 211.7 kB / 0.5907 GB, free: 15.21 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.327/6.244, allocations: 0 / 0.5907 GB, free: 15.21 MB / 478.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow.fmu > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe 2>&1) Environment - environmentSimulation: