Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.732/1.732, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2369/1.969, allocations: 46.82 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/2.058, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/2.363, allocations: 85.26 MB / 379.2 MB, free: 6.184 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/2.363, allocations: 76.02 kB / 379.2 MB, free: 6.168 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.1899/2.553, allocations: 53.33 MB / 432.6 MB, free: 5.652 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/2.553, allocations: 12 kB / 432.6 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004179/2.553, allocations: 193.8 kB / 432.8 MB, free: 5.449 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003191/2.557, allocations: 1.138 MB / 433.9 MB, free: 4.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/2.557, allocations: 15.98 kB / 433.9 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/2.557, allocations: 37 kB / 434 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001291/2.558, allocations: 390.2 kB / 434.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/2.559, allocations: 422.3 kB / 434.8 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/2.559, allocations: 4 kB / 434.8 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.17e-05/2.56, allocations: 0 / 434.8 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/2.56, allocations: 19.98 kB / 434.8 MB, free: 3.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/2.565, allocations: 2.042 MB / 436.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/2.566, allocations: 439.9 kB / 437.2 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/2.567, allocations: 445.6 kB / 437.7 MB, free: 472 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01569/2.583, allocations: 7.701 MB / 445.4 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006699/2.584, allocations: 251.8 kB / 445.6 MB, free: 7.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=57): time 4.047e-06/2.584, allocations: 0 / 445.6 MB, free: 7.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.007392/2.591, allocations: 2.106 MB / 447.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/2.591, allocations: 63.84 kB / 447.8 MB, free: 5.078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/2.594, allocations: 0.9864 MB / 448.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.222e-05/2.594, allocations: 25.7 kB / 448.8 MB, free: 4.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003932/2.594, allocations: 372.3 kB / 449.2 MB, free: 3.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/2.594, allocations: 205 kB / 449.4 MB, free: 3.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/2.594, allocations: 0 / 449.4 MB, free: 3.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/2.595, allocations: 334 kB / 449.7 MB, free: 3.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005374/2.595, allocations: 157.4 kB / 449.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006808/2.596, allocations: 318.8 kB / 450.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/2.597, allocations: 346.6 kB / 450.5 MB, free: 2.293 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/2.597, allocations: 4 kB / 450.5 MB, free: 2.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00313/2.6, allocations: 0.9266 MB / 451.4 MB, free: 1.352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/2.6, allocations: 7.984 kB / 451.4 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001635/2.601, allocations: 52 kB / 451.5 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007617/2.601, allocations: 149 kB / 451.6 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/2.602, allocations: 119.8 kB / 451.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/2.607, allocations: 2.199 MB / 454 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/2.608, allocations: 23.98 kB / 454 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/2.609, allocations: 32 kB / 454 MB, free: 14.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002182/2.609, allocations: 128.6 kB / 454.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/2.609, allocations: 182 kB / 454.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004698/2.614, allocations: 1.024 MB / 455.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/2.614, allocations: 8 kB / 455.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/2.614, allocations: 0 / 455.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/2.614, allocations: 4 kB / 455.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/2.616, allocations: 0.7951 MB / 456.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001551/2.616, allocations: 55.98 kB / 456.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007448/2.617, allocations: 71.95 kB / 456.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007275/2.617, allocations: 144.7 kB / 456.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.31e-05/2.618, allocations: 15.89 kB / 456.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004644/2.622, allocations: 2.18 MB / 458.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/2.622, allocations: 0 / 458.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003558/2.626, allocations: 1.075 MB / 459.7 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004289/2.63, allocations: 1.707 MB / 461.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006163/2.631, allocations: 251 kB / 461.6 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003083/2.631, allocations: 11.98 kB / 461.6 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008591/2.632, allocations: 19.92 kB / 461.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/2.632, allocations: 44.28 kB / 461.7 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.268e-05/2.632, allocations: 24 kB / 461.7 MB, free: 6.727 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001733/2.634, allocations: 0.7487 MB / 462.5 MB, free: 5.988 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002714/2.637, allocations: 403.6 kB / 462.9 MB, free: 5.594 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001409/2.638, allocations: 0.5918 MB / 463.5 MB, free: 5.051 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002367/2.641, allocations: 0.7399 MB / 464.2 MB, free: 4.293 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/2.641, allocations: 0 / 464.2 MB, free: 4.293 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001676/2.642, allocations: 0.5257 MB / 464.7 MB, free: 3.746 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/2.643, allocations: 150.2 kB / 464.9 MB, free: 3.598 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005652/2.649, allocations: 1.785 MB / 466.7 MB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/2.65, allocations: 1.271 MB / 467.9 MB, free: 480 kB / 362.7 MB Notification: Performance of SimCode: time 1.422e-06/2.65, allocations: 4 kB / 467.9 MB, free: 476 kB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat