Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.605/2.605, allocations: 270 MB / 283.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.646e-05, allocations: 4 kB / 348.5 MB, free: 2.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4214, allocations: 61.87 MB / 410.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.6074, allocations: 94.37 MB / 0.4929 GB, free: 12.09 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.6077, allocations: 63.97 kB / 0.493 GB, free: 12.03 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07028/0.678, allocations: 13.01 MB / 0.5057 GB, free: 15 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6781, allocations: 4 kB / 0.5057 GB, free: 14.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.145e-05/0.6782, allocations: 12 kB / 0.5057 GB, free: 14.98 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00317/0.6814, allocations: 0.853 MB / 0.5065 GB, free: 14.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.6814, allocations: 8.031 kB / 0.5065 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001827/0.6816, allocations: 78.52 kB / 0.5066 GB, free: 13.97 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.6819, allocations: 63.25 kB / 0.5067 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.6833, allocations: 418 kB / 0.5071 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.653e-05/0.6834, allocations: 40.95 kB / 0.5071 GB, free: 13.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.6836, allocations: 44 kB / 0.5071 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.6851, allocations: 417.9 kB / 0.5075 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.6851, allocations: 0 / 0.5075 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.43e-05/0.6852, allocations: 19.98 kB / 0.5076 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.6853, allocations: 12 kB / 0.5076 GB, free: 12.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.6865, allocations: 265.9 kB / 0.5078 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00456/0.691, allocations: 1.122 MB / 0.5089 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/0.6935, allocations: 462.8 kB / 0.5094 GB, free: 11.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000646/0.6942, allocations: 158.2 kB / 0.5095 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.392e-05/0.6943, allocations: 4.438 kB / 0.5095 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009847/0.6953, allocations: 268.4 kB / 0.5098 GB, free: 10.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 4.969e-06/0.6953, allocations: 0 / 0.5098 GB, free: 10.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001745/0.697, allocations: 407.5 kB / 0.5102 GB, free: 10.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.6972, allocations: 140.9 kB / 0.5103 GB, free: 10.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.6985, allocations: 478.8 kB / 0.5108 GB, free: 9.535 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.6986, allocations: 45.7 kB / 0.5108 GB, free: 9.484 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.699, allocations: 253.4 kB / 0.511 GB, free: 9.234 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002287/0.6993, allocations: 126.3 kB / 0.5112 GB, free: 9.109 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.139e-05/0.6993, allocations: 8 kB / 0.5112 GB, free: 9.102 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002516/0.6996, allocations: 370.8 kB / 0.5115 GB, free: 8.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006385/0.7003, allocations: 141.1 kB / 0.5117 GB, free: 8.594 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007816/0.7011, allocations: 227.9 kB / 0.5119 GB, free: 8.352 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005249/0.7016, allocations: 123.3 kB / 0.512 GB, free: 8.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.7016, allocations: 0 / 0.512 GB, free: 8.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002089/0.7037, allocations: 483.2 kB / 0.5124 GB, free: 7.746 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.7038, allocations: 4 kB / 0.5125 GB, free: 7.742 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.7038, allocations: 0 / 0.5125 GB, free: 7.742 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002557/0.7041, allocations: 36.8 kB / 0.5125 GB, free: 7.703 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006089/0.7047, allocations: 59.89 kB / 0.5125 GB, free: 7.645 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/0.7071, allocations: 1.424 MB / 0.5139 GB, free: 6.082 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.7082, allocations: 83.81 kB / 0.514 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.448e-05/0.7083, allocations: 24 kB / 0.514 GB, free: 5.977 MB / 442.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: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003246/0.7086, allocations: 162.2 kB / 0.5142 GB, free: 5.812 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.7088, allocations: 59.3 kB / 0.5142 GB, free: 5.754 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001889/0.7107, allocations: 461.4 kB / 0.5147 GB, free: 5.301 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.7108, allocations: 4 kB / 0.5147 GB, free: 5.297 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.7108, allocations: 4 kB / 0.5147 GB, free: 5.293 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.7108, allocations: 0 / 0.5147 GB, free: 5.293 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.7145, allocations: 1.08 MB / 0.5158 GB, free: 4.152 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.7146, allocations: 0 / 0.5158 GB, free: 4.152 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.7151, allocations: 47.91 kB / 0.5158 GB, free: 4.105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.338e-05/0.7151, allocations: 4 kB / 0.5158 GB, free: 4.102 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.055e-05/0.7152, allocations: 11.98 kB / 0.5158 GB, free: 4.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.287e-05/0.7152, allocations: 4 kB / 0.5158 GB, free: 4.086 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.7152, allocations: 3.938 kB / 0.5158 GB, free: 4.082 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.7169, allocations: 0.5112 MB / 0.5163 GB, free: 3.559 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002663/0.7172, allocations: 140.4 kB / 0.5165 GB, free: 3.402 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.7174, allocations: 19.98 kB / 0.5165 GB, free: 3.383 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009952/0.7184, allocations: 67.94 kB / 0.5165 GB, free: 3.316 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/0.7188, allocations: 76.33 kB / 0.5166 GB, free: 3.242 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.482e-05/0.7189, allocations: 19.98 kB / 0.5166 GB, free: 3.223 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009745/0.7199, allocations: 353.2 kB / 0.517 GB, free: 2.879 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7199, allocations: 3.938 kB / 0.517 GB, free: 2.875 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001219/0.7211, allocations: 131.8 kB / 0.5171 GB, free: 2.746 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: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.003185/0.7243, allocations: 1.395 MB / 0.5185 GB, free: 1.457 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.7258, allocations: 0.4906 MB / 0.5189 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.7258, allocations: 0 / 0.5189 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005739/0.7264, allocations: 213.5 kB / 0.5191 GB, free: 0.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008385/0.7273, allocations: 77.23 kB / 0.5192 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3521/1.079, allocations: 0.798 MB / 0.52 GB, free: 107.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005233/1.08, allocations: 0.8811 MB / 0.5209 GB, free: 106.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005377/1.08, allocations: 73.31 kB / 0.5209 GB, free: 106.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005282/1.081, allocations: 192.1 kB / 0.5211 GB, free: 106.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.625e-06/1.081, allocations: 3.531 kB / 0.5211 GB, free: 106.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04166/1.123, allocations: 11.04 MB / 0.5319 GB, free: 105.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/1.123, allocations: 213.6 kB / 0.5321 GB, free: 105.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.072/4.195, allocations: 0 / 0.5321 GB, free: 105.6 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat