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.DynamicPipeClosingValve.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.492/2.492, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.221e-05/2.236e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3792, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.872/8.252, allocations: 2.654 GB / 3.004 GB, free: 96.11 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/8.252, allocations: 80.2 kB / 3.004 GB, free: 96.07 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.253/10.5, allocations: 459.2 MB / 3.453 GB, free: 23.39 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.124e-06/10.5, allocations: 0 / 3.453 GB, free: 23.39 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.757e-05/10.51, allocations: 31.94 kB / 3.453 GB, free: 23.36 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01027/10.52, allocations: 2.151 MB / 3.455 GB, free: 21.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/10.52, allocations: 8.031 kB / 3.455 GB, free: 21.15 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003859/10.52, allocations: 374.4 kB / 3.455 GB, free: 20.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003264/10.52, allocations: 0.89 MB / 3.456 GB, free: 19.87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.109e-05/10.52, allocations: 32 kB / 3.456 GB, free: 19.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001977/10.52, allocations: 44 kB / 3.456 GB, free: 19.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002254/10.53, allocations: 0.9215 MB / 3.457 GB, free: 18.87 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/10.53, allocations: 1.085 MB / 3.458 GB, free: 17.69 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/10.53, allocations: 0 / 3.458 GB, free: 17.69 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/10.53, allocations: 7.938 kB / 3.458 GB, free: 17.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/10.53, allocations: 65.89 kB / 3.458 GB, free: 17.62 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.73/11.26, allocations: 101.2 MB / 3.557 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/11.26, allocations: 478.5 kB / 3.558 GB, free: 27.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006051/11.26, allocations: 276.5 kB / 3.558 GB, free: 27.34 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05455/11.31, allocations: 16.76 MB / 3.574 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.309e-05/11.31, allocations: 46.44 kB / 3.574 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 5.52e-06/11.31, allocations: 0.5625 kB / 3.574 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.01159/11.33, allocations: 2.257 MB / 3.576 GB, free: 32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.576e-05/11.33, allocations: 142.3 kB / 3.577 GB, free: 31.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/11.33, allocations: 0.5596 MB / 3.577 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001937/11.33, allocations: 28.89 kB / 3.577 GB, free: 31.68 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/11.33, allocations: 491 kB / 3.578 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/11.33, allocations: 165.6 kB / 3.578 GB, free: 31.33 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/11.33, allocations: 0 / 3.578 GB, free: 31.33 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001515/11.33, allocations: 345 kB / 3.578 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007343/11.33, allocations: 322.9 kB / 3.578 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008683/11.33, allocations: 0.5227 MB / 3.579 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00702/11.34, allocations: 0.9443 MB / 3.58 GB, free: 30.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/11.34, allocations: 3.75 kB / 3.58 GB, free: 30.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.009198/11.35, allocations: 1.625 MB / 3.581 GB, free: 30.68 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001013/11.35, allocations: 2.274 MB / 3.584 GB, free: 28.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/11.35, allocations: 8.469 kB / 3.584 GB, free: 28.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003001/11.35, allocations: 467.4 kB / 3.584 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/11.35, allocations: 161.8 kB / 3.584 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/11.35, allocations: 1.356 MB / 3.586 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/11.36, allocations: 117.6 kB / 3.586 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/11.36, allocations: 40.77 kB / 3.586 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/11.36, allocations: 3.344 kB / 3.586 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00881/11.37, allocations: 1.487 MB / 3.587 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/11.37, allocations: 4.5 kB / 3.587 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/11.37, allocations: 376.4 kB / 3.588 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/11.37, allocations: 167 kB / 3.588 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/11.37, allocations: 1.068 MB / 3.589 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/11.37, allocations: 97.81 kB / 3.589 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/11.37, allocations: 41.12 kB / 3.589 GB, free: 27.14 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003674/11.37, allocations: 126.4 kB / 3.589 GB, free: 27.03 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003005/11.38, allocations: 0.7285 MB / 3.59 GB, free: 26.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002508/11.38, allocations: 83.11 kB / 3.59 GB, free: 26.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004228/11.38, allocations: 1.869 MB / 3.592 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.434e-05/11.38, allocations: 19.78 kB / 3.592 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/11.38, allocations: 0 / 3.592 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003403/11.38, allocations: 1.779 MB / 3.593 GB, free: 26.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006418/11.39, allocations: 2.84 MB / 3.596 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/11.39, allocations: 2.438 kB / 3.596 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009549/11.39, allocations: 122 kB / 3.596 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004001/11.39, allocations: 85.42 kB / 3.596 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.027e-05/11.39, allocations: 18.88 kB / 3.596 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006503/11.39, allocations: 0.6738 MB / 3.597 GB, free: 25.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/11.39, allocations: 3.969 kB / 3.597 GB, free: 25.39 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004363/11.4, allocations: 1.965 MB / 3.599 GB, free: 25.06 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008444/11.4, allocations: 260.9 kB / 3.599 GB, free: 24.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/11.4, allocations: 7.734 kB / 3.599 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/11.4, allocations: 63.12 kB / 3.599 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/11.4, allocations: 44.56 kB / 3.599 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/11.4, allocations: 22.44 kB / 3.599 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008268/11.4, allocations: 429.8 kB / 3.6 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.81e-07/11.4, allocations: 0 / 3.6 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00846/11.41, allocations: 1.632 MB / 3.601 GB, free: 24.81 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01716/11.43, allocations: 4.736 MB / 3.606 GB, free: 23.53 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003505/11.43, allocations: 1.386 MB / 3.607 GB, free: 23.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/11.43, allocations: 0 / 3.607 GB, free: 23.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001369/11.43, allocations: 0.5904 MB / 3.608 GB, free: 23.51 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003051/11.43, allocations: 322.7 kB / 3.608 GB, free: 23.49 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00948/11.44, allocations: 2.472 MB / 3.611 GB, free: 22.87 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009045/11.45, allocations: 1.163 MB / 3.612 GB, free: 22.15 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009325/11.45, allocations: 403.9 kB / 3.612 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of SimCode: time 2.285e-06/11.45, allocations: 3.188 kB / 3.612 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.107/15.55, allocations: 46.84 MB / 3.658 GB, free: 5.688 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat