Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.545/2.545, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.000444, allocations: 12 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3572, allocations: 54.86 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.07/8.427, allocations: 2.596 GB / 2.957 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003871/8.428, allocations: 90.58 kB / 2.957 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.957/10.38, allocations: 356.4 MB / 3.305 GB, free: 66 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.485e-06/10.38, allocations: 3.875 kB / 3.305 GB, free: 66 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.776e-05/10.38, allocations: 19.44 kB / 3.305 GB, free: 66 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.008797/10.39, allocations: 1.717 MB / 3.307 GB, free: 65.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/10.39, allocations: 14.12 kB / 3.307 GB, free: 65.2 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004536/10.39, allocations: 109.6 kB / 3.307 GB, free: 65.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005246/10.4, allocations: 434.8 kB / 3.307 GB, free: 65.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/10.4, allocations: 0.5753 MB / 3.308 GB, free: 64.87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/10.4, allocations: 121.8 kB / 3.308 GB, free: 64.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/10.4, allocations: 56.97 kB / 3.308 GB, free: 64.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004328/10.41, allocations: 1.156 MB / 3.309 GB, free: 64.62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/10.41, allocations: 3.938 kB / 3.309 GB, free: 64.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/10.41, allocations: 26.56 kB / 3.309 GB, free: 64.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-05/10.41, allocations: 32.36 kB / 3.309 GB, free: 64.61 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004515/10.41, allocations: 1.078 MB / 3.31 GB, free: 64.61 MB / 490.7 MB 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.009085/10.42, allocations: 4.946 MB / 3.315 GB, free: 61.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003754/10.42, allocations: 0.8396 MB / 3.316 GB, free: 61.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1033/10.53, allocations: 32.8 MB / 3.348 GB, free: 41.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/10.53, allocations: 48.83 kB / 3.348 GB, free: 41.82 MB / 490.7 MB Notification: Performance of pre-optimization done (n=46): time 3.006e-06/10.53, allocations: 3.719 kB / 3.348 GB, free: 41.82 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: Volume.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=59): time 0.04368/10.57, allocations: 5.429 MB / 3.353 GB, free: 40.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/10.57, allocations: 112.1 kB / 3.353 GB, free: 40.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009354/10.57, allocations: 492.6 kB / 3.354 GB, free: 40.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002024/10.57, allocations: 39.86 kB / 3.354 GB, free: 40.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/10.57, allocations: 386.4 kB / 3.354 GB, free: 40.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/10.57, allocations: 201.5 kB / 3.354 GB, free: 40.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/10.57, allocations: 14.03 kB / 3.354 GB, free: 40.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.694e-05/10.57, allocations: 345.1 kB / 3.355 GB, free: 39.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/10.57, allocations: 489.4 kB / 3.355 GB, free: 39.97 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002024/10.58, allocations: 0.7076 MB / 3.356 GB, free: 39.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/10.58, allocations: 0.5191 MB / 3.356 GB, free: 39.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/10.58, allocations: 0 / 3.356 GB, free: 39.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005992/10.58, allocations: 1.607 MB / 3.358 GB, free: 39.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006498/10.59, allocations: 2.698 MB / 3.36 GB, free: 36.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/10.59, allocations: 6.875 kB / 3.36 GB, free: 36.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004337/10.59, allocations: 1.197 MB / 3.362 GB, free: 36.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/10.59, allocations: 151.9 kB / 3.362 GB, free: 36.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005959/10.6, allocations: 2.801 MB / 3.365 GB, free: 35.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/10.6, allocations: 91.14 kB / 3.365 GB, free: 35.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/10.6, allocations: 43.66 kB / 3.365 GB, free: 35.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/10.6, allocations: 2.656 kB / 3.365 GB, free: 35.11 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00555/10.6, allocations: 1.439 MB / 3.366 GB, free: 35.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.469e-05/10.6, allocations: 7.031 kB / 3.366 GB, free: 35.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003325/10.61, allocations: 1.03 MB / 3.367 GB, free: 35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/10.61, allocations: 174.7 kB / 3.367 GB, free: 35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007451/10.62, allocations: 5.063 MB / 3.372 GB, free: 31.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/10.62, allocations: 85.95 kB / 3.372 GB, free: 31.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/10.62, allocations: 43.88 kB / 3.372 GB, free: 31.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 7,2 1,3 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007471/10.62, allocations: 324 kB / 3.373 GB, free: 30.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/10.62, allocations: 65.42 kB / 3.373 GB, free: 30.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009812/10.63, allocations: 4.546 MB / 3.377 GB, free: 28.81 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.902e-05/10.63, allocations: 46.25 kB / 3.377 GB, free: 28.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/10.63, allocations: 2.344 kB / 3.377 GB, free: 28.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/10.63, allocations: 5.281 kB / 3.377 GB, free: 28.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/10.64, allocations: 6.48 MB / 3.383 GB, free: 25.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/10.64, allocations: 0 / 3.383 GB, free: 25.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006765/10.64, allocations: 88.7 kB / 3.384 GB, free: 25.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006314/10.65, allocations: 2.277 MB / 3.386 GB, free: 25.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001987/10.65, allocations: 15 kB / 3.386 GB, free: 25.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007574/10.66, allocations: 4.072 MB / 3.39 GB, free: 22.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/10.66, allocations: 1.969 kB / 3.39 GB, free: 22.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007779/10.67, allocations: 3.401 MB / 3.393 GB, free: 21.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009281/10.67, allocations: 377.8 kB / 3.393 GB, free: 20.97 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/10.67, allocations: 11.12 kB / 3.393 GB, free: 20.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/10.67, allocations: 90.75 kB / 3.394 GB, free: 20.94 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/10.67, allocations: 68.7 kB / 3.394 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.945e-05/10.67, allocations: 28.73 kB / 3.394 GB, free: 20.93 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008333/10.67, allocations: 471.5 kB / 3.394 GB, free: 20.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.563e-06/10.67, allocations: 0 / 3.394 GB, free: 20.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00765/10.68, allocations: 1.436 MB / 3.396 GB, free: 20.26 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 29 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 1,3 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.01971/10.7, allocations: 5.127 MB / 3.401 GB, free: 15.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01182/10.71, allocations: 2.704 MB / 3.403 GB, free: 13.48 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/10.71, allocations: 0 / 3.403 GB, free: 13.48 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00516/10.72, allocations: 1.311 MB / 3.404 GB, free: 12.32 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002737/10.72, allocations: 285.2 kB / 3.405 GB, free: 12.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6517/11.37, allocations: 87.39 MB / 3.49 GB, free: 66.02 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008034/11.37, allocations: 1.214 MB / 3.491 GB, free: 65.31 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000757/11.37, allocations: 428.2 kB / 3.492 GB, free: 65.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.423e-06/11.37, allocations: 2.844 kB / 3.492 GB, free: 65.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.098/15.47, allocations: 52.8 MB / 3.543 GB, free: 62.36 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat does not exist to compare? outputFormat=mat