Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.987/1.987, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000642/0.0006421, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3416, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1217/0.4633, allocations: 77.01 MB / 408.3 MB, free: 1.328 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06618/0.5295, allocations: 32.53 MB / 440.8 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00316/0.5327, allocations: 91.31 kB / 440.9 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004882/0.5377, allocations: 1.085 MB / 442 MB, free: 15.56 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02571/0.5634, allocations: 6.167 MB / 448.2 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02747/0.5909, allocations: 7.016 MB / 455.2 MB, free: 2.348 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.6011, allocations: 4.516 MB / 459.7 MB, free: 13.82 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002999/0.6041, allocations: 1.221 MB / 460.9 MB, free: 12.58 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00667/0.6108, allocations: 2.064 MB / 463 MB, free: 10.51 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3658/0.9767, allocations: 20.73 MB / 483.7 MB, free: 22.6 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009564/0.9777, allocations: 105.4 kB / 483.8 MB, free: 22.6 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02651/1.004, allocations: 9.891 MB / 493.7 MB, free: 22.58 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001776/1.006, allocations: 0.7407 MB / 494.4 MB, free: 22.57 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001174/1.007, allocations: 0.5214 MB / 495 MB, free: 22.54 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01583/1.023, allocations: 6.446 MB / 0.4897 GB, free: 22.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/1.023, allocations: 0 / 0.4897 GB, free: 22.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.915e-06/1.023, allocations: 0 / 0.4897 GB, free: 22.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001107/1.023, allocations: 0 / 0.4897 GB, free: 22.14 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01333/1.037, allocations: 3.518 MB / 0.4931 GB, free: 20.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/1.037, allocations: 11.38 kB / 0.4931 GB, free: 20.46 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001007/1.038, allocations: 289.9 kB / 0.4934 GB, free: 20.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007702/1.045, allocations: 0.814 MB / 0.4942 GB, free: 20.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004672/1.05, allocations: 1.57 MB / 0.4957 GB, free: 19.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00029/1.05, allocations: 178.7 kB / 0.4959 GB, free: 19.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007269/1.051, allocations: 197.2 kB / 0.4961 GB, free: 19.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/1.063, allocations: 3.51 MB / 0.4995 GB, free: 18.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.87e-05/1.063, allocations: 6.906 kB / 0.4995 GB, free: 18.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003819/1.064, allocations: 83.23 kB / 0.4996 GB, free: 18.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003629/1.064, allocations: 189.5 kB / 0.4998 GB, free: 18.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/1.077, allocations: 3.277 MB / 0.503 GB, free: 16.01 MB / 394.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.02837/1.105, allocations: 14.96 MB / 0.5176 GB, free: 2.207 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008649/1.114, allocations: 2.315 MB / 0.5198 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06675/1.181, allocations: 19 MB / 0.5384 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006953/1.188, allocations: 1.623 MB / 0.54 GB, free: 10.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 5.821e-06/1.188, allocations: 0 / 0.54 GB, free: 10.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=169): time 0.03532/1.223, allocations: 8.143 MB / 0.5479 GB, free: 4.305 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/1.223, allocations: 230.9 kB / 0.5481 GB, free: 4.031 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/1.227, allocations: 1.573 MB / 0.5497 GB, free: 2.855 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004926/1.227, allocations: 56.77 kB / 0.5497 GB, free: 2.816 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/1.228, allocations: 0.9566 MB / 0.5507 GB, free: 2.168 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/1.229, allocations: 0.5829 MB / 0.5512 GB, free: 1.676 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/1.23, allocations: 39.75 kB / 0.5513 GB, free: 1.668 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002299/1.23, allocations: 397.4 kB / 0.5516 GB, free: 1.305 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003965/1.234, allocations: 1.131 MB / 0.5528 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004715/1.239, allocations: 1.675 MB / 0.5544 GB, free: 15.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004584/1.243, allocations: 1.376 MB / 0.5557 GB, free: 14.17 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.568e-05/1.243, allocations: 4 kB / 0.5557 GB, free: 14.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01299/1.256, allocations: 3.849 MB / 0.5595 GB, free: 11.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004876/1.257, allocations: 0.5477 MB / 0.56 GB, free: 10.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/1.257, allocations: 16 kB / 0.56 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02772/1.285, allocations: 2.973 MB / 0.5629 GB, free: 8.234 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/1.287, allocations: 331.5 kB / 0.5633 GB, free: 7.949 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/1.3, allocations: 3.481 MB / 0.5667 GB, free: 5.418 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004299/1.304, allocations: 255.9 kB / 0.5669 GB, free: 5.199 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006471/1.305, allocations: 104.2 kB / 0.567 GB, free: 5.117 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/1.305, allocations: 7.359 kB / 0.567 GB, free: 5.113 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01404/1.319, allocations: 3.621 MB / 0.5706 GB, free: 2.676 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.845e-05/1.319, allocations: 19.95 kB / 0.5706 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01246/1.332, allocations: 1.703 MB / 0.5722 GB, free: 1.211 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/1.334, allocations: 374.4 kB / 0.5726 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007603/1.342, allocations: 2.755 MB / 0.5753 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003122/1.345, allocations: 256.5 kB / 0.5755 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004198/1.346, allocations: 101.1 kB / 0.5756 GB, free: 14.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002145/1.348, allocations: 0.7239 MB / 0.5763 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007037/1.349, allocations: 196.9 kB / 0.5765 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01832/1.367, allocations: 7.739 MB / 0.5841 GB, free: 8.523 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001181/1.367, allocations: 92.3 kB / 0.5842 GB, free: 8.457 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.367, allocations: 0 / 0.5842 GB, free: 8.457 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01469/1.382, allocations: 6.641 MB / 0.5906 GB, free: 3.895 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02453/1.406, allocations: 10.86 MB / 0.6013 GB, free: 12.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/1.406, allocations: 0 / 0.6013 GB, free: 12.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003486/1.41, allocations: 403.2 kB / 0.6016 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002516/1.412, allocations: 384.5 kB / 0.602 GB, free: 12.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004482/1.413, allocations: 59.91 kB / 0.6021 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/1.415, allocations: 2.57 MB / 0.6046 GB, free: 9.605 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/1.415, allocations: 0 / 0.6046 GB, free: 9.605 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01758/1.433, allocations: 7.159 MB / 0.6116 GB, free: 4.77 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002186/1.435, allocations: 0.736 MB / 0.6123 GB, free: 4.137 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008097/1.436, allocations: 52.97 kB / 0.6123 GB, free: 4.117 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003053/1.439, allocations: 197.5 kB / 0.6125 GB, free: 3.949 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005985/1.44, allocations: 144.7 kB / 0.6127 GB, free: 3.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/1.44, allocations: 65.41 kB / 0.6127 GB, free: 3.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002764/1.443, allocations: 1.165 MB / 0.6139 GB, free: 2.891 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.443, allocations: 0 / 0.6139 GB, free: 2.891 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01057/1.453, allocations: 2.564 MB / 0.6164 GB, free: 344 kB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04244/1.496, allocations: 9.724 MB / 0.6259 GB, free: 6.691 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02237/1.518, allocations: 5.336 MB / 0.6311 GB, free: 1.395 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/1.518, allocations: 4 kB / 0.6311 GB, free: 1.391 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006281/1.525, allocations: 2.404 MB / 0.6334 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008055/1.533, allocations: 0.8723 MB / 0.6343 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02948/1.562, allocations: 11.54 MB / 0.6455 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003241/1.565, allocations: 2.26 MB / 0.6478 GB, free: 44 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2757/1.841, allocations: 1.299 MB / 0.649 GB, free: 216.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.003e-06/1.841, allocations: 0 / 0.649 GB, free: 216.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.028/6.869, allocations: 106.5 MB / 0.753 GB, free: 133 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat