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.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.29/2.29, allocations: 234.9 MB / 250.5 MB, free: 10.67 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004381/0.0004383, allocations: 16 kB / 314.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3403, allocations: 54.87 MB / 369.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1241/0.4645, allocations: 77.65 MB / 446.9 MB, free: 13.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.4046/0.8692, allocations: 32.7 MB / 479.6 MB, free: 6.711 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003024/0.8722, allocations: 97.19 kB / 479.7 MB, free: 6.711 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004715/0.877, allocations: 1.083 MB / 480.8 MB, free: 6.711 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02438/0.9014, allocations: 6.25 MB / 487 MB, free: 6.629 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0264/0.9279, allocations: 7.058 MB / 494.1 MB, free: 6.535 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009339/0.9372, allocations: 4.565 MB / 498.7 MB, free: 6.527 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002797/0.9401, allocations: 1.234 MB / 499.9 MB, free: 6.406 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006494/0.9466, allocations: 2.072 MB / 0.4902 GB, free: 6.402 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05126/0.9979, allocations: 20.96 MB / 0.5107 GB, free: 13.66 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009039/0.9989, allocations: 104 kB / 0.5108 GB, free: 13.56 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0304/1.029, allocations: 10.04 MB / 0.5206 GB, free: 5.762 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00203/1.031, allocations: 0.7553 MB / 0.5213 GB, free: 5.273 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00175/1.033, allocations: 0.5137 MB / 0.5218 GB, free: 4.973 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01807/1.051, allocations: 6.51 MB / 0.5282 GB, free: 15.42 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.051, allocations: 0 / 0.5282 GB, free: 15.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.051, allocations: 4 kB / 0.5282 GB, free: 15.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001107/1.051, allocations: 3.844 kB / 0.5282 GB, free: 15.42 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.0139/1.065, allocations: 3.594 MB / 0.5317 GB, free: 12.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/1.065, allocations: 12.03 kB / 0.5317 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/1.066, allocations: 294.1 kB / 0.532 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008115/1.075, allocations: 0.8397 MB / 0.5328 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00506/1.08, allocations: 1.574 MB / 0.5343 GB, free: 9.883 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/1.08, allocations: 179.6 kB / 0.5345 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007833/1.081, allocations: 198.9 kB / 0.5347 GB, free: 9.652 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/1.093, allocations: 3.507 MB / 0.5381 GB, free: 6.914 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.068e-05/1.093, allocations: 13.16 kB / 0.5381 GB, free: 6.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003386/1.093, allocations: 77.8 kB / 0.5382 GB, free: 6.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003926/1.094, allocations: 186.9 kB / 0.5384 GB, free: 6.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/1.106, allocations: 3.288 MB / 0.5416 GB, free: 4.367 MB / 426.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.03014/1.136, allocations: 14.98 MB / 0.5562 GB, free: 6.547 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009088/1.146, allocations: 2.303 MB / 0.5585 GB, free: 4.891 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06406/1.21, allocations: 19.04 MB / 0.5771 GB, free: 15.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006848/1.217, allocations: 1.62 MB / 0.5787 GB, free: 14.73 MB / 474.7 MB Notification: Performance of pre-optimization done (n=155): time 5.43e-06/1.217, allocations: 0 / 0.5787 GB, free: 14.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=171): time 0.03338/1.25, allocations: 8.153 MB / 0.5866 GB, free: 8.602 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/1.25, allocations: 234 kB / 0.5868 GB, free: 8.328 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003288/1.254, allocations: 1.576 MB / 0.5884 GB, free: 7.148 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004505/1.254, allocations: 58.64 kB / 0.5884 GB, free: 7.109 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/1.255, allocations: 0.9479 MB / 0.5894 GB, free: 6.473 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000988/1.256, allocations: 0.584 MB / 0.5899 GB, free: 5.973 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/1.256, allocations: 44.81 kB / 0.59 GB, free: 5.961 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002381/1.257, allocations: 398 kB / 0.5904 GB, free: 5.598 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/1.26, allocations: 1.146 MB / 0.5915 GB, free: 4.816 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004491/1.265, allocations: 1.671 MB / 0.5931 GB, free: 3.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00448/1.27, allocations: 1.386 MB / 0.5945 GB, free: 2.453 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-05/1.27, allocations: 8 kB / 0.5945 GB, free: 2.445 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0129/1.282, allocations: 3.831 MB / 0.5982 GB, free: 15.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004999/1.283, allocations: 0.5603 MB / 0.5988 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.167e-05/1.283, allocations: 16 kB / 0.5988 GB, free: 15.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02679/1.31, allocations: 2.976 MB / 0.6017 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002336/1.312, allocations: 328 kB / 0.602 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/1.323, allocations: 3.484 MB / 0.6054 GB, free: 9.695 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003775/1.326, allocations: 262 kB / 0.6056 GB, free: 9.473 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005433/1.327, allocations: 111 kB / 0.6057 GB, free: 9.387 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/1.327, allocations: 0 / 0.6057 GB, free: 9.387 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01208/1.339, allocations: 3.561 MB / 0.6092 GB, free: 7.008 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.47e-05/1.339, allocations: 16 kB / 0.6092 GB, free: 6.992 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/1.351, allocations: 1.715 MB / 0.6109 GB, free: 5.535 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/1.354, allocations: 370.7 kB / 0.6113 GB, free: 5.215 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007423/1.361, allocations: 2.756 MB / 0.614 GB, free: 3.141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/1.364, allocations: 258.6 kB / 0.6142 GB, free: 2.918 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000383/1.365, allocations: 104 kB / 0.6143 GB, free: 2.836 MB / 490.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: 23 (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,valveOpening1.nextEventScaled,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.002022/1.367, allocations: 0.7234 MB / 0.615 GB, free: 2.32 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006258/1.367, allocations: 197.6 kB / 0.6152 GB, free: 2.125 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01837/1.386, allocations: 7.74 MB / 0.6228 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001301/1.386, allocations: 91.86 kB / 0.6228 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/1.386, allocations: 0 / 0.6228 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.015/1.401, allocations: 6.642 MB / 0.6293 GB, free: 3.559 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.025/1.426, allocations: 10.87 MB / 0.64 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/1.426, allocations: 0 / 0.64 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003321/1.429, allocations: 397.5 kB / 0.6403 GB, free: 8.215 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002476/1.432, allocations: 378.9 kB / 0.6407 GB, free: 7.832 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004283/1.432, allocations: 63.97 kB / 0.6408 GB, free: 7.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002355/1.435, allocations: 2.581 MB / 0.6433 GB, free: 5.094 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.435, allocations: 0 / 0.6433 GB, free: 5.094 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/1.453, allocations: 7.16 MB / 0.6503 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002186/1.455, allocations: 0.7377 MB / 0.651 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007498/1.456, allocations: 51.98 kB / 0.651 GB, free: 13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00283/1.459, allocations: 198.5 kB / 0.6512 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005234/1.459, allocations: 145.8 kB / 0.6514 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/1.459, allocations: 63.97 kB / 0.6514 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002733/1.462, allocations: 1.167 MB / 0.6526 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.02e-07/1.462, allocations: 0 / 0.6526 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01026/1.472, allocations: 2.584 MB / 0.6551 GB, free: 8.836 MB / 0.5261 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (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 (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.3251/1.798, allocations: 9.72 MB / 0.6646 GB, free: 225.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01639/1.814, allocations: 5.413 MB / 0.6699 GB, free: 225.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/1.814, allocations: 1.531 kB / 0.6699 GB, free: 225.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005651/1.82, allocations: 2.434 MB / 0.6722 GB, free: 224 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007186/1.827, allocations: 0.8726 MB / 0.6731 GB, free: 223.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.851, allocations: 11.57 MB / 0.6844 GB, free: 217.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002461/1.854, allocations: 2.259 MB / 0.6866 GB, free: 217 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002528/1.856, allocations: 1.31 MB / 0.6879 GB, free: 215.8 MB / 0.5261 GB Notification: Performance of SimCode: time 2.675e-06/1.856, allocations: 3.844 kB / 0.6879 GB, free: 215.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.883/6.739, allocations: 106.9 MB / 0.7922 GB, free: 111.1 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat