Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve",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.8521/0.8521, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.18e-05/2.222e-05, allocations: 0 / 204.9 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2238, allocations: 31.99 MB / 236.9 MB, free: 5.402 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve): time 1.718/1.942, allocations: 297.5 MB / 0.5218 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.596/2.538, allocations: 189.2 MB / 0.7066 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007196/2.538, allocations: 22.19 kB / 0.7066 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003482/2.539, allocations: 123.1 kB / 0.7067 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008616/2.54, allocations: 378.9 kB / 0.7071 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02829/2.568, allocations: 9.763 MB / 0.7166 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001958/2.57, allocations: 1.488 MB / 0.7181 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008656/2.571, allocations: 0.7653 MB / 0.7188 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005095/2.571, allocations: 475.4 kB / 0.7193 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004822/2.572, allocations: 0.5275 MB / 0.7198 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.386e-05/2.572, allocations: 57.75 kB / 0.7198 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03638/2.608, allocations: 20.25 MB / 0.7396 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003641/2.609, allocations: 226.3 kB / 0.7398 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009866/2.61, allocations: 0.6191 MB / 0.7404 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02579/2.636, allocations: 11.15 MB / 0.7513 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/2.636, allocations: 0 / 0.7513 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.477e-06/2.636, allocations: 0 / 0.7513 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.204e-05/2.636, allocations: 0 / 0.7513 GB, free: 14.29 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.0086/2.644, allocations: 2.443 MB / 0.7537 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/2.644, allocations: 8 kB / 0.7537 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/2.644, allocations: 195.2 kB / 0.7539 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/2.645, allocations: 160.7 kB / 0.7541 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009752/2.646, allocations: 0.7139 MB / 0.7548 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.325e-05/2.646, allocations: 101.8 kB / 0.7549 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/2.646, allocations: 131 kB / 0.755 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/2.648, allocations: 1.328 MB / 0.7563 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/2.648, allocations: 0 / 0.7563 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.721e-05/2.648, allocations: 52.03 kB / 0.7563 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/2.648, allocations: 32.5 kB / 0.7564 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/2.65, allocations: 1.055 MB / 0.7574 GB, free: 11.61 MB / 0.5919 GB 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.02501/2.675, allocations: 19.53 MB / 0.7765 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007221/2.676, allocations: 393.3 kB / 0.7768 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/2.676, allocations: 180.4 kB / 0.777 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3713/3.047, allocations: 182 MB / 0.9548 GB, free: 7.672 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/3.047, allocations: 32.5 kB / 0.9548 GB, free: 7.633 MB / 0.795 GB Notification: Performance of pre-optimization done (n=35): time 1.923e-06/3.047, allocations: 1.969 kB / 0.9548 GB, free: 7.633 MB / 0.795 GB Notification: Performance of matching and sorting (n=35): time 0.004211/3.052, allocations: 1.264 MB / 0.956 GB, free: 6.559 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/3.052, allocations: 59.39 kB / 0.9561 GB, free: 6.488 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/3.053, allocations: 0.8416 MB / 0.9569 GB, free: 5.84 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/3.053, allocations: 31.52 kB / 0.9569 GB, free: 5.809 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003965/3.053, allocations: 0.6497 MB / 0.9576 GB, free: 5.301 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.964e-05/3.053, allocations: 128.5 kB / 0.9577 GB, free: 5.184 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/3.053, allocations: 97.66 kB / 0.9578 GB, free: 5.082 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001393/3.054, allocations: 386.8 kB / 0.9582 GB, free: 4.695 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004516/3.054, allocations: 225.9 kB / 0.9584 GB, free: 4.477 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000642/3.055, allocations: 0.5844 MB / 0.959 GB, free: 3.727 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/3.056, allocations: 0.8264 MB / 0.9598 GB, free: 2.781 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/3.056, allocations: 4 kB / 0.9598 GB, free: 2.777 MB / 0.795 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001728/3.058, allocations: 1.006 MB / 0.9607 GB, free: 1.832 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/3.058, allocations: 12.77 kB / 0.9608 GB, free: 1.824 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/3.058, allocations: 12 kB / 0.9608 GB, free: 1.812 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002888/3.06, allocations: 0.6395 MB / 0.9614 GB, free: 1.18 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003885/3.061, allocations: 143.5 kB / 0.9615 GB, free: 1.051 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/3.062, allocations: 0.9633 MB / 0.9625 GB, free: 72 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/3.063, allocations: 118.7 kB / 0.9626 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.732e-05/3.063, allocations: 51.94 kB / 0.9626 GB, free: 15.91 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 24 (threeWayValve.VolumeA1.Cs2.ftype,SourceP1.C.ftype,threeWayValve.VolumeA1.Cs1.ftype,threeWayValve.VolumeA1.Ce2.ftype,threeWayValve.VolumeA1.Ce2.diff_on_1,threeWayValve.VolumeA1.fluids[1],threeWayValve.VolumeA1.Cs2.diff_on_2,threeWayValve.VolumeA1.Cs1.diff_on_2,threeWayValve.PerteDP1.C2.diff_on_1,PuitsP1.fluid,threeWayValve.Valve1.fluid,threeWayValve.Valve2.fluid,threeWayValve.PerteDP1.fluid,PuitsP2.fluid,threeWayValve.VolumeA1.fluid1,threeWayValve.fluid1,SourceP1.fluid1,threeWayValve.VolumeA1.Ce1.diff_on_2,SourceP1.C.diff_on_2,threeWayValve.VolumeA1.Cs2.diff_on_1,threeWayValve.C3.diff_on_1,threeWayValve.VolumeA1.Cs1.diff_on_1,threeWayValve.C2.diff_on_1,threeWayValve.VolumeA1.Ce2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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 {(4,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0004074/3.063, allocations: 305.4 kB / 0.9629 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/3.063, allocations: 90.89 kB / 0.963 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/3.065, allocations: 0.701 MB / 0.9637 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/3.065, allocations: 8 kB / 0.9637 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/3.065, allocations: 0 / 0.9637 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/3.065, allocations: 0 / 0.9637 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/3.066, allocations: 0.8331 MB / 0.9645 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/3.066, allocations: 0 / 0.9645 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/3.066, allocations: 23.98 kB / 0.9645 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001913/3.068, allocations: 497.8 kB / 0.965 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/3.068, allocations: 8 kB / 0.965 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/3.069, allocations: 0.9582 MB / 0.966 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/3.069, allocations: 0 / 0.966 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/3.07, allocations: 0.7365 MB / 0.9667 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/3.071, allocations: 211.9 kB / 0.9669 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.334e-05/3.071, allocations: 12 kB / 0.9669 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/3.071, allocations: 19.98 kB / 0.9669 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.611e-05/3.071, allocations: 31.66 kB / 0.9669 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/3.071, allocations: 15.98 kB / 0.967 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006354/3.072, allocations: 0.5381 MB / 0.9675 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/3.072, allocations: 0 / 0.9675 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003848/3.076, allocations: 1.65 MB / 0.9691 GB, free: 9.199 MB / 0.8106 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 (10): * Single equations (assignments): 9 * 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 {(4,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007522/3.083, allocations: 3.353 MB / 0.9724 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001302/3.084, allocations: 0.6162 MB / 0.973 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/3.084, allocations: 0 / 0.973 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005957/3.085, allocations: 250.9 kB / 0.9732 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009358/3.086, allocations: 185.2 kB / 0.9734 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.165/3.251, allocations: 8.261 MB / 0.9815 GB, free: 456.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/3.251, allocations: 1.046 MB / 0.9825 GB, free: 455.7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004468/3.252, allocations: 114.8 kB / 0.9826 GB, free: 455.6 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/3.252, allocations: 388.7 kB / 0.983 GB, free: 455.6 MB / 0.8106 GB Notification: Performance of SimCode: time 8.02e-07/3.252, allocations: 2.188 kB / 0.983 GB, free: 455.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07922/3.331, allocations: 62.29 MB / 1.044 GB, free: 421.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/3.332, allocations: 311.3 kB / 1.044 GB, free: 421.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.419/7.75, allocations: 0 / 1.044 GB, free: 421.3 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe 2>&1)