Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",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.805/1.805, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2192/2.024, allocations: 46.83 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/2.12, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3217/2.441, allocations: 83.3 MB / 377.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/2.442, allocations: 83.45 kB / 377.3 MB, free: 6.844 MB / 298.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Magnetic/FluxTubes.mo:1375:11-1375:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.1034/2.545, allocations: 22.26 MB / 399.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/2.545, allocations: 8.719 kB / 399.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006459/2.546, allocations: 130.8 kB / 399.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/2.548, allocations: 0.6445 MB / 400.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/2.548, allocations: 45.12 kB / 400.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002589/2.549, allocations: 57.64 kB / 400.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00294/2.552, allocations: 0.727 MB / 401.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002806/2.554, allocations: 0.7982 MB / 402 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.248e-05/2.554, allocations: 1.281 kB / 402 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/2.555, allocations: 1.281 kB / 402 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/2.555, allocations: 30.84 kB / 402 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01175/2.566, allocations: 3.686 MB / 405.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002835/2.569, allocations: 0.5687 MB / 406.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/2.571, allocations: 351.2 kB / 406.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.875e-05/2.571, allocations: 8.094 kB / 406.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/2.571, allocations: 42.03 kB / 406.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 4.008e-06/2.571, allocations: 0 / 406.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.006124/2.577, allocations: 1.396 MB / 408 MB, free: 11.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/2.577, allocations: 89.48 kB / 408.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001837/2.579, allocations: 0.6928 MB / 408.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001634/2.579, allocations: 29.7 kB / 408.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003664/2.58, allocations: 411 kB / 409.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003791/2.58, allocations: 280.5 kB / 409.5 MB, free: 9.812 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/2.58, allocations: 0 / 409.5 MB, free: 9.812 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002528/2.58, allocations: 394.3 kB / 409.9 MB, free: 9.453 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/2.581, allocations: 284.7 kB / 410.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/2.583, allocations: 436.8 kB / 410.6 MB, free: 8.969 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/2.584, allocations: 311.8 kB / 410.9 MB, free: 8.797 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/2.584, allocations: 3.984 kB / 410.9 MB, free: 8.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002958/2.587, allocations: 0.8473 MB / 411.8 MB, free: 8.176 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/2.587, allocations: 8 kB / 411.8 MB, free: 8.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/2.587, allocations: 4.5 kB / 411.8 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.109e-05/2.587, allocations: 12 kB / 411.8 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003756/2.591, allocations: 374.6 kB / 412.2 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/2.591, allocations: 11.98 kB / 412.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002422/2.593, allocations: 107.9 kB / 412.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/2.593, allocations: 39.3 kB / 412.3 MB, free: 7.648 MB / 314.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: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 1 * 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.0003163/2.594, allocations: 136 kB / 412.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/2.594, allocations: 86.97 kB / 412.5 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/2.595, allocations: 327.1 kB / 412.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/2.595, allocations: 11.91 kB / 412.9 MB, free: 7.191 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/2.595, allocations: 0 / 412.9 MB, free: 7.191 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/2.595, allocations: 7.984 kB / 412.9 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00811/2.604, allocations: 2.662 MB / 415.5 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/2.604, allocations: 12.03 kB / 415.5 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002676/2.606, allocations: 286.2 kB / 415.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.438e-05/2.606, allocations: 20 kB / 415.8 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-05/2.606, allocations: 15.31 kB / 415.9 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-05/2.606, allocations: 27.86 kB / 415.9 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.15e-05/2.607, allocations: 15.94 kB / 415.9 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003075/2.61, allocations: 1.615 MB / 417.5 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003162/2.613, allocations: 2.002 MB / 419.5 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005249/2.613, allocations: 192 kB / 419.7 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/2.614, allocations: 19.98 kB / 419.7 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/2.615, allocations: 75.94 kB / 419.8 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/2.616, allocations: 83.67 kB / 419.9 MB, free: 200 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/2.616, allocations: 36 kB / 419.9 MB, free: 164 kB / 314.7 MB Notification: Performance of sort global known variables: time 0.001366/2.617, allocations: 0.5187 MB / 420.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002806/2.62, allocations: 207.9 kB / 420.6 MB, free: 15.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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 Backend phase and start with SimCode phase: time 0.0009066/2.621, allocations: 251.9 kB / 420.9 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002459/2.623, allocations: 0.7006 MB / 421.6 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/2.624, allocations: 4 kB / 421.6 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/2.625, allocations: 386.9 kB / 422 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/2.627, allocations: 151.4 kB / 422.1 MB, free: 14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006159/2.633, allocations: 1.535 MB / 423.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001888/2.635, allocations: 1.152 MB / 424.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of SimCode: time 1.322e-06/2.635, allocations: 0 / 424.8 MB, free: 11.13 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat