Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.076/2.076, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.24e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2977, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1557/0.4534, allocations: 86.77 MB / 381 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/0.4538, allocations: 83.95 kB / 381.1 MB, free: 11 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.6399/1.094, allocations: 76.57 MB / 457.6 MB, free: 84.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.094, allocations: 0 / 457.6 MB, free: 84.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.001031/1.095, allocations: 110.8 kB / 457.7 MB, free: 84.2 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01529/1.11, allocations: 5.595 MB / 463.3 MB, free: 81.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/1.11, allocations: 7.688 kB / 463.3 MB, free: 81.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002471/1.113, allocations: 0.873 MB / 464.2 MB, free: 80.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/1.124, allocations: 3.576 MB / 467.8 MB, free: 77.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/1.124, allocations: 68 kB / 467.9 MB, free: 77.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004517/1.124, allocations: 129.7 kB / 468 MB, free: 77.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004646/1.129, allocations: 1.683 MB / 469.7 MB, free: 76.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004285/1.133, allocations: 1.724 MB / 471.4 MB, free: 75.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.511e-05/1.134, allocations: 0 / 471.4 MB, free: 75.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/1.134, allocations: 3.953 kB / 471.4 MB, free: 75.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.255e-05/1.134, allocations: 52 kB / 471.4 MB, free: 75.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02388/1.158, allocations: 9.763 MB / 481.2 MB, free: 65.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004587/1.162, allocations: 2.178 MB / 483.4 MB, free: 63.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002946/1.165, allocations: 1.255 MB / 484.6 MB, free: 62.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002304/1.166, allocations: 38.44 kB / 484.7 MB, free: 62.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002331/1.168, allocations: 1.033 MB / 485.7 MB, free: 60.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=246): time 5.631e-06/1.168, allocations: 0 / 485.7 MB, free: 60.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=382): time 0.06044/1.228, allocations: 16.56 MB / 0.4905 GB, free: 44.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/1.229, allocations: 282.6 kB / 0.4908 GB, free: 43.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1663/1.395, allocations: 12.89 MB / 0.5034 GB, free: 31.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007529/1.396, allocations: 33.69 kB / 0.5034 GB, free: 31.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004625/1.4, allocations: 2.86 MB / 0.5062 GB, free: 28.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002156/1.403, allocations: 1.212 MB / 0.5074 GB, free: 26.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005882/1.403, allocations: 4 kB / 0.5074 GB, free: 26.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003025/1.404, allocations: 446.3 kB / 0.5078 GB, free: 26.49 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005023/1.409, allocations: 1.222 MB / 0.509 GB, free: 25.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005826/1.414, allocations: 1.543 MB / 0.5105 GB, free: 23.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005922/1.42, allocations: 1.417 MB / 0.5119 GB, free: 22.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.916e-05/1.42, allocations: 0 / 0.5119 GB, free: 22.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.02215/1.443, allocations: 4.335 MB / 0.5161 GB, free: 17.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/1.443, allocations: 33.7 kB / 0.5161 GB, free: 17.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/1.443, allocations: 4 kB / 0.5161 GB, free: 17.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01277/1.456, allocations: 1.378 MB / 0.5175 GB, free: 16.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007503/1.463, allocations: 0.5734 MB / 0.5181 GB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05016/1.513, allocations: 21.43 MB / 0.539 GB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00631/1.52, allocations: 127.9 kB / 0.5391 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.521, allocations: 131.8 kB / 0.5392 GB, free: 9.16 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (319): * Single equations (assignments): 307 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.0009755/1.522, allocations: 156.7 kB / 0.5394 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01977/1.542, allocations: 4.724 MB / 0.544 GB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003355/1.545, allocations: 0.8448 MB / 0.5448 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02091/1.566, allocations: 5.12 MB / 0.5498 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009042/1.575, allocations: 2.234 MB / 0.552 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.228e-05/1.575, allocations: 8 kB / 0.552 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001188/1.575, allocations: 19.92 kB / 0.552 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3154/1.891, allocations: 13.45 MB / 0.5652 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.473e-05/1.891, allocations: 2.188 kB / 0.5652 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005146/1.896, allocations: 0.4907 MB / 0.5656 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009963/1.906, allocations: 1.407 MB / 0.567 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007286/1.907, allocations: 30.11 kB / 0.567 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03387/1.941, allocations: 19.66 MB / 0.5862 GB, free: 94.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09152/2.032, allocations: 26.43 MB / 0.612 GB, free: 81.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02348/2.056, allocations: 7.531 MB / 0.6194 GB, free: 77.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006435/2.062, allocations: 1.929 MB / 0.6213 GB, free: 76.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002357/2.065, allocations: 31.42 kB / 0.6213 GB, free: 76.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005739/2.07, allocations: 112.6 kB / 0.6214 GB, free: 76.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/2.072, allocations: 280.6 kB / 0.6217 GB, free: 75.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006036/2.072, allocations: 108.2 kB / 0.6218 GB, free: 75.87 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.02333/2.096, allocations: 10.29 MB / 0.6318 GB, free: 66.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.302e-06/2.096, allocations: 3.844 kB / 0.6318 GB, free: 66.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008703/2.105, allocations: 1.601 MB / 0.6334 GB, free: 65.08 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET8577290633.x[2],$STATESET8577290633.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET8577290632.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.02477/2.129, allocations: 8.699 MB / 0.6419 GB, free: 56.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01111/2.14, allocations: 4.705 MB / 0.6465 GB, free: 52.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/2.141, allocations: 4 kB / 0.6465 GB, free: 52.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007615/2.148, allocations: 3.208 MB / 0.6496 GB, free: 49.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005237/2.153, allocations: 422.7 kB / 0.65 GB, free: 48.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04918/2.203, allocations: 19.12 MB / 0.6687 GB, free: 32.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00895/2.212, allocations: 4.207 MB / 0.6728 GB, free: 28.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00861/2.22, allocations: 3.456 MB / 0.6762 GB, free: 25.42 MB / 394.7 MB Notification: Performance of SimCode: time 9.12e-07/2.22, allocations: 0 / 0.6762 GB, free: 25.42 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.483/11.7, allocations: 0.8521 GB / 1.528 GB, free: 102.9 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat does not exist to compare? outputFormat=mat