Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.45/2.45, allocations: 270 MB / 283.6 MB, free: 3.109 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.829e-05/3.831e-05, allocations: 7.234 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1392, allocations: 61.89 MB / 410.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.74/8.88, allocations: 2.777 GB / 3.178 GB, free: 68.73 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004419/8.88, allocations: 81.58 kB / 3.178 GB, free: 68.68 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.566/12.45, allocations: 0.5839 GB / 3.762 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.973e-06/12.45, allocations: 2.844 kB / 3.762 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001228/12.45, allocations: 41.14 kB / 3.762 GB, free: 49.2 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01445/12.46, allocations: 2.555 MB / 3.765 GB, free: 48.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/12.46, allocations: 10.28 kB / 3.765 GB, free: 48.09 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004905/12.46, allocations: 172 kB / 3.765 GB, free: 48.05 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00969/12.47, allocations: 0.8718 MB / 3.766 GB, free: 47.96 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003323/12.47, allocations: 1.025 MB / 3.767 GB, free: 47.63 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/12.47, allocations: 100.3 kB / 3.767 GB, free: 47.63 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/12.47, allocations: 124.8 kB / 3.767 GB, free: 47.63 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00699/12.48, allocations: 2.149 MB / 3.769 GB, free: 47.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.121e-05/12.48, allocations: 9.344 kB / 3.769 GB, free: 47.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/12.48, allocations: 50.09 kB / 3.769 GB, free: 47.27 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.277e-05/12.48, allocations: 29.19 kB / 3.769 GB, free: 47.27 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006845/12.49, allocations: 1.953 MB / 3.771 GB, free: 47.26 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/12.51, allocations: 8.711 MB / 3.78 GB, free: 42.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00799/12.52, allocations: 1.874 MB / 3.781 GB, free: 41.98 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/12.52, allocations: 0.5296 MB / 3.782 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07541/12.59, allocations: 24.04 MB / 3.805 GB, free: 27.11 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/12.59, allocations: 52.83 kB / 3.805 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001597/12.59, allocations: 166.2 kB / 3.806 GB, free: 26.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=108): time 5.19e-06/12.59, allocations: 0 / 3.806 GB, free: 26.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108): time 0.01134/12.61, allocations: 2.465 MB / 3.808 GB, free: 26.83 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/12.61, allocations: 195.4 kB / 3.808 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/12.61, allocations: 0.8957 MB / 3.809 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003166/12.61, allocations: 50.73 kB / 3.809 GB, free: 26.41 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005228/12.61, allocations: 0.559 MB / 3.81 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003961/12.61, allocations: 375.1 kB / 3.81 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/12.61, allocations: 27.16 kB / 3.81 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001088/12.61, allocations: 358.9 kB / 3.81 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/12.61, allocations: 456.3 kB / 3.811 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/12.61, allocations: 0.7557 MB / 3.812 GB, free: 24.72 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/12.61, allocations: 0.5259 MB / 3.812 GB, free: 24.51 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/12.61, allocations: 7.188 kB / 3.812 GB, free: 24.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004377/12.62, allocations: 1.551 MB / 3.814 GB, free: 23.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006873/12.62, allocations: 3.147 MB / 3.817 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/12.62, allocations: 11.34 kB / 3.817 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01233/12.63, allocations: 1.168 MB / 3.818 GB, free: 20.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/12.63, allocations: 413.4 kB / 3.818 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/12.64, allocations: 0.9326 MB / 3.819 GB, free: 19.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003218/12.64, allocations: 176.3 kB / 3.819 GB, free: 19.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004675/12.64, allocations: 79.84 kB / 3.819 GB, free: 19.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/12.64, allocations: 3.938 kB / 3.819 GB, free: 19.66 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004448/12.64, allocations: 1.316 MB / 3.821 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/12.64, allocations: 14.12 kB / 3.821 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005507/12.64, allocations: 90.48 kB / 3.821 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003531/12.65, allocations: 454.2 kB / 3.821 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/12.65, allocations: 1.753 MB / 3.823 GB, free: 17.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002957/12.65, allocations: 172.6 kB / 3.823 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004306/12.65, allocations: 79.44 kB / 3.823 GB, free: 17.49 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005467/12.65, allocations: 191.2 kB / 3.823 GB, free: 17.31 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004904/12.66, allocations: 142.9 kB / 3.823 GB, free: 17.24 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/12.67, allocations: 6.679 MB / 3.83 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/12.67, allocations: 83.08 kB / 3.83 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/12.67, allocations: 7.891 kB / 3.83 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.51e-05/12.67, allocations: 9.703 kB / 3.83 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01475/12.68, allocations: 8.571 MB / 3.838 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/12.68, allocations: 0 / 3.838 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002228/12.68, allocations: 300.6 kB / 3.839 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01113/12.7, allocations: 2.285 MB / 3.841 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000362/12.7, allocations: 42 kB / 3.841 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/12.7, allocations: 1.61 MB / 3.843 GB, free: 8.883 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/12.7, allocations: 3.969 kB / 3.843 GB, free: 8.883 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006667/12.7, allocations: 3.511 MB / 3.846 GB, free: 6.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/12.71, allocations: 0.7437 MB / 3.847 GB, free: 5.961 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006321/12.71, allocations: 28 kB / 3.847 GB, free: 5.934 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002664/12.71, allocations: 152.5 kB / 3.847 GB, free: 5.812 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004497/12.71, allocations: 132.2 kB / 3.847 GB, free: 5.734 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/12.71, allocations: 50.66 kB / 3.847 GB, free: 5.691 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002449/12.71, allocations: 1.183 MB / 3.848 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.42e-07/12.71, allocations: 0 / 3.848 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01001/12.72, allocations: 1.847 MB / 3.85 GB, free: 2.754 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 51 ($cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse59.phase,$cse59.region,$cse63.phase,$cse63.region,$cse67.phase,$cse67.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.02111/12.74, allocations: 5.938 MB / 3.856 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008263/12.75, allocations: 2.723 MB / 3.858 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/12.75, allocations: 0 / 3.858 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003621/12.76, allocations: 1.527 MB / 3.86 GB, free: 9.746 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007488/12.76, allocations: 0.7421 MB / 3.861 GB, free: 9.191 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/12.78, allocations: 4.681 MB / 3.865 GB, free: 4.949 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/12.78, allocations: 1.778 MB / 3.867 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005758/12.79, allocations: 1.879 MB / 3.869 GB, free: 2.391 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002268/12.79, allocations: 1.005 MB / 3.87 GB, free: 1.473 MB / 0.5573 GB Notification: Performance of SimCode: time 1.593e-06/12.79, allocations: 3.938 kB / 3.87 GB, free: 1.469 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6924/13.48, allocations: 93.7 MB / 3.961 GB, free: 57.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002566/13.48, allocations: 254.2 kB / 3.962 GB, free: 56.97 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.063/21.55, allocations: 7.875 kB / 3.962 GB, free: 56.96 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat