Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI.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.SimpleExamples.TestVolumeI,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestVolumeI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestVolumeI",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.7454/0.7454, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.236e-05/2.237e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1315, allocations: 31.98 MB / 236.8 MB, free: 5.406 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.SimpleExamples.TestVolumeI): time 1.407/1.539, allocations: 299.2 MB / 0.5235 GB, free: 8.695 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4309/1.969, allocations: 195.7 MB / 0.7146 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006297/1.97, allocations: 26.36 kB / 0.7146 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000324/1.97, allocations: 175.1 kB / 0.7148 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00091/1.971, allocations: 0.5203 MB / 0.7153 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02597/1.997, allocations: 11.42 MB / 0.7264 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00207/1.999, allocations: 2.18 MB / 0.7286 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008686/2, allocations: 0.981 MB / 0.7295 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007149/2.001, allocations: 0.721 MB / 0.7302 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006601/2.002, allocations: 0.8472 MB / 0.731 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001287/2.002, allocations: 97.44 kB / 0.7311 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03124/2.033, allocations: 22.81 MB / 0.7534 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000454/2.034, allocations: 357.4 kB / 0.7538 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009348/2.035, allocations: 0.9036 MB / 0.7546 GB, free: 420 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02466/2.059, allocations: 13.15 MB / 0.7675 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/2.059, allocations: 3.984 kB / 0.7675 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.723e-06/2.059, allocations: 0 / 0.7675 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.078e-05/2.059, allocations: 0 / 0.7675 GB, free: 11.57 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: 485 * Number of variables: 485 Notification: Performance of Generate backend data structure: time 0.006594/2.066, allocations: 3.184 MB / 0.7706 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/2.066, allocations: 8.875 kB / 0.7706 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002346/2.066, allocations: 269.4 kB / 0.7709 GB, free: 9.449 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/2.066, allocations: 234.4 kB / 0.7711 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009293/2.067, allocations: 0.8378 MB / 0.7719 GB, free: 8.848 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.718e-05/2.067, allocations: 149.3 kB / 0.7721 GB, free: 8.836 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/2.068, allocations: 187.5 kB / 0.7722 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/2.07, allocations: 2.084 MB / 0.7743 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/2.07, allocations: 12.44 kB / 0.7743 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/2.071, allocations: 82.25 kB / 0.7744 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.934e-05/2.071, allocations: 48.41 kB / 0.7744 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002288/2.073, allocations: 1.661 MB / 0.776 GB, free: 7.844 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.02081/2.094, allocations: 19.74 MB / 0.7953 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/2.095, allocations: 0.7374 MB / 0.796 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/2.095, allocations: 293.6 kB / 0.7963 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6991/2.795, allocations: 291.1 MB / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/2.795, allocations: 38.88 kB / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=70): time 2.215e-06/2.795, allocations: 0 / 1.081 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=70): time 0.00673/2.801, allocations: 2.065 MB / 1.083 GB, free: 376.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.134e-05/2.801, allocations: 59.97 kB / 1.083 GB, free: 376.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/2.802, allocations: 1.149 MB / 1.084 GB, free: 375.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/2.802, allocations: 37.39 kB / 1.084 GB, free: 375.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000338/2.803, allocations: 0.9192 MB / 1.085 GB, free: 375.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/2.803, allocations: 263.8 kB / 1.085 GB, free: 374.9 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/2.803, allocations: 161.5 kB / 1.085 GB, free: 374.8 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 3.351e-05/2.803, allocations: 301.1 kB / 1.085 GB, free: 374.5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000533/2.804, allocations: 345.6 kB / 1.086 GB, free: 374.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007149/2.804, allocations: 1.05 MB / 1.087 GB, free: 373 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/2.806, allocations: 1.499 MB / 1.088 GB, free: 371.6 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/2.806, allocations: 8 kB / 1.088 GB, free: 371.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=198) (initialization): time 0.00215/2.808, allocations: 1.678 MB / 1.09 GB, free: 370.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/2.808, allocations: 16 kB / 1.09 GB, free: 370.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/2.808, allocations: 24 kB / 1.09 GB, free: 370.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006792/2.815, allocations: 1.506 MB / 1.091 GB, free: 368.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006224/2.815, allocations: 267 kB / 1.092 GB, free: 368.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/2.816, allocations: 1.14 MB / 1.093 GB, free: 367.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008209/2.817, allocations: 205.3 kB / 1.093 GB, free: 367.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.478e-05/2.817, allocations: 91.73 kB / 1.093 GB, free: 367.3 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 110 * Number of states: 0 () * Number of discrete variables: 38 (volumeA.Cs2.ftype,sourceP2.C.ftype,sourceP1.C.ftype,volumeA.Cs4.ftype,volumeA.Cs3.ftype,volumeA.Cs1.ftype,volumeA.Ce4.ftype,volumeA.Ce3.ftype,volumeA.fluids[1],sinkP.fluid,lumpedStraightPipe1.fluid,lumpedStraightPipe3.fluid,lumpedStraightPipe2.fluid,controlValve1.fluid,controlValve2.fluid,controlValve3.fluid,sourceP2.fluid1,volumeA.fluid1,sourceP1.fluid1,volumeA.Cs2.diff_on_2,volumeA.Cs2.diff_on_1,lumpedStraightPipe3.C2.diff_on_1,volumeA.Ce1.diff_on_2,lumpedStraightPipe2.C1.diff_on_2,controlValve2.C2.diff_on_1,volumeA.Ce2.diff_on_2,lumpedStraightPipe1.C1.diff_on_2,controlValve1.C2.diff_on_1,volumeA.Cs4.diff_on_1,volumeA.Cs3.diff_on_1,volumeA.Cs1.diff_on_1,volumeA.Ce4.diff_on_2,volumeA.Ce3.diff_on_2,volumeA.Cs4.diff_on_2,volumeA.Cs3.diff_on_2,volumeA.Cs1.diff_on_2,volumeA.Ce4.diff_on_1,volumeA.Ce3.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 160 * 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 {(8,30)} Notification: Performance of prepare postOptimizeDAE: time 0.0004129/2.818, allocations: 377.6 kB / 1.093 GB, free: 367.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/2.818, allocations: 131.3 kB / 1.094 GB, free: 366.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/2.82, allocations: 1.038 MB / 1.095 GB, free: 366.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/2.82, allocations: 8 kB / 1.095 GB, free: 366.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/2.82, allocations: 7.812 kB / 1.095 GB, free: 366.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/2.82, allocations: 7.984 kB / 1.095 GB, free: 366.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/2.822, allocations: 2.289 MB / 1.097 GB, free: 364.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/2.822, allocations: 3.375 kB / 1.097 GB, free: 364.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/2.823, allocations: 79.77 kB / 1.097 GB, free: 364.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004935/2.827, allocations: 1.109 MB / 1.098 GB, free: 363.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.718e-05/2.828, allocations: 19.69 kB / 1.098 GB, free: 363.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/2.829, allocations: 1.103 MB / 1.099 GB, free: 362.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/2.829, allocations: 0 / 1.099 GB, free: 362.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/2.83, allocations: 1.347 MB / 1.1 GB, free: 361.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002787/2.831, allocations: 298.5 kB / 1.101 GB, free: 361.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/2.831, allocations: 7.812 kB / 1.101 GB, free: 361.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/2.831, allocations: 27.36 kB / 1.101 GB, free: 361.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.221e-05/2.831, allocations: 60.2 kB / 1.101 GB, free: 361.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/2.831, allocations: 23.5 kB / 1.101 GB, free: 361.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006403/2.832, allocations: 0.7085 MB / 1.101 GB, free: 360.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/2.832, allocations: 0 / 1.101 GB, free: 360.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004484/2.837, allocations: 2.157 MB / 1.104 GB, free: 358.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (volumeA.h) * 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 (36): * Single equations (assignments): 35 * 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 {(7,34)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008514/2.845, allocations: 4.682 MB / 1.108 GB, free: 355 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001802/2.847, allocations: 1.041 MB / 1.109 GB, free: 354.2 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/2.847, allocations: 0 / 1.109 GB, free: 354.2 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007621/2.848, allocations: 419.2 kB / 1.11 GB, free: 353.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/2.849, allocations: 252.1 kB / 1.11 GB, free: 353.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01219/2.861, allocations: 12.17 MB / 1.122 GB, free: 340.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/2.861, allocations: 1.221 MB / 1.123 GB, free: 339.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0006756/2.862, allocations: 216 kB / 1.123 GB, free: 339.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004518/2.863, allocations: 0.5813 MB / 1.124 GB, free: 338.5 MB / 0.8106 GB Notification: Performance of SimCode: time 5.11e-07/2.863, allocations: 0 / 1.124 GB, free: 338.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08339/2.946, allocations: 76.71 MB / 1.199 GB, free: 263 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/2.946, allocations: 289.1 kB / 1.199 GB, free: 262.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.782/7.728, allocations: 10.12 kB / 1.199 GB, free: 262.6 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestVolumeI_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestVolumeI.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeI.pipe 2>&1)