Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.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.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe",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.8499/0.8499, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.57e-05/1.579e-05, allocations: 4 kB / 204.9 MB, free: 9.938 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1695, allocations: 31.98 MB / 236.9 MB, free: 5.438 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.TestLumpedStraightPipe): time 1.729/1.899, allocations: 296.6 MB / 0.5209 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5439/2.443, allocations: 188.7 MB / 0.7052 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006362/2.444, allocations: 13.75 kB / 0.7052 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002345/2.444, allocations: 77.95 kB / 0.7053 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007105/2.445, allocations: 266.4 kB / 0.7056 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02867/2.473, allocations: 9.831 MB / 0.7152 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002174/2.475, allocations: 1.433 MB / 0.7166 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005992/2.476, allocations: 0.4931 MB / 0.7171 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006888/2.477, allocations: 0.5065 MB / 0.7175 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007664/2.478, allocations: 0.5735 MB / 0.7181 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001477/2.478, allocations: 70.58 kB / 0.7182 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03795/2.516, allocations: 19.43 MB / 0.7371 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006449/2.516, allocations: 245.4 kB / 0.7374 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008461/2.517, allocations: 0.5682 MB / 0.7379 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03403/2.551, allocations: 10.93 MB / 0.7486 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/2.551, allocations: 0 / 0.7486 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd: time 4.207e-06/2.551, allocations: 0 / 0.7486 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.713e-05/2.551, allocations: 0 / 0.7486 GB, free: 14.77 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.009726/2.561, allocations: 2.845 MB / 0.7514 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/2.561, allocations: 13.12 kB / 0.7514 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002219/2.561, allocations: 153.5 kB / 0.7515 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/2.562, allocations: 124 kB / 0.7517 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007777/2.562, allocations: 0.5606 MB / 0.7522 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/2.563, allocations: 143.4 kB / 0.7523 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002824/2.563, allocations: 124.8 kB / 0.7525 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/2.566, allocations: 1.611 MB / 0.754 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.972e-05/2.566, allocations: 7.906 kB / 0.754 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/2.566, allocations: 47.78 kB / 0.7541 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/2.566, allocations: 29.25 kB / 0.7541 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003597/2.569, allocations: 1.558 MB / 0.7556 GB, free: 11.34 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.006616/2.576, allocations: 7.835 MB / 0.7633 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003702/2.58, allocations: 1.134 MB / 0.7644 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/2.581, allocations: 439.3 kB / 0.7648 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7777/3.359, allocations: 286.5 MB / 1.045 GB, free: 410.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/3.359, allocations: 45.25 kB / 1.045 GB, free: 410.9 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=52): time 2.305e-06/3.359, allocations: 0 / 1.045 GB, free: 410.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=52): time 0.004596/3.364, allocations: 1.561 MB / 1.046 GB, free: 409.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/3.364, allocations: 113.7 kB / 1.046 GB, free: 409.4 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007574/3.364, allocations: 0.7995 MB / 1.047 GB, free: 408.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/3.364, allocations: 32.95 kB / 1.047 GB, free: 408.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/3.365, allocations: 0.6014 MB / 1.048 GB, free: 408.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/3.365, allocations: 204.7 kB / 1.048 GB, free: 408.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/3.365, allocations: 133.6 kB / 1.048 GB, free: 408.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001115/3.365, allocations: 387.8 kB / 1.048 GB, free: 407.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/3.366, allocations: 494.8 kB / 1.049 GB, free: 407.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/3.368, allocations: 1.238 MB / 1.05 GB, free: 405.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003044/3.371, allocations: 1.792 MB / 1.052 GB, free: 404 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/3.371, allocations: 8 kB / 1.052 GB, free: 404 MB / 0.8106 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004078/3.375, allocations: 1.887 MB / 1.054 GB, free: 402.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/3.375, allocations: 16 kB / 1.054 GB, free: 402.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/3.375, allocations: 24 kB / 1.054 GB, free: 402.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002353/3.378, allocations: 0.4977 MB / 1.054 GB, free: 401.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/3.379, allocations: 0.4883 MB / 1.055 GB, free: 401.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/3.381, allocations: 1.833 MB / 1.056 GB, free: 399.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/3.382, allocations: 265.4 kB / 1.057 GB, free: 399.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.617e-05/3.382, allocations: 86.53 kB / 1.057 GB, free: 399.3 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 26 (tank1.Cs2.ftype,tank2.Cs2.ftype,tank2.Cs1.ftype,tank2.Ce1.ftype,tank2.fluids[1],tank1.Cs1.ftype,tank1.Ce2.ftype,tank1.Ce1.ftype,tank1.fluids[1],lumpedStraightPipe.fluid,tank2.fluid1,tank1.fluid1,tank2.Ce2.diff_on_2,tank1.Cs2.diff_on_1,tank2.Cs2.diff_on_1,tank2.Cs1.diff_on_1,tank2.Ce1.diff_on_2,tank2.Cs2.diff_on_2,tank2.Cs1.diff_on_2,tank2.Ce1.diff_on_1,tank1.Cs1.diff_on_1,tank1.Ce2.diff_on_2,tank1.Ce1.diff_on_2,tank1.Cs1.diff_on_2,tank1.Ce2.diff_on_1,tank1.Ce1.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 159 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003385/3.382, allocations: 312.2 kB / 1.057 GB, free: 399.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/3.382, allocations: 94.75 kB / 1.057 GB, free: 399 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/3.385, allocations: 1.162 MB / 1.058 GB, free: 398.1 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/3.385, allocations: 4 kB / 1.058 GB, free: 398.1 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/3.385, allocations: 0 / 1.058 GB, free: 398.1 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/3.385, allocations: 15.67 kB / 1.058 GB, free: 398 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/3.389, allocations: 1.943 MB / 1.06 GB, free: 396.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/3.389, allocations: 2.078 kB / 1.06 GB, free: 396.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/3.391, allocations: 339.6 kB / 1.061 GB, free: 396.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/3.391, allocations: 71.61 kB / 1.061 GB, free: 396.1 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/3.391, allocations: 11.62 kB / 1.061 GB, free: 396.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000334/3.391, allocations: 1.065 MB / 1.062 GB, free: 395 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/3.391, allocations: 0 / 1.062 GB, free: 395 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004044/3.395, allocations: 1.624 MB / 1.063 GB, free: 393.6 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/3.396, allocations: 235.1 kB / 1.063 GB, free: 393.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/3.396, allocations: 15 kB / 1.063 GB, free: 393.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008119/3.397, allocations: 119.5 kB / 1.064 GB, free: 393.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/3.397, allocations: 56.11 kB / 1.064 GB, free: 393.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/3.397, allocations: 27.8 kB / 1.064 GB, free: 393.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004393/3.397, allocations: 491.6 kB / 1.064 GB, free: 392.8 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.3e-07/3.397, allocations: 0 / 1.064 GB, free: 392.8 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004366/3.402, allocations: 1.798 MB / 1.066 GB, free: 391.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01155/3.413, allocations: 4.659 MB / 1.07 GB, free: 387.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003427/3.417, allocations: 1.272 MB / 1.072 GB, free: 386.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/3.417, allocations: 0 / 1.072 GB, free: 386.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001332/3.418, allocations: 0.5024 MB / 1.072 GB, free: 386 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008295/3.419, allocations: 148.8 kB / 1.072 GB, free: 385.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/3.435, allocations: 10.75 MB / 1.083 GB, free: 375.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/3.435, allocations: 1.002 MB / 1.084 GB, free: 374.6 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0007219/3.436, allocations: 170.1 kB / 1.084 GB, free: 374.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000468/3.436, allocations: 356 kB / 1.084 GB, free: 374.4 MB / 0.8106 GB Notification: Performance of SimCode: time 1.323e-06/3.436, allocations: 0 / 1.084 GB, free: 374.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3169/3.753, allocations: 65.32 MB / 1.148 GB, free: 310.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/3.753, allocations: 318.5 kB / 1.148 GB, free: 309.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.82/8.573, allocations: 0 / 1.148 GB, free: 309.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestLumpedStraightPipe.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1)