Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.506e-05/3.531e-05, allocations: 2.5 kB / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 50.41 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4614/0.5835, allocations: 80.57 MB / 423.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.5838, allocations: 69.78 kB / 423.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04561/0.6294, allocations: 9.197 MB / 433 MB, free: 5.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.6295, allocations: 0 / 433 MB, free: 5.895 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.566e-05/0.6296, allocations: 8 kB / 433 MB, free: 5.887 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001182/0.6308, allocations: 0.5781 MB / 433.6 MB, free: 5.266 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.6308, allocations: 12.03 kB / 433.6 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.397e-05/0.6309, allocations: 53.56 kB / 433.6 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/0.6312, allocations: 35.53 kB / 433.7 MB, free: 5.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009748/0.6321, allocations: 325.8 kB / 434 MB, free: 4.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.6322, allocations: 11.69 kB / 434 MB, free: 4.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.6323, allocations: 11.12 kB / 434 MB, free: 4.824 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.6327, allocations: 143.5 kB / 434.2 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.6327, allocations: 0 / 434.2 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.6327, allocations: 2.812 kB / 434.2 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.6328, allocations: 7.953 kB / 434.2 MB, free: 4.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002172/0.633, allocations: 70.28 kB / 434.2 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.6342, allocations: 0.512 MB / 434.7 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.6347, allocations: 127.3 kB / 434.9 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.6348, allocations: 50.78 kB / 434.9 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.6348, allocations: 4 kB / 434.9 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003405/0.6352, allocations: 112.4 kB / 435 MB, free: 3.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.357e-06/0.6352, allocations: 3.938 kB / 435 MB, free: 3.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005836/0.6358, allocations: 165 kB / 435.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.1e-05/0.6359, allocations: 102.8 kB / 435.3 MB, free: 3.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008224/0.6368, allocations: 398.5 kB / 435.7 MB, free: 3.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.917e-05/0.6369, allocations: 32.95 kB / 435.7 MB, free: 3.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.637, allocations: 172.4 kB / 435.9 MB, free: 3.203 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.142e-05/0.6371, allocations: 35.42 kB / 435.9 MB, free: 3.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.284e-05/0.6371, allocations: 6.812 kB / 435.9 MB, free: 3.168 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.6373, allocations: 349.4 kB / 436.3 MB, free: 2.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.6375, allocations: 40.25 kB / 436.3 MB, free: 2.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.6377, allocations: 104.2 kB / 436.4 MB, free: 2.707 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.6378, allocations: 42.56 kB / 436.5 MB, free: 2.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.6378, allocations: 0 / 436.5 MB, free: 2.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005306/0.6384, allocations: 175.5 kB / 436.6 MB, free: 2.531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.6384, allocations: 4 kB / 436.6 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.6384, allocations: 4.062 kB / 436.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.6385, allocations: 4 kB / 436.6 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.6387, allocations: 27.3 kB / 436.7 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.6387, allocations: 4 kB / 436.7 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.639, allocations: 19.34 kB / 436.7 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.6391, allocations: 7.953 kB / 436.7 MB, free: 2.469 MB / 346.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: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001559/0.6392, allocations: 129.1 kB / 436.8 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.6394, allocations: 35.62 kB / 436.9 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005905/0.64, allocations: 186.9 kB / 437 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.64, allocations: 4 kB / 437 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.64, allocations: 0 / 437 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.64, allocations: 3.984 kB / 437 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004876/0.6405, allocations: 318 kB / 437.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.6405, allocations: 0 / 437.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.6407, allocations: 8 kB / 437.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/0.6407, allocations: 4 kB / 437.4 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.6407, allocations: 7.547 kB / 437.4 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.6407, allocations: 7.938 kB / 437.4 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6407, allocations: 0 / 437.4 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005139/0.6413, allocations: 210 kB / 437.6 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.6415, allocations: 125.6 kB / 437.7 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.596e-05/0.6415, allocations: 7.375 kB / 437.7 MB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.6418, allocations: 11.23 kB / 437.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.374e-05/0.6419, allocations: 15.98 kB / 437.7 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-05/0.6419, allocations: 7.188 kB / 437.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005993/0.6425, allocations: 310.6 kB / 438.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6425, allocations: 4 kB / 438.1 MB, free: 1.227 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005846/0.6431, allocations: 70 kB / 438.1 MB, free: 1.164 MB / 346.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00205/0.6452, allocations: 1.061 MB / 439.2 MB, free: 240 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005038/0.6457, allocations: 120.6 kB / 439.3 MB, free: 152 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.6458, allocations: 4.125 kB / 439.3 MB, free: 148 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.646, allocations: 66.11 kB / 439.4 MB, free: 100 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.6466, allocations: 63.28 kB / 439.4 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.6483, allocations: 481.9 kB / 439.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.6488, allocations: 0.7824 MB / 440.7 MB, free: 14.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003024/0.6491, allocations: 53.41 kB / 440.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.6493, allocations: 98.16 kB / 440.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of SimCode: time 1.853e-06/0.6493, allocations: 0 / 440.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04095/0.6903, allocations: 6.636 MB / 447.5 MB, free: 8.191 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003576/0.6907, allocations: 183.8 kB / 447.7 MB, free: 7.973 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.848/3.539, allocations: 0 / 447.7 MB, free: 7.973 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat