Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.551/2.551, allocations: 270 MB / 282.6 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.76e-05/3.77e-05, allocations: 4 kB / 347.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4793/0.4794, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.036/9.515, allocations: 2.759 GB / 3.159 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/9.516, allocations: 83.81 kB / 3.159 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.268/10.78, allocations: 218.8 MB / 3.373 GB, free: 96.29 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.684e-06/10.78, allocations: 0 / 3.373 GB, free: 96.29 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.133e-05/10.78, allocations: 14.56 kB / 3.373 GB, free: 96.29 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00572/10.79, allocations: 1.166 MB / 3.374 GB, free: 95.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/10.79, allocations: 11.53 kB / 3.374 GB, free: 95.64 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/10.79, allocations: 76.53 kB / 3.374 GB, free: 95.57 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002422/10.79, allocations: 215.6 kB / 3.374 GB, free: 95.55 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007435/10.79, allocations: 368.6 kB / 3.374 GB, free: 95.26 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/10.79, allocations: 26.97 kB / 3.374 GB, free: 95.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.706e-05/10.79, allocations: 37.19 kB / 3.374 GB, free: 95.24 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/10.79, allocations: 0.5747 MB / 3.375 GB, free: 94.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/10.79, allocations: 3.938 kB / 3.375 GB, free: 94.95 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.993e-05/10.79, allocations: 14.8 kB / 3.375 GB, free: 94.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/10.79, allocations: 7.469 kB / 3.375 GB, free: 94.95 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/10.8, allocations: 492.5 kB / 3.375 GB, free: 94.81 MB / 0.5261 GB 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.003769/10.8, allocations: 2.602 MB / 3.378 GB, free: 92.63 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/10.8, allocations: 411.2 kB / 3.378 GB, free: 92.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002995/10.8, allocations: 142.4 kB / 3.379 GB, free: 92.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07491/10.88, allocations: 24.16 MB / 3.402 GB, free: 77.33 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/10.88, allocations: 37.5 kB / 3.402 GB, free: 77.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.477e-06/10.88, allocations: 0 / 3.402 GB, free: 77.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002863/10.88, allocations: 0.6313 MB / 3.403 GB, free: 77.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/10.88, allocations: 106.5 kB / 3.403 GB, free: 76.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/10.88, allocations: 270.7 kB / 3.403 GB, free: 76.82 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/10.88, allocations: 33.17 kB / 3.403 GB, free: 76.79 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/10.88, allocations: 265.3 kB / 3.403 GB, free: 76.55 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.764e-05/10.88, allocations: 83.5 kB / 3.404 GB, free: 76.49 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/10.88, allocations: 4 kB / 3.404 GB, free: 76.49 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.158e-05/10.88, allocations: 321.4 kB / 3.404 GB, free: 76.17 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/10.88, allocations: 92.62 kB / 3.404 GB, free: 76.13 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/10.88, allocations: 182.7 kB / 3.404 GB, free: 75.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/10.88, allocations: 104.5 kB / 3.404 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/10.88, allocations: 0 / 3.404 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007447/10.88, allocations: 306.8 kB / 3.404 GB, free: 75.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/10.88, allocations: 5.531 kB / 3.404 GB, free: 75.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/10.88, allocations: 3.562 kB / 3.404 GB, free: 75.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/10.88, allocations: 3.812 kB / 3.404 GB, free: 75.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006404/10.88, allocations: 94.14 kB / 3.405 GB, free: 75.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/10.88, allocations: 7.297 kB / 3.405 GB, free: 75.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/10.88, allocations: 69.52 kB / 3.405 GB, free: 75.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/10.88, allocations: 15.97 kB / 3.405 GB, free: 75.78 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001257/10.88, allocations: 116.8 kB / 3.405 GB, free: 75.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/10.88, allocations: 33.78 kB / 3.405 GB, free: 75.65 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002546/10.89, allocations: 1.845 MB / 3.407 GB, free: 74.76 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-05/10.89, allocations: 29.11 kB / 3.407 GB, free: 74.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/10.89, allocations: 3.969 kB / 3.407 GB, free: 74.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/10.89, allocations: 10.56 kB / 3.407 GB, free: 74.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/10.89, allocations: 1.006 MB / 3.408 GB, free: 74.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/10.89, allocations: 0 / 3.408 GB, free: 74.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/10.89, allocations: 86.39 kB / 3.408 GB, free: 74.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.856e-06/10.89, allocations: 3.969 kB / 3.408 GB, free: 74.16 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/10.89, allocations: 7.969 kB / 3.408 GB, free: 74.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/10.89, allocations: 0 / 3.408 GB, free: 74.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/10.89, allocations: 0 / 3.408 GB, free: 74.16 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/10.89, allocations: 0.9878 MB / 3.409 GB, free: 73.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/10.89, allocations: 218.1 kB / 3.409 GB, free: 73.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.669e-05/10.89, allocations: 7.406 kB / 3.409 GB, free: 73.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005677/10.89, allocations: 46.12 kB / 3.409 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/10.89, allocations: 32.05 kB / 3.409 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/10.89, allocations: 11.28 kB / 3.409 GB, free: 73.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004931/10.89, allocations: 323.1 kB / 3.409 GB, free: 73.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/10.89, allocations: 0 / 3.409 GB, free: 73.27 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005106/10.9, allocations: 1.011 MB / 3.41 GB, free: 73.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01112/10.91, allocations: 2.816 MB / 3.413 GB, free: 71.83 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001108/10.91, allocations: 0.4908 MB / 3.414 GB, free: 71.63 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/10.91, allocations: 0 / 3.414 GB, free: 71.63 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006694/10.91, allocations: 474.5 kB / 3.414 GB, free: 71.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/10.91, allocations: 201.3 kB / 3.414 GB, free: 71.35 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005902/10.92, allocations: 1.604 MB / 3.416 GB, free: 70.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/10.92, allocations: 0.9823 MB / 3.417 GB, free: 69.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/10.92, allocations: 256.6 kB / 3.417 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/10.92, allocations: 0 / 3.417 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.537/14.46, allocations: 29.31 MB / 3.446 GB, free: 60.36 MB / 0.5261 GB