Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.211/2.211, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.207e-05/4.211e-05, allocations: 4 kB / 284.4 MB, free: 8.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 50.36 MB / 334.8 MB, free: 6.137 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4378/0.547, allocations: 79.54 MB / 414.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.5473, allocations: 54.67 kB / 414.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01171/0.559, allocations: 2.272 MB / 416.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5591, allocations: 0 / 416.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.144e-05/0.5591, allocations: 7.938 kB / 416.6 MB, free: 12.69 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.0008159/0.5599, allocations: 407.1 kB / 417 MB, free: 12.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.56, allocations: 12.03 kB / 417 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.339e-05/0.5601, allocations: 41.23 kB / 417.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.5602, allocations: 15.81 kB / 417.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.5605, allocations: 214.1 kB / 417.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.5605, allocations: 15.45 kB / 417.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.5605, allocations: 4 kB / 417.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005266/0.5611, allocations: 199 kB / 417.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.5611, allocations: 0 / 417.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.5611, allocations: 0 / 417.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.5612, allocations: 4 kB / 417.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002172/0.5614, allocations: 64.16 kB / 417.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007441/0.5621, allocations: 336.8 kB / 417.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.5625, allocations: 131.7 kB / 418 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.5627, allocations: 59.27 kB / 418.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.5627, allocations: 8.125 kB / 418.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.5629, allocations: 90.09 kB / 418.2 MB, free: 11.08 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 3.286e-06/0.563, allocations: 4 kB / 418.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.000522/0.5635, allocations: 171.3 kB / 418.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.5636, allocations: 92.34 kB / 418.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.5638, allocations: 135.7 kB / 418.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.5638, allocations: 33.69 kB / 418.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.452e-05/0.5639, allocations: 161.3 kB / 418.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.471e-05/0.564, allocations: 23.59 kB / 418.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/0.564, allocations: 7.75 kB / 418.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5641, allocations: 322.4 kB / 419.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.951e-05/0.5642, allocations: 22.62 kB / 419.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.5644, allocations: 96.75 kB / 419.2 MB, free: 10.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.5645, allocations: 50.47 kB / 419.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.5645, allocations: 0 / 419.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003665/0.5649, allocations: 154.5 kB / 419.4 MB, free: 9.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.565, allocations: 10.95 kB / 419.5 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.565, allocations: 4 kB / 419.5 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.565, allocations: 4 kB / 419.5 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.5652, allocations: 23.92 kB / 419.5 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.5653, allocations: 7.984 kB / 419.5 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.5654, allocations: 11.56 kB / 419.5 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.5655, allocations: 15.95 kB / 419.5 MB, free: 9.789 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.0002062/0.5657, allocations: 136.4 kB / 419.7 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.5659, allocations: 71.77 kB / 419.7 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.095e-05/0.566, allocations: 19.34 kB / 419.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.566, allocations: 7.938 kB / 419.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.566, allocations: 0 / 419.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.566, allocations: 0 / 419.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000742/0.5668, allocations: 443.7 kB / 420.2 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.5668, allocations: 4 kB / 420.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.567, allocations: 11.94 kB / 420.2 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.567, allocations: 0 / 420.2 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.567, allocations: 7.984 kB / 420.2 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.567, allocations: 0 / 420.2 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.567, allocations: 3.953 kB / 420.2 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005029/0.5676, allocations: 284.7 kB / 420.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.938e-05/0.5676, allocations: 88.92 kB / 420.6 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.5677, allocations: 14.98 kB / 420.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.5679, allocations: 15.45 kB / 420.6 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.568, allocations: 11.92 kB / 420.6 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.568, allocations: 4 kB / 420.6 MB, free: 8.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001412/0.5682, allocations: 130.5 kB / 420.7 MB, free: 8.562 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5682, allocations: 0 / 420.7 MB, free: 8.562 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004368/0.5686, allocations: 23.94 kB / 420.8 MB, free: 8.543 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.001096/0.5697, allocations: 0.9655 MB / 421.7 MB, free: 7.605 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.5701, allocations: 104.6 kB / 421.8 MB, free: 7.523 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5702, allocations: 0 / 421.8 MB, free: 7.523 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.5703, allocations: 39.56 kB / 421.9 MB, free: 7.492 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.5707, allocations: 46.64 kB / 421.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009633/0.5717, allocations: 273.1 kB / 422.2 MB, free: 7.172 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.5721, allocations: 0.7305 MB / 422.9 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.5722, allocations: 38.73 kB / 423 MB, free: 6.398 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5722, allocations: 0 / 423 MB, free: 6.398 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.35/2.922, allocations: 2.181 MB / 425.1 MB, free: 4.238 MB / 346.7 MB