Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP.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.TestRefP,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP",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.8083/0.8083, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.576e-05, allocations: 4 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1383, allocations: 31.99 MB / 236.8 MB, free: 5.43 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.TestRefP): time 1.562/1.701, allocations: 296.9 MB / 0.5212 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4942/2.195, allocations: 194.6 MB / 0.7112 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00054/2.196, allocations: 8.469 kB / 0.7112 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001604/2.196, allocations: 85.14 kB / 0.7113 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005817/2.196, allocations: 283 kB / 0.7116 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0266/2.223, allocations: 10.96 MB / 0.7223 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00123/2.224, allocations: 1.185 MB / 0.7234 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005347/2.225, allocations: 0.555 MB / 0.724 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004361/2.225, allocations: 391.1 kB / 0.7243 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003919/2.226, allocations: 456.1 kB / 0.7248 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.689e-05/2.226, allocations: 52.31 kB / 0.7248 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03762/2.263, allocations: 22.75 MB / 0.7471 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002795/2.264, allocations: 192.7 kB / 0.7472 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000649/2.264, allocations: 0.5212 MB / 0.7477 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02526/2.29, allocations: 12.17 MB / 0.7596 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/2.29, allocations: 0 / 0.7596 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.733e-06/2.29, allocations: 0 / 0.7596 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.444e-05/2.29, allocations: 0 / 0.7596 GB, free: 12.55 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.00625/2.296, allocations: 2.518 MB / 0.7621 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/2.296, allocations: 8.656 kB / 0.7621 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/2.296, allocations: 179.5 kB / 0.7623 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/2.296, allocations: 132.4 kB / 0.7624 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006058/2.297, allocations: 0.5087 MB / 0.7629 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.237e-05/2.297, allocations: 89.83 kB / 0.763 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/2.297, allocations: 111.9 kB / 0.7631 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/2.299, allocations: 1.201 MB / 0.7643 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/2.299, allocations: 4.625 kB / 0.7643 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.542e-05/2.299, allocations: 49.22 kB / 0.7643 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/2.299, allocations: 38.41 kB / 0.7643 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/2.3, allocations: 0.8597 MB / 0.7652 GB, free: 9.855 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.02439/2.325, allocations: 15.65 MB / 0.7805 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007841/2.326, allocations: 327.2 kB / 0.7808 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/2.326, allocations: 113.7 kB / 0.7809 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7535/3.079, allocations: 286.5 MB / 1.061 GB, free: 397.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/3.079, allocations: 38.88 kB / 1.061 GB, free: 397.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=29): time 2.875e-06/3.079, allocations: 1.031 kB / 1.061 GB, free: 397.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29): time 0.00579/3.085, allocations: 1.38 MB / 1.062 GB, free: 396.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/3.085, allocations: 55.41 kB / 1.062 GB, free: 396.4 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006605/3.086, allocations: 0.5766 MB / 1.063 GB, free: 396 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/3.086, allocations: 30.89 kB / 1.063 GB, free: 396 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/3.086, allocations: 0.5469 MB / 1.063 GB, free: 395.6 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.973e-05/3.086, allocations: 111.1 kB / 1.063 GB, free: 395.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.973e-05/3.086, allocations: 82.11 kB / 1.063 GB, free: 395.4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.748e-05/3.086, allocations: 358.7 kB / 1.064 GB, free: 395.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/3.087, allocations: 146.2 kB / 1.064 GB, free: 395 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/3.087, allocations: 485.8 kB / 1.064 GB, free: 394.4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/3.088, allocations: 0.6687 MB / 1.065 GB, free: 393.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/3.088, allocations: 4 kB / 1.065 GB, free: 393.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002366/3.09, allocations: 0.9626 MB / 1.066 GB, free: 393 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/3.09, allocations: 15.94 kB / 1.066 GB, free: 393 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/3.09, allocations: 8 kB / 1.066 GB, free: 393 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/3.092, allocations: 315.5 kB / 1.066 GB, free: 392.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/3.092, allocations: 120.2 kB / 1.066 GB, free: 392.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006682/3.093, allocations: 0.7921 MB / 1.067 GB, free: 391.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004581/3.093, allocations: 86.72 kB / 1.067 GB, free: 391.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/3.093, allocations: 42.78 kB / 1.067 GB, free: 391.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 16 (volumeA.fluid1,volumeA.Cs2.ftype,volumeA.Cs1.ftype,volumeA.Ce2.ftype,volumeA.fluids[1],pump.fluid,refT.fluid,lumpedStraightPipe.fluid,volumeA.Cs2.diff_on_1,volumeA.Cs1.diff_on_1,lumpedStraightPipe.C2.diff_on_1,volumeA.Ce2.diff_on_2,volumeA.Ce1.diff_on_2,refT.C1.diff_on_2,volumeA.Cs2.diff_on_2,volumeA.Ce2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 71 * 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 {(3,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003179/3.093, allocations: 250 kB / 1.068 GB, free: 391.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/3.094, allocations: 59.33 kB / 1.068 GB, free: 391.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001023/3.095, allocations: 0.4978 MB / 1.068 GB, free: 391.1 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/3.095, allocations: 5.969 kB / 1.068 GB, free: 391.1 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/3.095, allocations: 0 / 1.068 GB, free: 391.1 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/3.095, allocations: 0 / 1.068 GB, free: 391.1 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006598/3.095, allocations: 0.6584 MB / 1.069 GB, free: 390.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/3.095, allocations: 0 / 1.069 GB, free: 390.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.673e-05/3.095, allocations: 19.98 kB / 1.069 GB, free: 390.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/3.097, allocations: 281.7 kB / 1.069 GB, free: 390.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/3.097, allocations: 15.42 kB / 1.069 GB, free: 390.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006057/3.097, allocations: 0.7726 MB / 1.07 GB, free: 389.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/3.097, allocations: 0 / 1.07 GB, free: 389.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008135/3.098, allocations: 443.7 kB / 1.07 GB, free: 389.2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/3.098, allocations: 174.3 kB / 1.07 GB, free: 389 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.534e-05/3.098, allocations: 7.938 kB / 1.07 GB, free: 389 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/3.099, allocations: 7.75 kB / 1.07 GB, free: 389 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/3.099, allocations: 19.91 kB / 1.07 GB, free: 389 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/3.099, allocations: 7.812 kB / 1.07 GB, free: 389 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003436/3.099, allocations: 368.8 kB / 1.071 GB, free: 388.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.493e-06/3.099, allocations: 0 / 1.071 GB, free: 388.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004819/3.104, allocations: 1.964 MB / 1.073 GB, free: 387.1 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 (12): * Single equations (assignments): 11 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009614/3.113, allocations: 3.757 MB / 1.076 GB, free: 384 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009707/3.114, allocations: 429.7 kB / 1.077 GB, free: 383.7 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/3.114, allocations: 2.078 kB / 1.077 GB, free: 383.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002809/3.115, allocations: 144.3 kB / 1.077 GB, free: 383.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/3.115, allocations: 103 kB / 1.077 GB, free: 383.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009073/3.124, allocations: 6.509 MB / 1.083 GB, free: 377.3 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/3.125, allocations: 0.9734 MB / 1.084 GB, free: 376.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003029/3.125, allocations: 87 kB / 1.084 GB, free: 376.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/3.125, allocations: 308.1 kB / 1.085 GB, free: 376.2 MB / 0.8106 GB Notification: Performance of SimCode: time 1.493e-06/3.125, allocations: 0 / 1.085 GB, free: 376.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07931/3.205, allocations: 63.72 MB / 1.147 GB, free: 313.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/3.205, allocations: 277 kB / 1.147 GB, free: 313.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.906/8.111, allocations: 4.062 kB / 1.147 GB, free: 313.1 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP.pipe 2>&1)