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.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.873/1.873, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004317, allocations: 23.94 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3362, allocations: 48.69 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.08694/0.4232, allocations: 55.14 MB / 386.4 MB, free: 7.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05207/0.4753, allocations: 25.82 MB / 412.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002099/0.4775, allocations: 67.5 kB / 412.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.4808, allocations: 0.7739 MB / 413.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02114/0.502, allocations: 5.053 MB / 418.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02229/0.5243, allocations: 5.5 MB / 423.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007115/0.5315, allocations: 2.996 MB / 426.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001945/0.5335, allocations: 0.8123 MB / 427.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004459/0.538, allocations: 1.394 MB / 428.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.031/0.569, allocations: 12.03 MB / 440.9 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004655/0.5695, allocations: 68 kB / 440.9 MB, free: 0.625 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02601/0.5956, allocations: 9.056 MB / 450 MB, free: 7.559 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.5967, allocations: 494.5 kB / 450.5 MB, free: 7.074 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007155/0.5974, allocations: 348.8 kB / 450.8 MB, free: 6.727 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01399/0.6114, allocations: 5.169 MB / 456 MB, free: 1.547 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.6115, allocations: 4 kB / 456 MB, free: 1.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6115, allocations: 0 / 456 MB, free: 1.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.6115, allocations: 0 / 456 MB, free: 1.543 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.009235/0.6208, allocations: 2.597 MB / 458.6 MB, free: 14.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.6209, allocations: 12.03 kB / 458.6 MB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004928/0.6214, allocations: 198 kB / 458.8 MB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005101/0.6265, allocations: 0.517 MB / 459.3 MB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00341/0.6299, allocations: 1.097 MB / 460.4 MB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/0.6302, allocations: 106.4 kB / 460.5 MB, free: 12.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003768/0.6306, allocations: 128 kB / 460.6 MB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007558/0.6381, allocations: 2.231 MB / 462.9 MB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.828e-05/0.6382, allocations: 7.953 kB / 462.9 MB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002125/0.6385, allocations: 47.98 kB / 462.9 MB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002796/0.6388, allocations: 118.2 kB / 463 MB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007673/0.6465, allocations: 2.046 MB / 465.1 MB, free: 8.203 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.3068/0.9532, allocations: 9.572 MB / 474.6 MB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007996/0.9613, allocations: 1.368 MB / 476 MB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06361/1.025, allocations: 18.98 MB / 495 MB, free: 103.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004107/1.029, allocations: 1.022 MB / 496 MB, free: 102.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=94): time 5.32e-06/1.029, allocations: 0 / 496 MB, free: 102.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=102): time 0.02006/1.049, allocations: 5.109 MB / 0.4894 GB, free: 99.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/1.049, allocations: 226.2 kB / 0.4896 GB, free: 99.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/1.051, allocations: 1.073 MB / 0.4906 GB, free: 99.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/1.051, allocations: 45.8 kB / 0.4907 GB, free: 99.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005013/1.052, allocations: 0.6645 MB / 0.4913 GB, free: 98.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/1.052, allocations: 353.8 kB / 0.4917 GB, free: 98.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/1.052, allocations: 29.09 kB / 0.4917 GB, free: 98.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/1.053, allocations: 362.9 kB / 0.492 GB, free: 97.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/1.055, allocations: 0.6708 MB / 0.4927 GB, free: 97.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/1.057, allocations: 1.023 MB / 0.4937 GB, free: 96.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/1.059, allocations: 0.8342 MB / 0.4945 GB, free: 96.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/1.059, allocations: 0 / 0.4945 GB, free: 96.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005661/1.065, allocations: 1.951 MB / 0.4964 GB, free: 95.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002123/1.065, allocations: 411.3 kB / 0.4968 GB, free: 94.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.147e-05/1.065, allocations: 12 kB / 0.4968 GB, free: 94.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000759/1.066, allocations: 149.5 kB / 0.497 GB, free: 94.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/1.068, allocations: 331.6 kB / 0.4973 GB, free: 94.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009418/1.069, allocations: 1.253 MB / 0.4985 GB, free: 92.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/1.072, allocations: 155.8 kB / 0.4987 GB, free: 92.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/1.072, allocations: 63.98 kB / 0.4987 GB, free: 92.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/1.072, allocations: 9.25 kB / 0.4987 GB, free: 92.61 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005322/1.077, allocations: 1.86 MB / 0.5005 GB, free: 90.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.195e-05/1.077, allocations: 12.09 kB / 0.5006 GB, free: 90.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007101/1.078, allocations: 146.5 kB / 0.5007 GB, free: 90.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002415/1.08, allocations: 335.5 kB / 0.501 GB, free: 90.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009014/1.081, allocations: 1.249 MB / 0.5022 GB, free: 88.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/1.083, allocations: 159.9 kB / 0.5024 GB, free: 88.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/1.083, allocations: 59.98 kB / 0.5024 GB, free: 88.74 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.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 (158): * Single equations (assignments): 153 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001126/1.084, allocations: 0.5325 MB / 0.503 GB, free: 88.19 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003358/1.085, allocations: 141.3 kB / 0.5031 GB, free: 88.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008777/1.094, allocations: 4.719 MB / 0.5077 GB, free: 83.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/1.094, allocations: 55.91 kB / 0.5078 GB, free: 83.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/1.094, allocations: 7.938 kB / 0.5078 GB, free: 83.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006924/1.101, allocations: 3.944 MB / 0.5116 GB, free: 79.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/1.113, allocations: 6.687 MB / 0.5181 GB, free: 72.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/1.113, allocations: 0 / 0.5181 GB, free: 72.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/1.114, allocations: 242 kB / 0.5184 GB, free: 72.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/1.116, allocations: 193.4 kB / 0.5186 GB, free: 72.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000169/1.116, allocations: 43.94 kB / 0.5186 GB, free: 71.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008526/1.117, allocations: 1.284 MB / 0.5199 GB, free: 70.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.117, allocations: 0 / 0.5199 GB, free: 70.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008346/1.125, allocations: 4.316 MB / 0.5241 GB, free: 66.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/1.126, allocations: 0.5208 MB / 0.5246 GB, free: 65.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004199/1.127, allocations: 24 kB / 0.5246 GB, free: 65.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/1.128, allocations: 123.7 kB / 0.5247 GB, free: 65.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/1.128, allocations: 92.83 kB / 0.5248 GB, free: 65.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/1.129, allocations: 39.98 kB / 0.5248 GB, free: 65.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001451/1.13, allocations: 0.841 MB / 0.5257 GB, free: 64.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.13, allocations: 0 / 0.5257 GB, free: 64.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006383/1.136, allocations: 2.035 MB / 0.5277 GB, free: 62.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($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,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * 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 (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01765/1.154, allocations: 6.62 MB / 0.5341 GB, free: 56.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00792/1.162, allocations: 3.183 MB / 0.5372 GB, free: 53.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.162, allocations: 4 kB / 0.5372 GB, free: 53.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002858/1.165, allocations: 1.444 MB / 0.5386 GB, free: 51.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/1.17, allocations: 0.5703 MB / 0.5392 GB, free: 51.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/1.184, allocations: 7.654 MB / 0.5467 GB, free: 43.48 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/1.186, allocations: 1.697 MB / 0.5483 GB, free: 41.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001616/1.187, allocations: 0.8507 MB / 0.5492 GB, free: 40.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/1.187, allocations: 0 / 0.5492 GB, free: 40.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.543/6.731, allocations: 74.77 MB / 0.6222 GB, free: 140.9 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat