Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",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.7624/0.7624, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.133e-05/1.136e-05, allocations: 0 / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1316, allocations: 31.99 MB / 236.9 MB, free: 5.18 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.TestPipePressureLoss): time 1.409/1.54, allocations: 294.6 MB / 0.519 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1665/1.707, allocations: 186.1 MB / 0.7007 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/1.707, allocations: 7.938 kB / 0.7008 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 5.449e-05/1.707, allocations: 23.78 kB / 0.7008 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000241/1.708, allocations: 95.22 kB / 0.7009 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2458/1.953, allocations: 8.819 MB / 0.7095 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004028/1.954, allocations: 364 kB / 0.7098 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/1.954, allocations: 164 kB / 0.71 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/1.954, allocations: 118.5 kB / 0.7101 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/1.954, allocations: 132.3 kB / 0.7102 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/1.954, allocations: 14.41 kB / 0.7102 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02469/1.979, allocations: 20 MB / 0.7298 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.459e-05/1.979, allocations: 53.69 kB / 0.7298 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001851/1.979, allocations: 177.1 kB / 0.73 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01388/1.993, allocations: 9.757 MB / 0.7395 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/1.993, allocations: 4.938 kB / 0.7395 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/1.993, allocations: 0 / 0.7395 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.65e-06/1.993, allocations: 0 / 0.7395 GB, free: 2.777 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.003007/1.996, allocations: 1.686 MB / 0.7412 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/1.996, allocations: 9.031 kB / 0.7412 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/1.996, allocations: 68.84 kB / 0.7412 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.951e-05/1.996, allocations: 39.97 kB / 0.7413 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/1.997, allocations: 290.4 kB / 0.7416 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/1.997, allocations: 27.97 kB / 0.7416 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/1.997, allocations: 27.22 kB / 0.7416 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000399/1.997, allocations: 362 kB / 0.742 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/1.997, allocations: 2.906 kB / 0.742 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/1.997, allocations: 15.8 kB / 0.742 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/1.997, allocations: 7.938 kB / 0.742 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/1.997, allocations: 222.5 kB / 0.7422 GB, free: 1.156 MB / 0.5762 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.006639/2.004, allocations: 6.121 MB / 0.7482 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/2.004, allocations: 77 kB / 0.7482 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.282e-05/2.004, allocations: 28.25 kB / 0.7483 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2076/2.212, allocations: 119.3 MB / 0.8647 GB, free: 3.879 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/2.212, allocations: 42.55 kB / 0.8648 GB, free: 3.828 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/2.212, allocations: 0 / 0.8648 GB, free: 3.828 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0007546/2.213, allocations: 282.6 kB / 0.865 GB, free: 3.562 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/2.213, allocations: 55.41 kB / 0.8651 GB, free: 3.496 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/2.213, allocations: 282.5 kB / 0.8654 GB, free: 3.262 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/2.213, allocations: 25.7 kB / 0.8654 GB, free: 3.23 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/2.213, allocations: 235.8 kB / 0.8656 GB, free: 3.035 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/2.213, allocations: 27.03 kB / 0.8656 GB, free: 3.016 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/2.213, allocations: 29.08 kB / 0.8657 GB, free: 2.988 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.712e-05/2.213, allocations: 330.2 kB / 0.866 GB, free: 2.664 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.758e-05/2.213, allocations: 42.73 kB / 0.866 GB, free: 2.637 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/2.214, allocations: 142.7 kB / 0.8662 GB, free: 2.473 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/2.214, allocations: 194.6 kB / 0.8663 GB, free: 2.293 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/2.214, allocations: 0 / 0.8663 GB, free: 2.293 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004503/2.214, allocations: 277.8 kB / 0.8666 GB, free: 2.082 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/2.214, allocations: 8 kB / 0.8666 GB, free: 2.074 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/2.214, allocations: 4 kB / 0.8666 GB, free: 2.07 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008312/2.215, allocations: 163.6 kB / 0.8668 GB, free: 1.918 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/2.215, allocations: 42.42 kB / 0.8668 GB, free: 1.887 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003428/2.216, allocations: 0.5803 MB / 0.8674 GB, free: 1.309 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/2.216, allocations: 35.38 kB / 0.8674 GB, free: 1.277 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/2.216, allocations: 11.75 kB / 0.8674 GB, free: 1.27 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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 {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001164/2.216, allocations: 151.9 kB / 0.8676 GB, free: 1.133 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/2.216, allocations: 23.72 kB / 0.8676 GB, free: 1.109 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000332/2.216, allocations: 156.1 kB / 0.8677 GB, free: 0.9805 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/2.216, allocations: 4.062 kB / 0.8677 GB, free: 0.9766 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/2.216, allocations: 4 kB / 0.8677 GB, free: 0.9727 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/2.216, allocations: 0 / 0.8677 GB, free: 0.9727 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/2.217, allocations: 293.4 kB / 0.868 GB, free: 0.6836 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/2.217, allocations: 3.984 kB / 0.868 GB, free: 0.6797 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.247e-05/2.217, allocations: 9.969 kB / 0.868 GB, free: 0.6719 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004674/2.217, allocations: 106.5 kB / 0.8681 GB, free: 0.5781 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/2.217, allocations: 7.938 kB / 0.8682 GB, free: 0.5703 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003164/2.217, allocations: 0.5793 MB / 0.8687 GB, free: 0 / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/2.217, allocations: 0 / 0.8687 GB, free: 0 / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/2.218, allocations: 166.2 kB / 0.8689 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/2.218, allocations: 112.7 kB / 0.869 GB, free: 15.72 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/2.218, allocations: 0 / 0.869 GB, free: 15.72 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.118e-05/2.218, allocations: 0 / 0.869 GB, free: 15.72 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.671e-05/2.218, allocations: 14.39 kB / 0.869 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/2.218, allocations: 0 / 0.869 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001697/2.218, allocations: 206.7 kB / 0.8692 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/2.218, allocations: 0 / 0.8692 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002786/2.221, allocations: 1.44 MB / 0.8706 GB, free: 14.2 MB / 0.7169 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 (2): * Single equations (assignments): 1 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005038/2.226, allocations: 2.854 MB / 0.8734 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002457/2.226, allocations: 110.2 kB / 0.8735 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/2.226, allocations: 0 / 0.8735 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.5e-05/2.226, allocations: 36.23 kB / 0.8735 GB, free: 11.56 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/2.227, allocations: 73.14 kB / 0.8736 GB, free: 11.51 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/2.23, allocations: 3.124 MB / 0.8766 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/2.23, allocations: 0.7664 MB / 0.8774 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000112/2.23, allocations: 30.23 kB / 0.8774 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.802e-05/2.23, allocations: 99.53 kB / 0.8775 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/2.23, allocations: 0 / 0.8775 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.841/5.072, allocations: 49.89 MB / 0.9262 GB, free: 6.074 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002996/5.072, allocations: 309.9 kB / 0.9265 GB, free: 5.695 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.366/9.438, allocations: 0 / 0.9265 GB, free: 5.695 MB / 0.7637 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)