Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.209/2.209, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.088e-05, allocations: 7.984 kB / 284.4 MB, free: 8.105 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 50.36 MB / 334.8 MB, free: 5.648 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4705/0.5894, allocations: 82.49 MB / 417.3 MB, free: 11.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.5898, allocations: 82.45 kB / 417.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03856/0.6283, allocations: 8.617 MB / 426 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6284, allocations: 0 / 426 MB, free: 4.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.544e-05/0.6284, allocations: 4 kB / 426 MB, free: 4.684 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008883/0.6293, allocations: 0.5395 MB / 426.5 MB, free: 4.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.6294, allocations: 8.031 kB / 426.5 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.956e-05/0.6295, allocations: 47.36 kB / 426.6 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.809e-05/0.6296, allocations: 31.62 kB / 426.6 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.6303, allocations: 314.6 kB / 426.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.6303, allocations: 11.83 kB / 426.9 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.821e-05/0.6304, allocations: 14.88 kB / 426.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007486/0.6311, allocations: 313.7 kB / 427.2 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.6312, allocations: 3.984 kB / 427.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.6312, allocations: 3.312 kB / 427.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.6312, allocations: 4 kB / 427.3 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.6314, allocations: 64.3 kB / 427.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000761/0.6322, allocations: 445.4 kB / 427.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.6326, allocations: 175.8 kB / 427.9 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.6329, allocations: 92.17 kB / 428 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.909e-05/0.6329, allocations: 15.97 kB / 428 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/0.6331, allocations: 73.64 kB / 428.1 MB, free: 2.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.485e-06/0.6331, allocations: 0 / 428.1 MB, free: 2.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005734/0.6337, allocations: 192.4 kB / 428.3 MB, free: 2.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.6339, allocations: 172.4 kB / 428.5 MB, free: 2.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005337/0.6344, allocations: 312.8 kB / 428.8 MB, free: 1.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.6345, allocations: 29.39 kB / 428.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.6346, allocations: 131.7 kB / 428.9 MB, free: 1.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.489e-05/0.6347, allocations: 26.91 kB / 429 MB, free: 1.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.621e-05/0.6347, allocations: 7.375 kB / 429 MB, free: 1.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.6349, allocations: 341.6 kB / 429.3 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.635, allocations: 43.22 kB / 429.3 MB, free: 1.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.6353, allocations: 184.1 kB / 429.5 MB, free: 1.246 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.6355, allocations: 66.53 kB / 429.6 MB, free: 1.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.6355, allocations: 4 kB / 429.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000533/0.6361, allocations: 219.6 kB / 429.8 MB, free: 1.004 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.6361, allocations: 11.98 kB / 429.8 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.6361, allocations: 4 kB / 429.8 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.6362, allocations: 4 kB / 429.8 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.6365, allocations: 43.73 kB / 429.9 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.659e-05/0.6365, allocations: 8 kB / 429.9 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.6367, allocations: 24.06 kB / 429.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.6368, allocations: 15.98 kB / 429.9 MB, free: 0.9023 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001857/0.637, allocations: 141.7 kB / 430 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.6373, allocations: 135.1 kB / 430.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003978/0.6377, allocations: 133.5 kB / 430.3 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.6377, allocations: 4 kB / 430.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6377, allocations: 0 / 430.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.6378, allocations: 4 kB / 430.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003608/0.6381, allocations: 277.2 kB / 430.6 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.6382, allocations: 0 / 430.6 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.6384, allocations: 35.55 kB / 430.6 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.6385, allocations: 3.938 kB / 430.6 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.6385, allocations: 11.3 kB / 430.6 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.6385, allocations: 4 kB / 430.6 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.6385, allocations: 0 / 430.6 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005649/0.6391, allocations: 259.8 kB / 430.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.6393, allocations: 134.4 kB / 431 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.368e-05/0.6394, allocations: 7.438 kB / 431 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.6396, allocations: 10.98 kB / 431 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.6396, allocations: 7.984 kB / 431 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.6397, allocations: 15.14 kB / 431.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004135/0.6401, allocations: 251.6 kB / 431.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.6401, allocations: 0 / 431.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005445/0.6407, allocations: 62.69 kB / 431.4 MB, free: 15.53 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.002355/0.643, allocations: 1.333 MB / 432.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004986/0.6436, allocations: 156.7 kB / 432.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6436, allocations: 4.438 kB / 432.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.6437, allocations: 30.92 kB / 432.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.6444, allocations: 112.5 kB / 433 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.6461, allocations: 453.7 kB / 433.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007086/0.6469, allocations: 0.7757 MB / 434.2 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003051/0.6472, allocations: 38.56 kB / 434.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.6475, allocations: 84.72 kB / 434.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6475, allocations: 0 / 434.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0416/0.6892, allocations: 5.781 MB / 440.1 MB, free: 7.012 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003177/0.6895, allocations: 213.1 kB / 440.3 MB, free: 6.789 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.892/3.582, allocations: 4 kB / 440.3 MB, free: 6.785 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat