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.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.218/2.218, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004382, allocations: 12 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3374, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.1227/0.4601, allocations: 77.64 MB / 446.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3957/0.8558, allocations: 32.7 MB / 479.6 MB, free: 6.742 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00287/0.8588, allocations: 97.72 kB / 479.7 MB, free: 6.742 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004605/0.8634, allocations: 1.08 MB / 480.8 MB, free: 6.738 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02395/0.8874, allocations: 6.25 MB / 487 MB, free: 6.668 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0262/0.9136, allocations: 7.06 MB / 494.1 MB, free: 6.566 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009299/0.923, allocations: 4.564 MB / 498.7 MB, free: 6.559 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00272/0.9257, allocations: 1.23 MB / 499.9 MB, free: 6.445 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006378/0.9322, allocations: 2.076 MB / 0.4902 GB, free: 6.441 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0503/0.9825, allocations: 20.96 MB / 0.5107 GB, free: 13.81 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000882/0.9834, allocations: 108 kB / 0.5108 GB, free: 13.7 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03022/1.014, allocations: 10.05 MB / 0.5206 GB, free: 5.902 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00201/1.016, allocations: 0.7481 MB / 0.5213 GB, free: 5.414 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/1.017, allocations: 0.5113 MB / 0.5218 GB, free: 5.117 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01785/1.035, allocations: 6.514 MB / 0.5282 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/1.035, allocations: 0 / 0.5282 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.986e-06/1.035, allocations: 0 / 0.5282 GB, free: 15.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001116/1.035, allocations: 0 / 0.5282 GB, free: 15.57 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.01378/1.049, allocations: 3.593 MB / 0.5317 GB, free: 12.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/1.049, allocations: 15.88 kB / 0.5317 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001/1.05, allocations: 298.8 kB / 0.532 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007923/1.058, allocations: 0.8362 MB / 0.5328 GB, free: 11.24 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004802/1.063, allocations: 1.579 MB / 0.5343 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/1.063, allocations: 174.9 kB / 0.5345 GB, free: 9.926 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006706/1.064, allocations: 203.7 kB / 0.5347 GB, free: 9.793 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/1.076, allocations: 3.511 MB / 0.5381 GB, free: 7.059 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.004e-05/1.076, allocations: 6.906 kB / 0.5381 GB, free: 7.055 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003374/1.077, allocations: 79.92 kB / 0.5382 GB, free: 7.035 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003962/1.077, allocations: 192.2 kB / 0.5384 GB, free: 6.871 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/1.09, allocations: 3.285 MB / 0.5416 GB, free: 4.512 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.03048/1.12, allocations: 14.98 MB / 0.5562 GB, free: 6.691 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009161/1.13, allocations: 2.303 MB / 0.5585 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06663/1.196, allocations: 19.04 MB / 0.5771 GB, free: 144 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006742/1.203, allocations: 1.625 MB / 0.5787 GB, free: 14.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=155): time 7.023e-06/1.203, allocations: 3.984 kB / 0.5787 GB, free: 14.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=171): time 0.0328/1.236, allocations: 8.153 MB / 0.5866 GB, free: 8.742 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/1.236, allocations: 226.2 kB / 0.5868 GB, free: 8.477 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/1.239, allocations: 1.583 MB / 0.5884 GB, free: 7.293 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000452/1.24, allocations: 54.89 kB / 0.5884 GB, free: 7.254 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009875/1.241, allocations: 0.9466 MB / 0.5894 GB, free: 6.617 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009692/1.242, allocations: 0.5936 MB / 0.5899 GB, free: 6.113 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/1.242, allocations: 41 kB / 0.59 GB, free: 6.105 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002545/1.242, allocations: 397.4 kB / 0.5904 GB, free: 5.742 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003705/1.246, allocations: 1.139 MB / 0.5915 GB, free: 4.965 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004341/1.25, allocations: 1.677 MB / 0.5931 GB, free: 3.484 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004339/1.255, allocations: 1.384 MB / 0.5945 GB, free: 2.598 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.995e-05/1.255, allocations: 4 kB / 0.5945 GB, free: 2.594 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01224/1.267, allocations: 3.836 MB / 0.5982 GB, free: 12 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004927/1.268, allocations: 0.5515 MB / 0.5988 GB, free: 15.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.497e-05/1.268, allocations: 19.98 kB / 0.5988 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02713/1.295, allocations: 2.979 MB / 0.6017 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00232/1.297, allocations: 327.3 kB / 0.602 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.307, allocations: 3.491 MB / 0.6054 GB, free: 9.836 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003765/1.311, allocations: 252.9 kB / 0.6056 GB, free: 9.621 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004337/1.312, allocations: 105 kB / 0.6057 GB, free: 9.539 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/1.312, allocations: 4 kB / 0.6057 GB, free: 9.535 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01171/1.323, allocations: 3.566 MB / 0.6092 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-05/1.324, allocations: 16.97 kB / 0.6092 GB, free: 7.137 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01217/1.336, allocations: 1.71 MB / 0.6109 GB, free: 5.688 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/1.338, allocations: 373.1 kB / 0.6113 GB, free: 5.363 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007285/1.346, allocations: 2.757 MB / 0.614 GB, free: 3.285 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/1.349, allocations: 258.9 kB / 0.6142 GB, free: 3.062 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003639/1.349, allocations: 100.2 kB / 0.6143 GB, free: 2.984 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.002042/1.351, allocations: 0.7253 MB / 0.615 GB, free: 2.465 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006287/1.352, allocations: 201.6 kB / 0.6152 GB, free: 2.266 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01812/1.37, allocations: 7.735 MB / 0.6228 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001197/1.37, allocations: 95.61 kB / 0.6229 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/1.37, allocations: 0 / 0.6229 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01467/1.385, allocations: 6.637 MB / 0.6293 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02439/1.409, allocations: 10.88 MB / 0.64 GB, free: 8.617 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/1.409, allocations: 0 / 0.64 GB, free: 8.617 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003382/1.413, allocations: 401.6 kB / 0.6403 GB, free: 8.242 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002501/1.415, allocations: 380.5 kB / 0.6407 GB, free: 7.859 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004044/1.416, allocations: 63.97 kB / 0.6408 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/1.418, allocations: 2.579 MB / 0.6433 GB, free: 5.121 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.418, allocations: 0 / 0.6433 GB, free: 5.121 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01738/1.436, allocations: 7.163 MB / 0.6503 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/1.438, allocations: 0.7377 MB / 0.651 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007695/1.439, allocations: 47.98 kB / 0.651 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002795/1.441, allocations: 194 kB / 0.6512 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004907/1.442, allocations: 149.8 kB / 0.6514 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002326/1.442, allocations: 63.97 kB / 0.6514 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002638/1.445, allocations: 1.163 MB / 0.6526 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.91e-07/1.445, allocations: 0 / 0.6526 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00982/1.455, allocations: 2.585 MB / 0.6551 GB, free: 8.871 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.3335/1.788, allocations: 9.722 MB / 0.6646 GB, free: 225.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01616/1.804, allocations: 5.417 MB / 0.6699 GB, free: 224.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/1.804, allocations: 3.938 kB / 0.6699 GB, free: 224.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005503/1.81, allocations: 2.432 MB / 0.6723 GB, free: 223.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007395/1.817, allocations: 0.8634 MB / 0.6731 GB, free: 223.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.842, allocations: 11.58 MB / 0.6844 GB, free: 217.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002469/1.844, allocations: 2.262 MB / 0.6866 GB, free: 216.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002514/1.847, allocations: 1.31 MB / 0.6879 GB, free: 215.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.764e-06/1.847, allocations: 0 / 0.6879 GB, free: 215.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.911/6.758, allocations: 106.9 MB / 0.7923 GB, free: 111 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat