Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.658/2.658, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.688e-05/4.697e-05, allocations: 7.938 kB / 323.5 MB, free: 4.23 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4708/0.4709, allocations: 58.83 MB / 382.3 MB, free: 10.34 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1753/0.6463, allocations: 92.8 MB / 475.1 MB, free: 15.7 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.6466, allocations: 67.97 kB / 475.2 MB, free: 15.64 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.06051/0.7071, allocations: 12.76 MB / 487.9 MB, free: 2.852 MB / 410.8 MB Notification: Performance of FrontEnd: time 3.146e-06/0.7072, allocations: 4 kB / 487.9 MB, free: 2.848 MB / 410.8 MB Notification: Performance of Transformations before backend: time 6.519e-05/0.7072, allocations: 15.98 kB / 487.9 MB, free: 2.832 MB / 410.8 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.002454/0.7097, allocations: 0.8517 MB / 488.8 MB, free: 1.918 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/0.7098, allocations: 12.03 kB / 488.8 MB, free: 1.906 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.71, allocations: 78.52 kB / 488.9 MB, free: 1.82 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.7102, allocations: 63.25 kB / 488.9 MB, free: 1.758 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.7113, allocations: 421.9 kB / 489.4 MB, free: 1.305 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.681e-05/0.7114, allocations: 36.98 kB / 489.4 MB, free: 1.27 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.7115, allocations: 40 kB / 489.4 MB, free: 1.23 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.7126, allocations: 421.9 kB / 489.8 MB, free: 0.7969 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.7126, allocations: 0 / 489.8 MB, free: 0.7969 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.536e-05/0.7127, allocations: 16 kB / 489.9 MB, free: 0.7812 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.7127, allocations: 12 kB / 489.9 MB, free: 0.7695 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000804/0.7135, allocations: 265.9 kB / 490.1 MB, free: 0.5117 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003479/0.717, allocations: 1.13 MB / 491.3 MB, free: 15.32 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.7188, allocations: 460.7 kB / 491.7 MB, free: 14.86 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004591/0.7193, allocations: 158.2 kB / 491.9 MB, free: 14.7 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-05/0.7194, allocations: 8.438 kB / 491.9 MB, free: 14.69 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006912/0.7201, allocations: 256.5 kB / 492.1 MB, free: 14.43 MB / 426.8 MB Notification: Performance of pre-optimization done (n=52): time 3.777e-06/0.7201, allocations: 4 kB / 492.1 MB, free: 14.43 MB / 426.8 MB Notification: Performance of matching and sorting (n=52): time 0.0013/0.7214, allocations: 415.5 kB / 492.5 MB, free: 14.01 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.7215, allocations: 133 kB / 492.7 MB, free: 13.85 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009981/0.7226, allocations: 474.9 kB / 493.1 MB, free: 13.39 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.7227, allocations: 45.7 kB / 493.2 MB, free: 13.34 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/0.723, allocations: 249.4 kB / 493.4 MB, free: 13.09 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.7232, allocations: 122.5 kB / 493.5 MB, free: 12.97 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.7233, allocations: 8 kB / 493.5 MB, free: 12.96 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.7235, allocations: 370.8 kB / 493.9 MB, free: 12.59 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.724, allocations: 145.1 kB / 494 MB, free: 12.45 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.7245, allocations: 227.9 kB / 494.3 MB, free: 12.2 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003943/0.725, allocations: 123.2 kB / 494.4 MB, free: 12.08 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.725, allocations: 4 kB / 494.4 MB, free: 12.08 MB / 426.8 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001659/0.7266, allocations: 475.2 kB / 494.9 MB, free: 11.61 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.7267, allocations: 8 kB / 494.9 MB, free: 11.6 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.7267, allocations: 0 / 494.9 MB, free: 11.6 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002102/0.7269, allocations: 36.91 kB / 494.9 MB, free: 11.56 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/0.7276, allocations: 59.89 kB / 495 MB, free: 11.5 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/0.7295, allocations: 1.432 MB / 496.4 MB, free: 9.938 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008891/0.7305, allocations: 83.91 kB / 496.5 MB, free: 9.855 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.516e-05/0.7305, allocations: 16.09 kB / 496.5 MB, free: 9.84 MB / 426.8 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.0002627/0.7308, allocations: 174 kB / 496.7 MB, free: 9.664 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.731, allocations: 51.34 kB / 496.7 MB, free: 9.613 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/0.7324, allocations: 461.4 kB / 497.2 MB, free: 9.16 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.7324, allocations: 8 kB / 497.2 MB, free: 9.152 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.7324, allocations: 0 / 497.2 MB, free: 9.152 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.7324, allocations: 0 / 497.2 MB, free: 9.152 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/0.7352, allocations: 1.076 MB / 498.2 MB, free: 8.016 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.7353, allocations: 0 / 498.2 MB, free: 8.016 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003516/0.7356, allocations: 43.91 kB / 498.3 MB, free: 7.973 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.7356, allocations: 4 kB / 498.3 MB, free: 7.969 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.895e-05/0.7357, allocations: 15.92 kB / 498.3 MB, free: 7.953 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.114e-06/0.7357, allocations: 0 / 498.3 MB, free: 7.953 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7357, allocations: 4 kB / 498.3 MB, free: 7.949 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.737, allocations: 0.519 MB / 498.8 MB, free: 7.414 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.7372, allocations: 136.5 kB / 499 MB, free: 7.262 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.7374, allocations: 20 kB / 499 MB, free: 7.242 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007156/0.7381, allocations: 75.92 kB / 499.1 MB, free: 7.168 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.7384, allocations: 72.33 kB / 499.1 MB, free: 7.098 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.7385, allocations: 19.98 kB / 499.1 MB, free: 7.078 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0007479/0.7392, allocations: 353.2 kB / 499.5 MB, free: 6.734 MB / 426.8 MB Notification: Performance of sort global known variables: time 7.91e-07/0.7393, allocations: 4 kB / 499.5 MB, free: 6.73 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0008166/0.7401, allocations: 127.8 kB / 499.6 MB, free: 6.605 MB / 426.8 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.002872/0.743, allocations: 1.393 MB / 0.4893 GB, free: 5.262 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.7446, allocations: 493.5 kB / 0.4897 GB, free: 4.77 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.7447, allocations: 0 / 0.4897 GB, free: 4.77 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0006237/0.7453, allocations: 205.5 kB / 0.4899 GB, free: 4.566 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008252/0.7461, allocations: 77.48 kB / 0.49 GB, free: 4.492 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.7488, allocations: 0.8129 MB / 0.4908 GB, free: 3.637 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006616/0.7495, allocations: 0.8803 MB / 0.4917 GB, free: 2.723 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0004817/0.75, allocations: 75.41 kB / 0.4917 GB, free: 2.648 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004847/0.7505, allocations: 191.4 kB / 0.4919 GB, free: 2.465 MB / 426.8 MB Notification: Performance of SimCode: time 1.323e-06/0.7506, allocations: 3.938 kB / 0.4919 GB, free: 2.461 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0465/0.7971, allocations: 11.05 MB / 0.5027 GB, free: 7.438 MB / 442.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003483/0.7975, allocations: 213.7 kB / 0.5029 GB, free: 7.199 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/3.704, allocations: 0 / 0.5029 GB, free: 7.199 MB / 442.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat