Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.581/2.581, allocations: 270 MB / 283.6 MB, free: 1.922 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.45e-05, allocations: 7.938 kB / 348.5 MB, free: 2.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4145, allocations: 61.86 MB / 410.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1623/0.5768, allocations: 88.62 MB / 499 MB, free: 1.918 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.5772, allocations: 79.94 kB / 499.1 MB, free: 1.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02032/0.5975, allocations: 4.735 MB / 0.492 GB, free: 13.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5976, allocations: 4 kB / 0.492 GB, free: 13.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.5976, allocations: 4 kB / 0.492 GB, free: 13.08 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001258/0.5989, allocations: 0.5684 MB / 0.4926 GB, free: 12.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.775e-05/0.5989, allocations: 8.031 kB / 0.4926 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.865e-05/0.5991, allocations: 66.53 kB / 0.4926 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/0.5992, allocations: 31.62 kB / 0.4927 GB, free: 12.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.5996, allocations: 250.8 kB / 0.4929 GB, free: 12.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.5996, allocations: 24.52 kB / 0.4929 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.398e-05/0.5997, allocations: 24 kB / 0.4929 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007258/0.6005, allocations: 291.5 kB / 0.4932 GB, free: 11.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.6005, allocations: 4 kB / 0.4932 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.252e-05/0.6006, allocations: 16 kB / 0.4932 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.6006, allocations: 8 kB / 0.4932 GB, free: 11.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005861/0.6012, allocations: 201 kB / 0.4934 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.6045, allocations: 1.3 MB / 0.4947 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009654/0.6055, allocations: 437.9 kB / 0.4951 GB, free: 9.641 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000351/0.6059, allocations: 134.7 kB / 0.4952 GB, free: 9.508 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.6059, allocations: 12.22 kB / 0.4953 GB, free: 9.496 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.606, allocations: 38.8 kB / 0.4953 GB, free: 9.449 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 3.496e-06/0.606, allocations: 0 / 0.4953 GB, free: 9.449 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.001536/0.6075, allocations: 402.3 kB / 0.4957 GB, free: 9.047 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.6076, allocations: 51.41 kB / 0.4957 GB, free: 8.984 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.6079, allocations: 213.1 kB / 0.4959 GB, free: 8.766 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.608, allocations: 33.7 kB / 0.496 GB, free: 8.727 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.6081, allocations: 168.1 kB / 0.4961 GB, free: 8.559 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.6082, allocations: 94.64 kB / 0.4962 GB, free: 8.465 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/0.6083, allocations: 7.938 kB / 0.4962 GB, free: 8.457 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6084, allocations: 334.8 kB / 0.4965 GB, free: 8.121 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.6087, allocations: 84.56 kB / 0.4966 GB, free: 8.035 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.609, allocations: 103.4 kB / 0.4967 GB, free: 7.926 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.6092, allocations: 87.95 kB / 0.4968 GB, free: 7.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.6092, allocations: 0 / 0.4968 GB, free: 7.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001527/0.6108, allocations: 443.2 kB / 0.4972 GB, free: 7.395 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.6108, allocations: 8 kB / 0.4972 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.6108, allocations: 0 / 0.4972 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.6123, allocations: 233.5 kB / 0.4975 GB, free: 7.152 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.6126, allocations: 23.98 kB / 0.4975 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004784/0.6174, allocations: 3.257 MB / 0.5007 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/0.6179, allocations: 43.83 kB / 0.5007 GB, free: 3.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.6179, allocations: 4.469 kB / 0.5007 GB, free: 3.555 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.6181, allocations: 116.9 kB / 0.5008 GB, free: 3.434 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.721e-05/0.6182, allocations: 31.62 kB / 0.5009 GB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.632e-05/0.6183, allocations: 34.86 kB / 0.5009 GB, free: 3.367 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.6183, allocations: 4 kB / 0.5009 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.6183, allocations: 4 kB / 0.5009 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.6183, allocations: 3.984 kB / 0.5009 GB, free: 3.355 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.6207, allocations: 0.8618 MB / 0.5017 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.6207, allocations: 4 kB / 0.5017 GB, free: 2.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.6209, allocations: 19.92 kB / 0.5018 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001396/0.6223, allocations: 233.5 kB / 0.502 GB, free: 2.176 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.6224, allocations: 4 kB / 0.502 GB, free: 2.172 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004731/0.6271, allocations: 3.265 MB / 0.5052 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6272, allocations: 4 kB / 0.5052 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.6287, allocations: 0.5002 MB / 0.5057 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.6289, allocations: 120.7 kB / 0.5058 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.743e-05/0.629, allocations: 8 kB / 0.5058 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004266/0.6294, allocations: 35.94 kB / 0.5058 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.6296, allocations: 27.95 kB / 0.5059 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/0.6296, allocations: 8 kB / 0.5059 GB, free: 13.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002478/0.6299, allocations: 169.4 kB / 0.506 GB, free: 13.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6299, allocations: 0 / 0.506 GB, free: 13.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006188/0.6305, allocations: 107.8 kB / 0.5061 GB, free: 13.63 MB / 442.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: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001876/0.6324, allocations: 1.053 MB / 0.5072 GB, free: 12.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.6336, allocations: 491.3 kB / 0.5076 GB, free: 12.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.6337, allocations: 4 kB / 0.5076 GB, free: 12.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007991/0.6345, allocations: 383.4 kB / 0.508 GB, free: 11.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000528/0.635, allocations: 54.58 kB / 0.508 GB, free: 11.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.6362, allocations: 408.4 kB / 0.5084 GB, free: 11.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.6366, allocations: 0.7718 MB / 0.5092 GB, free: 10.36 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001448/0.6368, allocations: 18.02 kB / 0.5092 GB, free: 10.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.637, allocations: 75.41 kB / 0.5093 GB, free: 10.27 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/0.637, allocations: 4 kB / 0.5093 GB, free: 10.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.6766, allocations: 6.41 MB / 0.5155 GB, free: 3.98 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003421/0.677, allocations: 193.8 kB / 0.5157 GB, free: 3.746 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.299, allocations: 0 / 0.5157 GB, free: 3.746 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat does not exist to compare? outputFormat=mat