Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.427e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2497, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.3708, allocations: 67.31 MB / 325.7 MB, free: 10.46 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.3711, allocations: 67.97 kB / 325.7 MB, free: 10.4 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03959/0.4108, allocations: 4.92 MB / 330.6 MB, free: 5.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4108, allocations: 0 / 330.6 MB, free: 5.457 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.4108, allocations: 4 kB / 330.6 MB, free: 5.453 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001532/0.4124, allocations: 0.5606 MB / 331.2 MB, free: 4.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.4125, allocations: 12.02 kB / 331.2 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.4126, allocations: 39.62 kB / 331.3 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005886/0.4132, allocations: 266.6 kB / 331.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.4133, allocations: 8 kB / 331.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.211e-05/0.4134, allocations: 19.94 kB / 331.5 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007867/0.4212, allocations: 169.1 kB / 331.7 MB, free: 4.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.4221, allocations: 187.8 kB / 331.9 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.4221, allocations: 0 / 331.9 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.4222, allocations: 0 / 331.9 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.4222, allocations: 8 kB / 331.9 MB, free: 4.105 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.4255, allocations: 0.9323 MB / 332.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007672/0.4263, allocations: 195 kB / 333 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.4267, allocations: 89.23 kB / 333.1 MB, free: 2.824 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.066e-05/0.4268, allocations: 12.17 kB / 333.1 MB, free: 2.812 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.4268, allocations: 34.75 kB / 333.2 MB, free: 2.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.574e-06/0.4268, allocations: 0 / 333.2 MB, free: 2.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009202/0.4278, allocations: 221.9 kB / 333.4 MB, free: 2.543 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.4278, allocations: 51.41 kB / 333.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.4282, allocations: 200.5 kB / 333.6 MB, free: 2.277 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.4283, allocations: 29.7 kB / 333.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.4285, allocations: 195.8 kB / 333.8 MB, free: 2.047 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.561e-05/0.4286, allocations: 71.02 kB / 333.9 MB, free: 1.977 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/0.4287, allocations: 0 / 333.9 MB, free: 1.977 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.4289, allocations: 330.8 kB / 334.2 MB, free: 1.645 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.4291, allocations: 56.41 kB / 334.3 MB, free: 1.586 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.4294, allocations: 79.27 kB / 334.4 MB, free: 1.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.4296, allocations: 71.91 kB / 334.4 MB, free: 1.43 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4297, allocations: 0 / 334.4 MB, free: 1.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009613/0.4306, allocations: 254.8 kB / 334.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.4307, allocations: 7.594 kB / 334.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.4307, allocations: 7.953 kB / 334.7 MB, free: 1.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004744/0.4312, allocations: 69.73 kB / 334.8 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.4317, allocations: 47.91 kB / 334.8 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003812/0.4355, allocations: 2.708 MB / 337.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.436, allocations: 27.77 kB / 337.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.436, allocations: 12 kB / 337.6 MB, free: 14.05 MB / 298.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.4362, allocations: 105 kB / 337.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008237/0.4371, allocations: 219.4 kB / 337.9 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.4372, allocations: 27.67 kB / 337.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.354e-05/0.4373, allocations: 29.95 kB / 337.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4373, allocations: 4 kB / 337.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4373, allocations: 0 / 337.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.4374, allocations: 11.98 kB / 337.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.439, allocations: 0.5784 MB / 338.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.439, allocations: 7.891 kB / 338.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.4393, allocations: 23.98 kB / 338.6 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004238/0.4398, allocations: 77.67 kB / 338.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.4398, allocations: 0 / 338.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003765/0.4436, allocations: 2.708 MB / 341.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4436, allocations: 0 / 341.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008881/0.4445, allocations: 320.8 kB / 341.7 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.4448, allocations: 120.7 kB / 341.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.4449, allocations: 3.953 kB / 341.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.4455, allocations: 31.97 kB / 341.8 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.4456, allocations: 23.97 kB / 341.8 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.4457, allocations: 8 kB / 341.8 MB, free: 9.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003086/0.446, allocations: 164.5 kB / 342 MB, free: 9.266 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.446, allocations: 0 / 342 MB, free: 9.266 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009273/0.447, allocations: 83.75 kB / 342.1 MB, free: 9.184 MB / 298.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: 0 () * 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 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/0.4484, allocations: 0.851 MB / 342.9 MB, free: 8.301 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009978/0.4494, allocations: 399.4 kB / 343.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.4494, allocations: 0 / 343.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005083/0.4499, allocations: 315.3 kB / 343.6 MB, free: 7.562 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.4504, allocations: 28.38 kB / 343.7 MB, free: 7.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.4516, allocations: 364 kB / 344 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.4521, allocations: 0.7717 MB / 344.8 MB, free: 6.344 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.4524, allocations: 22.06 kB / 344.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.4526, allocations: 83.41 kB / 344.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4526, allocations: 0 / 344.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04698/0.4996, allocations: 4.732 MB / 349.6 MB, free: 1.527 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/0.4999, allocations: 149.2 kB / 349.8 MB, free: 1.332 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.432/2.932, allocations: 3.938 kB / 349.8 MB, free: 1.328 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat