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.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004252/0.0004254, allocations: 11.98 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3437, allocations: 48.71 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.1349/0.4787, allocations: 77.01 MB / 408.3 MB, free: 1.328 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06748/0.5462, allocations: 32.53 MB / 440.8 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003009/0.5492, allocations: 91.31 kB / 440.9 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004943/0.5542, allocations: 1.085 MB / 442 MB, free: 15.55 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02616/0.5804, allocations: 6.163 MB / 448.2 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02729/0.6077, allocations: 7.019 MB / 455.2 MB, free: 2.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009902/0.6177, allocations: 4.516 MB / 459.7 MB, free: 13.82 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002871/0.6206, allocations: 1.221 MB / 460.9 MB, free: 12.57 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006534/0.6272, allocations: 2.056 MB / 463 MB, free: 10.51 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.37/0.9972, allocations: 20.74 MB / 483.7 MB, free: 22.58 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007902/0.9981, allocations: 106.3 kB / 483.8 MB, free: 22.58 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02652/1.025, allocations: 9.88 MB / 493.7 MB, free: 22.56 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001708/1.026, allocations: 0.7497 MB / 494.4 MB, free: 22.56 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/1.028, allocations: 0.5138 MB / 495 MB, free: 22.53 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01591/1.043, allocations: 6.449 MB / 0.4897 GB, free: 22.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/1.043, allocations: 1.688 kB / 0.4897 GB, free: 22.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.895e-06/1.044, allocations: 0 / 0.4897 GB, free: 22.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001038/1.044, allocations: 0 / 0.4897 GB, free: 22.12 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.01304/1.057, allocations: 3.521 MB / 0.4931 GB, free: 20.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/1.057, allocations: 8.562 kB / 0.4931 GB, free: 20.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009618/1.058, allocations: 294.1 kB / 0.4934 GB, free: 20.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007578/1.065, allocations: 0.8152 MB / 0.4942 GB, free: 20.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004666/1.07, allocations: 1.564 MB / 0.4957 GB, free: 19.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/1.07, allocations: 179.8 kB / 0.4959 GB, free: 19.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006727/1.071, allocations: 203.7 kB / 0.4961 GB, free: 19.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/1.082, allocations: 3.502 MB / 0.4995 GB, free: 18.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.223e-05/1.082, allocations: 12.94 kB / 0.4995 GB, free: 18.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003396/1.083, allocations: 79.62 kB / 0.4996 GB, free: 18.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003526/1.083, allocations: 187.4 kB / 0.4998 GB, free: 18.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/1.095, allocations: 3.273 MB / 0.503 GB, free: 15.99 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.0263/1.121, allocations: 14.97 MB / 0.5176 GB, free: 2.188 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008124/1.13, allocations: 2.311 MB / 0.5198 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06425/1.194, allocations: 19 MB / 0.5384 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006547/1.201, allocations: 1.622 MB / 0.54 GB, free: 10.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 4.859e-06/1.201, allocations: 0 / 0.54 GB, free: 10.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=169): time 0.03096/1.232, allocations: 8.137 MB / 0.5479 GB, free: 4.289 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/1.232, allocations: 238.1 kB / 0.5481 GB, free: 4.012 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003097/1.235, allocations: 1.569 MB / 0.5497 GB, free: 2.836 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003257/1.235, allocations: 61.62 kB / 0.5497 GB, free: 2.797 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009553/1.236, allocations: 0.9572 MB / 0.5507 GB, free: 2.148 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008437/1.237, allocations: 0.5807 MB / 0.5512 GB, free: 1.656 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/1.237, allocations: 42.12 kB / 0.5513 GB, free: 1.648 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002188/1.237, allocations: 396.5 kB / 0.5517 GB, free: 1.285 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003758/1.241, allocations: 1.13 MB / 0.5528 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00414/1.245, allocations: 1.676 MB / 0.5544 GB, free: 15.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004291/1.25, allocations: 1.378 MB / 0.5557 GB, free: 14.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.967e-05/1.25, allocations: 4 kB / 0.5557 GB, free: 14.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01177/1.262, allocations: 3.849 MB / 0.5595 GB, free: 11.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004783/1.262, allocations: 0.5465 MB / 0.56 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.382e-05/1.262, allocations: 16 kB / 0.5601 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02655/1.289, allocations: 2.977 MB / 0.563 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/1.291, allocations: 325.1 kB / 0.5633 GB, free: 7.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009718/1.301, allocations: 3.479 MB / 0.5667 GB, free: 5.398 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/1.305, allocations: 259.2 kB / 0.5669 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/1.305, allocations: 105.8 kB / 0.567 GB, free: 5.098 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/1.305, allocations: 7.125 kB / 0.567 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0119/1.317, allocations: 3.62 MB / 0.5706 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.661e-05/1.317, allocations: 19.95 kB / 0.5706 GB, free: 2.637 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/1.329, allocations: 1.702 MB / 0.5722 GB, free: 1.191 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002653/1.331, allocations: 376.4 kB / 0.5726 GB, free: 0.8633 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007374/1.339, allocations: 2.753 MB / 0.5753 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003104/1.342, allocations: 263.1 kB / 0.5755 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003553/1.342, allocations: 100.4 kB / 0.5756 GB, free: 14.49 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.002129/1.345, allocations: 0.7187 MB / 0.5763 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006594/1.345, allocations: 197.6 kB / 0.5765 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01771/1.363, allocations: 7.743 MB / 0.5841 GB, free: 8.496 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/1.363, allocations: 91.78 kB / 0.5842 GB, free: 8.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/1.363, allocations: 0 / 0.5842 GB, free: 8.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01409/1.377, allocations: 6.647 MB / 0.5907 GB, free: 3.867 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02388/1.401, allocations: 10.86 MB / 0.6013 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/1.401, allocations: 0 / 0.6013 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003361/1.405, allocations: 403.5 kB / 0.6017 GB, free: 12.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/1.407, allocations: 378.7 kB / 0.602 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004261/1.408, allocations: 58.41 kB / 0.6021 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00227/1.41, allocations: 2.573 MB / 0.6046 GB, free: 9.582 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/1.41, allocations: 3.984 kB / 0.6046 GB, free: 9.578 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01689/1.427, allocations: 7.152 MB / 0.6116 GB, free: 4.746 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002238/1.429, allocations: 0.7344 MB / 0.6123 GB, free: 4.117 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008096/1.43, allocations: 50.92 kB / 0.6123 GB, free: 4.098 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/1.433, allocations: 196.3 kB / 0.6125 GB, free: 3.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004729/1.433, allocations: 146.7 kB / 0.6127 GB, free: 3.801 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002192/1.434, allocations: 66.47 kB / 0.6127 GB, free: 3.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002554/1.436, allocations: 1.164 MB / 0.6139 GB, free: 2.871 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.436, allocations: 0 / 0.6139 GB, free: 2.871 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01024/1.446, allocations: 2.563 MB / 0.6164 GB, free: 336 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.02972/1.476, allocations: 9.723 MB / 0.6259 GB, free: 6.688 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01633/1.493, allocations: 5.331 MB / 0.6311 GB, free: 1.391 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.493, allocations: 4 kB / 0.6311 GB, free: 1.387 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005955/1.499, allocations: 2.405 MB / 0.6334 GB, free: 15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007698/1.506, allocations: 0.8711 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.02788/1.534, allocations: 11.55 MB / 0.6455 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002722/1.537, allocations: 2.26 MB / 0.6478 GB, free: 36 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3045/1.842, allocations: 1.302 MB / 0.649 GB, free: 216.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.663e-06/1.842, allocations: 0 / 0.649 GB, free: 216.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.649/7.49, 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.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat