Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.894e-05, allocations: 4 kB / 292.7 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.4 MB / 343.1 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5428/0.6529, allocations: 77.81 MB / 421 MB, free: 428 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.6533, allocations: 66.16 kB / 421 MB, free: 396 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01582/0.6691, allocations: 2.682 MB / 423.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.6692, allocations: 0 / 423.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.466e-05/0.6692, allocations: 4 kB / 423.7 MB, free: 14.05 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001231/0.6705, allocations: 482.1 kB / 424.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/0.6705, allocations: 8.031 kB / 424.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.904e-05/0.6706, allocations: 44.8 kB / 424.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.961e-05/0.6708, allocations: 27.03 kB / 424.3 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004789/0.6713, allocations: 225.7 kB / 424.5 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.6713, allocations: 11.03 kB / 424.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.674e-05/0.6714, allocations: 15.44 kB / 424.5 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/0.672, allocations: 187.1 kB / 424.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.672, allocations: 3.938 kB / 424.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.618e-05/0.6721, allocations: 7.375 kB / 424.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.6721, allocations: 4 kB / 424.7 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.6726, allocations: 114.5 kB / 424.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.6749, allocations: 0.7897 MB / 425.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005409/0.6754, allocations: 148.3 kB / 425.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.6757, allocations: 62.95 kB / 425.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.6757, allocations: 160 / 425.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003865/0.6761, allocations: 138.1 kB / 425.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.745e-06/0.6762, allocations: 0 / 425.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006601/0.6768, allocations: 163.8 kB / 426.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.6769, allocations: 81.11 kB / 426.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.6773, allocations: 175.6 kB / 426.4 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.6774, allocations: 33.08 kB / 426.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.6775, allocations: 143.2 kB / 426.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.77e-05/0.6776, allocations: 41.77 kB / 426.6 MB, free: 11.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/0.6777, allocations: 3.25 kB / 426.6 MB, free: 11.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.6779, allocations: 332.5 kB / 426.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.6781, allocations: 52.73 kB / 426.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.6784, allocations: 113.2 kB / 427.1 MB, free: 10.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.6787, allocations: 73.89 kB / 427.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.6788, allocations: 7.953 kB / 427.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007391/0.6795, allocations: 211.2 kB / 427.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.6796, allocations: 8 kB / 427.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.6796, allocations: 112 / 427.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.6796, allocations: 7.938 kB / 427.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004006/0.68, allocations: 39.23 kB / 427.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.6801, allocations: 7.984 kB / 427.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.6805, allocations: 31.11 kB / 427.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.6805, allocations: 8 kB / 427.4 MB, free: 10.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001672/0.6807, allocations: 127.1 kB / 427.6 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.837e-05/0.6808, allocations: 23.67 kB / 427.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000719/0.6815, allocations: 188 kB / 427.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.6816, allocations: 4 kB / 427.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.6816, allocations: 3.938 kB / 427.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.6816, allocations: 0 / 427.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005111/0.6821, allocations: 264.2 kB / 428 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.6822, allocations: 0 / 428 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.6824, allocations: 31.94 kB / 428.1 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.6825, allocations: 0 / 428.1 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.6825, allocations: 7.234 kB / 428.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.6825, allocations: 8 kB / 428.1 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6825, allocations: 0 / 428.1 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.683, allocations: 214.2 kB / 428.3 MB, free: 9.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.469e-05/0.6831, allocations: 88.92 kB / 428.4 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.208e-05/0.6832, allocations: 7.062 kB / 428.4 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.6834, allocations: 31.09 kB / 428.4 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.212e-05/0.6835, allocations: 11.97 kB / 428.4 MB, free: 9.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.6836, allocations: 10.88 kB / 428.4 MB, free: 9.496 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001775/0.6837, allocations: 141.2 kB / 428.6 MB, free: 9.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6838, allocations: 0 / 428.6 MB, free: 9.375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003769/0.6841, allocations: 42.75 kB / 428.6 MB, free: 9.34 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008881/0.685, allocations: 0.8313 MB / 429.5 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004269/0.6855, allocations: 139.1 kB / 429.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.6855, allocations: 0 / 429.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.6857, allocations: 73.59 kB / 429.7 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.6862, allocations: 38.92 kB / 429.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.6873, allocations: 310 kB / 430 MB, free: 8.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.6877, allocations: 0.7501 MB / 430.7 MB, free: 7.242 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.6879, allocations: 33.52 kB / 430.8 MB, free: 7.207 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.6881, allocations: 57.3 kB / 430.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of SimCode: time 8.91e-07/0.6881, allocations: 0 / 430.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.7133, allocations: 3.6 MB / 434.4 MB, free: 3.688 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002946/0.7137, allocations: 145.5 kB / 434.6 MB, free: 3.457 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.484/3.198, allocations: 4 kB / 434.6 MB, free: 3.453 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat