Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.158/2.158, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.083e-05/4.086e-05, allocations: 11.94 kB / 284.4 MB, free: 8.105 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 50.37 MB / 334.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4963/0.6065, allocations: 79.49 MB / 414.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.6068, allocations: 59.22 kB / 414.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01089/0.6177, allocations: 2.265 MB / 416.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6178, allocations: 0 / 416.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.481e-05/0.6178, allocations: 7.938 kB / 416.6 MB, free: 12.46 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007818/0.6186, allocations: 413.7 kB / 417 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.6187, allocations: 12.03 kB / 417 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.283e-05/0.6187, allocations: 38.17 kB / 417.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.6188, allocations: 15.81 kB / 417.1 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.6191, allocations: 209.4 kB / 417.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.6191, allocations: 15.45 kB / 417.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.6192, allocations: 7.984 kB / 417.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.6197, allocations: 197.6 kB / 417.5 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.6197, allocations: 0 / 417.5 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.6198, allocations: 0 / 417.5 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.6198, allocations: 8 kB / 417.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.62, allocations: 61.66 kB / 417.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006719/0.6207, allocations: 335.3 kB / 417.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.621, allocations: 136.9 kB / 418 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.6212, allocations: 58.7 kB / 418.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.6212, allocations: 0 / 418.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.6214, allocations: 101.3 kB / 418.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.706e-06/0.6214, allocations: 0 / 418.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005/0.622, allocations: 172.9 kB / 418.4 MB, free: 10.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.6221, allocations: 88.55 kB / 418.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.6222, allocations: 138.7 kB / 418.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.6223, allocations: 29.7 kB / 418.6 MB, free: 10.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.441e-05/0.6224, allocations: 102.2 kB / 418.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.621e-05/0.6224, allocations: 31.66 kB / 418.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-06/0.6224, allocations: 3.562 kB / 418.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.6226, allocations: 329.7 kB / 419.1 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.341e-05/0.6227, allocations: 30.62 kB / 419.1 MB, free: 9.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.6228, allocations: 97.47 kB / 419.2 MB, free: 9.848 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.623, allocations: 46.84 kB / 419.2 MB, free: 9.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.623, allocations: 0 / 419.2 MB, free: 9.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003616/0.6234, allocations: 157.8 kB / 419.4 MB, free: 9.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.6234, allocations: 4 kB / 419.4 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.6234, allocations: 4 kB / 419.4 MB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.6235, allocations: 4 kB / 419.4 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.6237, allocations: 26.8 kB / 419.4 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.6237, allocations: 4 kB / 419.4 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.6238, allocations: 15.36 kB / 419.5 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.6239, allocations: 15.95 kB / 419.5 MB, free: 9.605 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = false ) "Connector of Real output signals" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.sampler.firstTrigger,sampler.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.x[1],stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],$whenCondition1,stateSpace2.sampleTrigger,$whenCondition2,sampler.sampleTrigger,sampler.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001886/0.6241, allocations: 131.2 kB / 419.6 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.6242, allocations: 71.58 kB / 419.7 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.344e-05/0.6243, allocations: 18.61 kB / 419.7 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.6243, allocations: 11.92 kB / 419.7 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.6243, allocations: 0 / 419.7 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.6244, allocations: 0 / 419.7 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007434/0.6251, allocations: 441.5 kB / 420.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.6251, allocations: 4 kB / 420.1 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.6253, allocations: 15.92 kB / 420.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.6253, allocations: 0 / 420.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.6253, allocations: 7.984 kB / 420.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.6253, allocations: 0 / 420.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.6254, allocations: 3.953 kB / 420.2 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005056/0.6259, allocations: 283.2 kB / 420.4 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.247e-05/0.626, allocations: 92.86 kB / 420.5 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.626, allocations: 4 kB / 420.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.6262, allocations: 19.81 kB / 420.5 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.387e-05/0.6263, allocations: 11.92 kB / 420.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.6264, allocations: 4 kB / 420.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002074/0.6266, allocations: 125.4 kB / 420.7 MB, free: 8.387 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6266, allocations: 0 / 420.7 MB, free: 8.387 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004327/0.6271, allocations: 27.17 kB / 420.7 MB, free: 8.363 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 (sampler.sampleTrigger,stateSpace2.sampleTrigger,$whenCondition2,$whenCondition1,stateSpace2.firstTrigger,stateSpace2.y[1],stateSpace2.x[1],sampler.firstTrigger,sampler.y) * Number of discrete states: 1 (stateSpace2.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001129/0.6282, allocations: 0.9628 MB / 421.7 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.6286, allocations: 103.7 kB / 421.8 MB, free: 7.348 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.6286, allocations: 4 kB / 421.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.6287, allocations: 38.19 kB / 421.8 MB, free: 7.316 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.6291, allocations: 38.66 kB / 421.9 MB, free: 7.285 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009181/0.6301, allocations: 249.4 kB / 422.1 MB, free: 7.031 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.6304, allocations: 0.731 MB / 422.8 MB, free: 6.277 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.264e-05/0.6305, allocations: 12.88 kB / 422.8 MB, free: 6.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.752e-05/0.6306, allocations: 38.23 kB / 422.9 MB, free: 6.242 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6306, allocations: 0 / 422.9 MB, free: 6.242 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02497/0.6556, allocations: 2.434 MB / 425.3 MB, free: 3.867 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003353/0.656, allocations: 172.2 kB / 425.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/3.036, allocations: 0 / 425.5 MB, free: 3.637 MB / 346.7 MB