Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.442/2.442, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.75e-05, allocations: 3.984 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4114, allocations: 54.85 MB / 359.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.6087, allocations: 94.8 MB / 454.7 MB, free: 2.168 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.6091, allocations: 83.95 kB / 454.7 MB, free: 2.086 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1497/0.7588, allocations: 38.7 MB / 493.4 MB, free: 10.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7589, allocations: 0 / 493.4 MB, free: 10.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.542e-05/0.7589, allocations: 23.98 kB / 493.5 MB, free: 10.95 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: 345 * Number of variables: 345 Notification: Performance of Generate backend data structure: time 0.009477/0.7684, allocations: 1.686 MB / 495.2 MB, free: 9.219 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.353e-05/0.7685, allocations: 12.03 kB / 495.2 MB, free: 9.207 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000941/0.7695, allocations: 190.6 kB / 495.4 MB, free: 9.012 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01339/0.7829, allocations: 1.056 MB / 496.4 MB, free: 7.953 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.7846, allocations: 0.5689 MB / 497 MB, free: 7.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.7847, allocations: 102.7 kB / 497.1 MB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/0.7851, allocations: 128 kB / 497.2 MB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004032/0.7892, allocations: 1.436 MB / 498.6 MB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.395e-05/0.7893, allocations: 11.91 kB / 498.6 MB, free: 5.621 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002238/0.7895, allocations: 59.95 kB / 498.7 MB, free: 5.562 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.174e-05/0.7896, allocations: 32 kB / 498.7 MB, free: 5.531 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004151/0.7937, allocations: 1.477 MB / 0.4885 GB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0144/0.8082, allocations: 5.456 MB / 0.4938 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003908/0.8121, allocations: 2.33 MB / 0.4961 GB, free: 11.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.8139, allocations: 0.6218 MB / 0.4967 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002678/0.8142, allocations: 106.1 kB / 0.4968 GB, free: 10.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/0.8142, allocations: 51.48 kB / 0.4969 GB, free: 10.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=129): time 4.588e-06/0.8143, allocations: 11.94 kB / 0.4969 GB, free: 10.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=129): time 0.003846/0.8181, allocations: 1.238 MB / 0.4981 GB, free: 9.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.93e-05/0.8183, allocations: 90.11 kB / 0.4982 GB, free: 9.555 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.8191, allocations: 383 kB / 0.4985 GB, free: 9.176 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002496/0.8193, allocations: 45.7 kB / 0.4986 GB, free: 9.125 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004011/0.8197, allocations: 0.5055 MB / 0.4991 GB, free: 8.613 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000553/0.8203, allocations: 425.8 kB / 0.4995 GB, free: 8.191 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.8204, allocations: 28.03 kB / 0.4995 GB, free: 8.164 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.8206, allocations: 362.8 kB / 0.4998 GB, free: 7.801 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.8219, allocations: 422.6 kB / 0.5002 GB, free: 7.387 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.8234, allocations: 0.6688 MB / 0.5009 GB, free: 6.613 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.8249, allocations: 0.4891 MB / 0.5014 GB, free: 6.125 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.825, allocations: 4 kB / 0.5014 GB, free: 6.121 MB / 442.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004526/0.8295, allocations: 1.483 MB / 0.5028 GB, free: 4.629 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.8296, allocations: 9.719 kB / 0.5028 GB, free: 4.621 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.8296, allocations: 12 kB / 0.5028 GB, free: 4.609 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002695/0.8323, allocations: 0.5127 MB / 0.5033 GB, free: 4.094 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.8341, allocations: 207.7 kB / 0.5035 GB, free: 3.891 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.8449, allocations: 4.259 MB / 0.5077 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.8464, allocations: 138.6 kB / 0.5078 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.8466, allocations: 51.98 kB / 0.5079 GB, free: 15.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0003617/0.847, allocations: 176.7 kB / 0.5081 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/0.8473, allocations: 83 kB / 0.5081 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/0.8517, allocations: 1.489 MB / 0.5096 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/0.8517, allocations: 12 kB / 0.5096 GB, free: 13.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.8518, allocations: 15.94 kB / 0.5096 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.978e-05/0.8518, allocations: 3.984 kB / 0.5096 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007982/0.8598, allocations: 2.811 MB / 0.5124 GB, free: 10.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.8599, allocations: 0 / 0.5124 GB, free: 10.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.8612, allocations: 151.8 kB / 0.5125 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002617/0.8639, allocations: 0.5067 MB / 0.513 GB, free: 9.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/0.8641, allocations: 28 kB / 0.513 GB, free: 9.953 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.8748, allocations: 4.249 MB / 0.5172 GB, free: 5.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.8749, allocations: 0 / 0.5172 GB, free: 5.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006035/0.8809, allocations: 2.206 MB / 0.5193 GB, free: 3.328 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/0.8817, allocations: 287.7 kB / 0.5196 GB, free: 3.027 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.8819, allocations: 23.98 kB / 0.5196 GB, free: 3.004 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.8831, allocations: 60.05 kB / 0.5197 GB, free: 2.945 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003733/0.8835, allocations: 105 kB / 0.5198 GB, free: 2.844 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.8837, allocations: 32 kB / 0.5198 GB, free: 2.812 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005678/0.8843, allocations: 301.5 kB / 0.5201 GB, free: 2.516 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8843, allocations: 0 / 0.5201 GB, free: 2.516 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002082/0.8864, allocations: 419.1 kB / 0.5205 GB, free: 2.105 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * 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 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.3419/1.228, allocations: 2.956 MB / 0.5234 GB, free: 119.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005193/1.234, allocations: 1.642 MB / 0.525 GB, free: 119.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.234, allocations: 0 / 0.525 GB, free: 119.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003531/1.237, allocations: 1.086 MB / 0.5261 GB, free: 119.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009099/1.238, allocations: 82.64 kB / 0.5261 GB, free: 119.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008391/1.247, allocations: 2.225 MB / 0.5283 GB, free: 118.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/1.248, allocations: 1.098 MB / 0.5294 GB, free: 117.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/1.249, allocations: 399.9 kB / 0.5298 GB, free: 117.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.583e-06/1.249, allocations: 0 / 0.5298 GB, free: 117.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.045/4.294, allocations: 21.3 MB / 0.5506 GB, free: 117 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat