Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.507/2.507, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.569e-05, allocations: 4 kB / 299.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3894, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.545, allocations: 84.19 MB / 438.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.5454, allocations: 63.8 kB / 438.6 MB, free: 13.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03288/0.5783, allocations: 5.86 MB / 444.4 MB, free: 8.098 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5783, allocations: 0 / 444.4 MB, free: 8.098 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.5784, allocations: 8 kB / 444.5 MB, free: 8.09 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002607/0.581, allocations: 0.7457 MB / 445.2 MB, free: 7.273 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/0.5811, allocations: 15.97 kB / 445.2 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.5813, allocations: 51.42 kB / 445.3 MB, free: 7.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.5816, allocations: 203.7 kB / 445.5 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/0.5817, allocations: 12 kB / 445.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.5819, allocations: 28 kB / 445.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002775/0.5847, allocations: 233.5 kB / 445.7 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006675/0.5914, allocations: 321.4 kB / 446 MB, free: 6.371 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.5915, allocations: 4 kB / 446 MB, free: 6.367 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.307e-05/0.5916, allocations: 19.92 kB / 446.1 MB, free: 6.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.5916, allocations: 8 kB / 446.1 MB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.5954, allocations: 0.866 MB / 446.9 MB, free: 5.434 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0129/0.6084, allocations: 403.2 kB / 447.3 MB, free: 5.027 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00054/0.609, allocations: 141.2 kB / 447.5 MB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.385e-05/0.6091, allocations: 4.328 kB / 447.5 MB, free: 4.883 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008848/0.61, allocations: 301.4 kB / 447.8 MB, free: 4.562 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.899e-06/0.61, allocations: 0 / 447.8 MB, free: 4.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001557/0.6116, allocations: 373.1 kB / 448.1 MB, free: 4.191 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/0.6117, allocations: 200.3 kB / 448.3 MB, free: 3.953 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003667/0.6121, allocations: 194.8 kB / 448.5 MB, free: 3.758 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.6123, allocations: 37.64 kB / 448.6 MB, free: 3.715 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.6125, allocations: 180.8 kB / 448.7 MB, free: 3.535 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.6127, allocations: 102.7 kB / 448.8 MB, free: 3.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.6128, allocations: 0 / 448.8 MB, free: 3.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.613, allocations: 346.8 kB / 449.2 MB, free: 3.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005428/0.6136, allocations: 125.1 kB / 449.3 MB, free: 2.965 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006076/0.6142, allocations: 166.7 kB / 449.5 MB, free: 2.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.6269, allocations: 98.14 kB / 449.6 MB, free: 2.695 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.627, allocations: 0 / 449.6 MB, free: 2.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002091/0.6291, allocations: 439.4 kB / 450 MB, free: 2.262 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.6293, allocations: 114.8 kB / 450.1 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.6293, allocations: 0 / 450.1 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.6295, allocations: 32.84 kB / 450.1 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004209/0.63, allocations: 39.91 kB / 450.2 MB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.6324, allocations: 1.392 MB / 451.6 MB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008811/0.6333, allocations: 59.98 kB / 451.6 MB, free: 496 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/0.6334, allocations: 20 kB / 451.6 MB, free: 476 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,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 (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 4 * 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.000384/0.6338, allocations: 201.5 kB / 451.8 MB, free: 252 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00151/0.6354, allocations: 392.9 kB / 452.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.6355, allocations: 39.62 kB / 452.3 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.6357, allocations: 35.39 kB / 452.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.6357, allocations: 4 kB / 452.3 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.6357, allocations: 0 / 452.3 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.6357, allocations: 3.984 kB / 452.3 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.638, allocations: 0.8114 MB / 453.1 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.6381, allocations: 4 kB / 453.1 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.6384, allocations: 23.98 kB / 453.1 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.911e-05/0.6434, allocations: 7.984 kB / 453.1 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001683/0.6436, allocations: 11.94 kB / 453.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.733e-06/0.6437, allocations: 3.938 kB / 453.2 MB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.6437, allocations: 0 / 453.2 MB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.6454, allocations: 0.5034 MB / 453.7 MB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.6456, allocations: 96.83 kB / 453.8 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.6458, allocations: 15.98 kB / 453.8 MB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009413/0.6468, allocations: 67.94 kB / 453.8 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.6471, allocations: 67.89 kB / 453.9 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.739e-05/0.6472, allocations: 19.98 kB / 453.9 MB, free: 14.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001854/0.6474, allocations: 133.2 kB / 454.1 MB, free: 13.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6474, allocations: 0 / 454.1 MB, free: 13.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007663/0.6481, allocations: 103.8 kB / 454.2 MB, free: 13.84 MB / 394.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 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,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: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * 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.001855/0.65, allocations: 1.098 MB / 455.3 MB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.6515, allocations: 0.6685 MB / 455.9 MB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.6516, allocations: 0 / 455.9 MB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006799/0.6523, allocations: 332.8 kB / 456.3 MB, free: 11.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.6527, allocations: 19.84 kB / 456.3 MB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.6546, allocations: 0.5212 MB / 456.8 MB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.6552, allocations: 0.7969 MB / 457.6 MB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002557/0.6554, allocations: 27.28 kB / 457.6 MB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.6557, allocations: 119.4 kB / 457.7 MB, free: 10.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6558, allocations: 0 / 457.7 MB, free: 10.09 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05089/0.7067, allocations: 6.385 MB / 464.1 MB, free: 3.73 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/0.707, allocations: 111 kB / 464.2 MB, free: 3.543 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.709/3.416, allocations: 0 / 464.2 MB, free: 3.543 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat