Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.Examples.SimpleExamples.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8009/0.8009, allocations: 150.8 MB / 166.1 MB, free: 15.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.893e-05/1.895e-05, allocations: 7.938 kB / 204.9 MB, free: 10.11 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.163, allocations: 31.98 MB / 236.8 MB, free: 5.398 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.Examples.SimpleExamples.TestLumpedStraightPipe): time 1.59/1.753, allocations: 295.7 MB / 0.5201 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1706/1.924, allocations: 181.5 MB / 0.6974 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/1.924, allocations: 0 / 0.6974 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002957/1.924, allocations: 107.4 kB / 0.6975 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002947/1.925, allocations: 166.7 kB / 0.6976 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3098/2.234, allocations: 8.023 MB / 0.7055 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00147/2.236, allocations: 0.876 MB / 0.7063 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004404/2.236, allocations: 283.5 kB / 0.7066 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000488/2.237, allocations: 331.9 kB / 0.7069 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004319/2.237, allocations: 357.5 kB / 0.7072 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.801e-05/2.237, allocations: 36.36 kB / 0.7073 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02746/2.265, allocations: 17.33 MB / 0.7242 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003144/2.265, allocations: 126.7 kB / 0.7243 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004831/2.266, allocations: 342.7 kB / 0.7246 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02187/2.288, allocations: 9.219 MB / 0.7336 GB, free: 6.754 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/2.288, allocations: 3.688 kB / 0.7336 GB, free: 6.754 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.805e-06/2.288, allocations: 0 / 0.7336 GB, free: 6.754 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.678e-06/2.288, allocations: 0 / 0.7336 GB, free: 6.754 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.008303/2.296, allocations: 2.234 MB / 0.7358 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/2.296, allocations: 10.73 kB / 0.7358 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/2.296, allocations: 97.44 kB / 0.7359 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/2.296, allocations: 69.78 kB / 0.736 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/2.297, allocations: 368.2 kB / 0.7363 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/2.297, allocations: 95.16 kB / 0.7364 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.634e-05/2.297, allocations: 51.78 kB / 0.7365 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/2.299, allocations: 0.9264 MB / 0.7374 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/2.299, allocations: 0 / 0.7374 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/2.299, allocations: 24 kB / 0.7374 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/2.299, allocations: 15.25 kB / 0.7374 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002676/2.302, allocations: 1.022 MB / 0.7384 GB, free: 4.379 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.003613/2.305, allocations: 3.925 MB / 0.7423 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002335/2.307, allocations: 0.777 MB / 0.743 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/2.309, allocations: 453.1 kB / 0.7435 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2348/2.544, allocations: 118.3 MB / 0.859 GB, free: 11.04 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/2.544, allocations: 42.25 kB / 0.859 GB, free: 10.99 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=71): time 2.665e-06/2.544, allocations: 0 / 0.859 GB, free: 10.99 MB / 0.7012 GB Notification: Performance of matching and sorting (n=71): time 0.004996/2.549, allocations: 1.593 MB / 0.8606 GB, free: 9.617 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/2.549, allocations: 55.41 kB / 0.8606 GB, free: 9.551 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004538/2.549, allocations: 409 kB / 0.861 GB, free: 9.219 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 6.416e-05/2.549, allocations: 33.08 kB / 0.861 GB, free: 9.188 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/2.549, allocations: 285.3 kB / 0.8613 GB, free: 8.961 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/2.55, allocations: 244.7 kB / 0.8615 GB, free: 8.754 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/2.55, allocations: 79.48 kB / 0.8616 GB, free: 8.695 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001222/2.55, allocations: 368.6 kB / 0.862 GB, free: 8.352 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/2.551, allocations: 426 kB / 0.8624 GB, free: 8.02 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/2.553, allocations: 0.6768 MB / 0.863 GB, free: 7.34 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002871/2.556, allocations: 1.132 MB / 0.8641 GB, free: 6.34 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/2.556, allocations: 0 / 0.8641 GB, free: 6.34 MB / 0.7012 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003797/2.559, allocations: 1.368 MB / 0.8655 GB, free: 5.285 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/2.559, allocations: 11.98 kB / 0.8655 GB, free: 5.273 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/2.56, allocations: 10.62 kB / 0.8655 GB, free: 5.266 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002636/2.562, allocations: 0.6745 MB / 0.8662 GB, free: 4.633 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/2.564, allocations: 336.8 kB / 0.8665 GB, free: 4.32 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/2.565, allocations: 1.966 MB / 0.8684 GB, free: 2.465 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/2.566, allocations: 190 kB / 0.8686 GB, free: 2.289 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.769e-05/2.567, allocations: 43.36 kB / 0.8686 GB, free: 2.254 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * 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: 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.0002906/2.567, allocations: 189.3 kB / 0.8688 GB, free: 2.105 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/2.567, allocations: 59.36 kB / 0.8689 GB, free: 2.051 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/2.571, allocations: 1.494 MB / 0.8703 GB, free: 0.9531 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003052/2.574, allocations: 1.21 MB / 0.8715 GB, free: 0 / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/2.574, allocations: 0 / 0.8715 GB, free: 0 / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/2.574, allocations: 1.562 kB / 0.8715 GB, free: 0 / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005259/2.579, allocations: 2.406 MB / 0.8739 GB, free: 14.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/2.579, allocations: 4 kB / 0.8739 GB, free: 14.1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001898/2.581, allocations: 384.2 kB / 0.8742 GB, free: 13.74 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003227/2.581, allocations: 203.2 kB / 0.8744 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.741e-05/2.581, allocations: 23.23 kB / 0.8744 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007299/2.582, allocations: 1.22 MB / 0.8756 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/2.582, allocations: 0 / 0.8756 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004751/2.587, allocations: 1.941 MB / 0.8775 GB, free: 10.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/2.587, allocations: 209.4 kB / 0.8777 GB, free: 10.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.674e-05/2.587, allocations: 11.38 kB / 0.8777 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000857/2.588, allocations: 130.6 kB / 0.8779 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/2.588, allocations: 63.97 kB / 0.8779 GB, free: 10.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/2.588, allocations: 26.02 kB / 0.8779 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002673/2.589, allocations: 259.2 kB / 0.8782 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/2.589, allocations: 0 / 0.8782 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004945/2.594, allocations: 1.463 MB / 0.8796 GB, free: 8.895 MB / 0.7169 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.01355/2.607, allocations: 4.557 MB / 0.8841 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004056/2.611, allocations: 1.302 MB / 0.8853 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/2.611, allocations: 0.5625 kB / 0.8853 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001754/2.613, allocations: 0.637 MB / 0.886 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/2.614, allocations: 204.5 kB / 0.8862 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01657/2.631, allocations: 7.919 MB / 0.8939 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/2.631, allocations: 0.9313 MB / 0.8948 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0005516/2.632, allocations: 96.86 kB / 0.8949 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004251/2.632, allocations: 279.4 kB / 0.8952 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of SimCode: time 9.71e-07/2.632, allocations: 4 kB / 0.8952 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09305/2.725, allocations: 60.44 MB / 0.9542 GB, free: 15.15 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/2.726, allocations: 285.8 kB / 0.9545 GB, free: 14.77 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.544/7.27, allocations: 0 / 0.9545 GB, free: 14.77 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestLumpedStraightPipe.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe 2>&1)