Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.374/2.374, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.312e-05/2.324e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3735, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.875/8.249, allocations: 2.606 GB / 2.956 GB, free: 122.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/8.249, allocations: 84 kB / 2.956 GB, free: 122.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.317/9.566, allocations: 232.8 MB / 3.183 GB, free: 83.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.924e-06/9.566, allocations: 3.969 kB / 3.183 GB, free: 83.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.287e-05/9.566, allocations: 11.88 kB / 3.184 GB, free: 83.02 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0077/9.574, allocations: 1.284 MB / 3.185 GB, free: 82.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/9.574, allocations: 11.44 kB / 3.185 GB, free: 82.19 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004231/9.579, allocations: 256.4 kB / 3.185 GB, free: 82.15 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/9.58, allocations: 422.4 kB / 3.185 GB, free: 81.85 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/9.58, allocations: 23.42 kB / 3.185 GB, free: 81.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.669e-05/9.58, allocations: 18.03 kB / 3.185 GB, free: 81.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00118/9.581, allocations: 343.2 kB / 3.186 GB, free: 81.72 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/9.582, allocations: 423 kB / 3.186 GB, free: 81.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/9.582, allocations: 3.781 kB / 3.186 GB, free: 81.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.88e-05/9.583, allocations: 0 / 3.186 GB, free: 81.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/9.583, allocations: 7.781 kB / 3.186 GB, free: 81.48 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01009/9.593, allocations: 3.995 MB / 3.19 GB, free: 78.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/9.594, allocations: 291.9 kB / 3.19 GB, free: 78.29 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/9.595, allocations: 127.7 kB / 3.191 GB, free: 78.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2437/9.838, allocations: 53.75 MB / 3.243 GB, free: 44.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/9.838, allocations: 38.52 kB / 3.243 GB, free: 43.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 4.057e-06/9.838, allocations: 3.938 kB / 3.243 GB, free: 43.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=27): time 0.002989/9.841, allocations: 0.5723 MB / 3.244 GB, free: 43.49 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/9.841, allocations: 102.8 kB / 3.244 GB, free: 43.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000436/9.842, allocations: 288.1 kB / 3.244 GB, free: 43.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.282e-05/9.842, allocations: 25.7 kB / 3.244 GB, free: 43.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/9.842, allocations: 297 kB / 3.244 GB, free: 42.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.922e-05/9.842, allocations: 90.98 kB / 3.244 GB, free: 42.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/9.842, allocations: 0 / 3.244 GB, free: 42.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.523e-05/9.842, allocations: 325.2 kB / 3.245 GB, free: 42.38 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/9.843, allocations: 104.1 kB / 3.245 GB, free: 42.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/9.843, allocations: 253.5 kB / 3.245 GB, free: 41.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/9.844, allocations: 220.8 kB / 3.245 GB, free: 41.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/9.844, allocations: 4 kB / 3.245 GB, free: 41.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001911/9.846, allocations: 458.9 kB / 3.246 GB, free: 41.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004161/9.847, allocations: 1.846 MB / 3.247 GB, free: 39.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/9.847, allocations: 4 kB / 3.247 GB, free: 39.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.18e-05/9.847, allocations: 8 kB / 3.247 GB, free: 39.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007939/9.848, allocations: 113.4 kB / 3.248 GB, free: 39.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/9.848, allocations: 4 kB / 3.248 GB, free: 39.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/9.848, allocations: 74.31 kB / 3.248 GB, free: 39.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.138e-05/9.848, allocations: 23.47 kB / 3.248 GB, free: 39.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/9.848, allocations: 13.45 kB / 3.248 GB, free: 39.22 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001525/9.85, allocations: 376.6 kB / 3.248 GB, free: 38.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/9.85, allocations: 4 kB / 3.248 GB, free: 38.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/9.85, allocations: 12.03 kB / 3.248 GB, free: 38.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007387/9.851, allocations: 112.6 kB / 3.248 GB, free: 38.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/9.851, allocations: 11.94 kB / 3.248 GB, free: 38.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/9.851, allocations: 60.12 kB / 3.248 GB, free: 38.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.314e-05/9.851, allocations: 22.77 kB / 3.248 GB, free: 38.71 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001783/9.852, allocations: 108.9 kB / 3.248 GB, free: 38.59 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001687/9.853, allocations: 363.4 kB / 3.249 GB, free: 38.28 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.497e-05/9.853, allocations: 35.53 kB / 3.249 GB, free: 38.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003085/9.857, allocations: 1.707 MB / 3.25 GB, free: 36.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.816e-05/9.857, allocations: 22.59 kB / 3.25 GB, free: 36.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/9.857, allocations: 0 / 3.25 GB, free: 36.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/9.857, allocations: 3.422 kB / 3.25 GB, free: 36.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/9.858, allocations: 0.8639 MB / 3.251 GB, free: 35.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/9.858, allocations: 0 / 3.251 GB, free: 35.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006126/9.859, allocations: 82.05 kB / 3.251 GB, free: 35.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/9.859, allocations: 3.953 kB / 3.251 GB, free: 35.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/9.859, allocations: 11.47 kB / 3.251 GB, free: 35.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/9.859, allocations: 0 / 3.251 GB, free: 35.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/9.859, allocations: 3.938 kB / 3.251 GB, free: 35.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/9.861, allocations: 0.986 MB / 3.252 GB, free: 34.95 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/9.861, allocations: 252.7 kB / 3.253 GB, free: 34.71 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/9.861, allocations: 3.953 kB / 3.253 GB, free: 34.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/9.862, allocations: 31.12 kB / 3.253 GB, free: 34.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/9.862, allocations: 35.05 kB / 3.253 GB, free: 34.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.552e-05/9.862, allocations: 12 kB / 3.253 GB, free: 34.65 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004336/9.862, allocations: 289.4 kB / 3.253 GB, free: 34.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.21e-07/9.862, allocations: 0 / 3.253 GB, free: 34.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0058/9.868, allocations: 1.134 MB / 3.254 GB, free: 33.28 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01233/9.881, allocations: 2.918 MB / 3.257 GB, free: 30.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/9.882, allocations: 0.6701 MB / 3.258 GB, free: 30.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/9.882, allocations: 0 / 3.258 GB, free: 30.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007212/9.883, allocations: 431.4 kB / 3.258 GB, free: 29.66 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/9.885, allocations: 184.4 kB / 3.258 GB, free: 29.53 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.562/10.45, allocations: 54.92 MB / 3.312 GB, free: 75.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/10.45, allocations: 0.9938 MB / 3.313 GB, free: 75.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004881/10.45, allocations: 268.1 kB / 3.313 GB, free: 75.21 MB / 490.7 MB Notification: Performance of SimCode: time 1.664e-06/10.45, allocations: 3.781 kB / 3.313 GB, free: 75.21 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.502/13.95, allocations: 30.88 MB / 3.343 GB, free: 72.84 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat