Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.0004342, allocations: 19.98 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.352, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.337/2.689, allocations: 0.6878 GB / 1.049 GB, free: 125.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/2.689, allocations: 81.33 kB / 1.049 GB, free: 125.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.382/6.071, allocations: 0.6156 GB / 1.664 GB, free: 39.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.846e-06/6.071, allocations: 0 / 1.664 GB, free: 39.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003475/6.071, allocations: 64.38 kB / 1.664 GB, free: 39.18 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01643/6.088, allocations: 3.503 MB / 1.668 GB, free: 37.51 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/6.088, allocations: 11.47 kB / 1.668 GB, free: 37.51 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001643/6.09, allocations: 259.5 kB / 1.668 GB, free: 37.46 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0052/6.095, allocations: 466.1 kB / 1.668 GB, free: 37.34 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009586/6.104, allocations: 2.016 MB / 1.67 GB, free: 36.88 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002722/6.105, allocations: 145.9 kB / 1.67 GB, free: 36.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/6.106, allocations: 174.1 kB / 1.671 GB, free: 36.87 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009282/6.115, allocations: 2.74 MB / 1.673 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.242e-05/6.116, allocations: 6.656 kB / 1.673 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004862/6.116, allocations: 77.8 kB / 1.673 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003135/6.116, allocations: 159.6 kB / 1.674 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008068/6.124, allocations: 2.341 MB / 1.676 GB, free: 36.39 MB / 0.4948 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.0279/6.152, allocations: 11.54 MB / 1.687 GB, free: 30.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005674/6.158, allocations: 1.869 MB / 1.689 GB, free: 29.84 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001638/6.16, allocations: 462.5 kB / 1.689 GB, free: 29.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003681/6.164, allocations: 1.228 MB / 1.691 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=172): time 7.003e-06/6.164, allocations: 0 / 1.691 GB, free: 29.43 MB / 0.4948 GB 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: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.05722/6.221, allocations: 12.2 MB / 1.703 GB, free: 27.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/6.221, allocations: 261.5 kB / 1.703 GB, free: 27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003353/6.224, allocations: 1.397 MB / 1.704 GB, free: 26.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007651/6.225, allocations: 66.77 kB / 1.704 GB, free: 26.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009945/6.226, allocations: 0.8618 MB / 1.705 GB, free: 26.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001346/6.228, allocations: 0.6761 MB / 1.706 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003665/6.228, allocations: 43.09 kB / 1.706 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002166/6.228, allocations: 403.2 kB / 1.706 GB, free: 25.64 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003549/6.232, allocations: 1.086 MB / 1.707 GB, free: 25.63 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004209/6.236, allocations: 1.576 MB / 1.709 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004196/6.24, allocations: 1.367 MB / 1.71 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-05/6.24, allocations: 6.156 kB / 1.71 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.01137/6.252, allocations: 3.2 MB / 1.713 GB, free: 24.79 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00121/6.253, allocations: 4.691 MB / 1.718 GB, free: 19.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.338e-05/6.253, allocations: 10.59 kB / 1.718 GB, free: 19.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/6.254, allocations: 303.7 kB / 1.718 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00498/6.259, allocations: 0.5748 MB / 1.719 GB, free: 19.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003106/6.263, allocations: 3.007 MB / 1.722 GB, free: 32.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004611/6.267, allocations: 218.3 kB / 1.722 GB, free: 32.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/6.268, allocations: 208.4 kB / 1.722 GB, free: 32.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/6.269, allocations: 3.938 kB / 1.722 GB, free: 32.87 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01057/6.279, allocations: 3.054 MB / 1.725 GB, free: 31.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.723e-05/6.279, allocations: 12.88 kB / 1.725 GB, free: 31.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/6.28, allocations: 302.3 kB / 1.725 GB, free: 31.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004644/6.285, allocations: 0.5658 MB / 1.726 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/6.288, allocations: 3.004 MB / 1.729 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003695/6.292, allocations: 217.5 kB / 1.729 GB, free: 28.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/6.293, allocations: 210 kB / 1.729 GB, free: 28.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002884/6.296, allocations: 0.7007 MB / 1.73 GB, free: 28.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009777/6.297, allocations: 225 kB / 1.73 GB, free: 28.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/6.312, allocations: 3.797 MB / 1.734 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/6.313, allocations: 21.88 kB / 1.734 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/6.313, allocations: 7.938 kB / 1.734 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008823/6.321, allocations: 2.956 MB / 1.737 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02353/6.345, allocations: 7.06 MB / 1.744 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.934e-05/6.345, allocations: 4 kB / 1.744 GB, free: 20.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003948/6.349, allocations: 462.7 kB / 1.744 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/6.351, allocations: 322 kB / 1.744 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007501/6.351, allocations: 112.6 kB / 1.744 GB, free: 20 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004239/6.356, allocations: 3.765 MB / 1.748 GB, free: 16.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/6.356, allocations: 11.94 kB / 1.748 GB, free: 16.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01356/6.369, allocations: 4.967 MB / 1.753 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002388/6.372, allocations: 0.5523 MB / 1.753 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/6.373, allocations: 59.75 kB / 1.754 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00343/6.376, allocations: 135.7 kB / 1.754 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008285/6.377, allocations: 185.6 kB / 1.754 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006092/6.378, allocations: 183.1 kB / 1.754 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002603/6.38, allocations: 1.069 MB / 1.755 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.71e-07/6.38, allocations: 0 / 1.755 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01215/6.393, allocations: 2.068 MB / 1.757 GB, free: 7.594 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02689/6.42, allocations: 9.561 MB / 1.766 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01582/6.435, allocations: 4.656 MB / 1.771 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/6.436, allocations: 4 kB / 1.771 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005491/6.441, allocations: 1.66 MB / 1.773 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009386/6.45, allocations: 1.047 MB / 1.774 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4542/6.905, allocations: 17.57 MB / 1.791 GB, free: 57.57 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002975/6.908, allocations: 1.743 MB / 1.792 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004071/6.912, allocations: 1.093 MB / 1.794 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of SimCode: time 1.182e-06/6.912, allocations: 0 / 1.794 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.859/11.77, allocations: 105.1 MB / 1.896 GB, free: 45.67 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat