Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.705/1.705, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003549, allocations: 15.98 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.0827, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3765/0.4593, allocations: 82.97 MB / 355.1 MB, free: 6 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003341/0.4597, allocations: 90.75 kB / 355.2 MB, free: 5.949 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1882/0.6479, allocations: 44.17 MB / 399.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.648, allocations: 0 / 399.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002899/0.6483, allocations: 48 kB / 399.4 MB, free: 15.89 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 513 * Number of variables: 513 Notification: Performance of Generate backend data structure: time 0.01095/0.6593, allocations: 2.618 MB / 402 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.6593, allocations: 8.031 kB / 402 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00123/0.6606, allocations: 287 kB / 402.3 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008854/0.6615, allocations: 284.5 kB / 402.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003975/0.6655, allocations: 1.266 MB / 403.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.6657, allocations: 156 kB / 404 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005462/0.6663, allocations: 211.8 kB / 404.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/0.6785, allocations: 1.852 MB / 406.1 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001572/0.6787, allocations: 4 kB / 406.1 MB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006451/0.6794, allocations: 83.95 kB / 406.2 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.648e-05/0.6795, allocations: 52 kB / 406.2 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/0.6924, allocations: 1.948 MB / 408.2 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02817/0.7207, allocations: 7.452 MB / 415.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006479/0.7272, allocations: 2.268 MB / 417.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003791/0.7276, allocations: 115.1 kB / 418 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/0.7277, allocations: 56.56 kB / 418 MB, free: 12.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 7.294e-06/0.7277, allocations: 0 / 418 MB, free: 12.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=350): time 0.3496/1.077, allocations: 17.51 MB / 435.6 MB, free: 85.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3087/1.386, allocations: 36.59 MB / 472.1 MB, free: 73.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003765/1.39, allocations: 1.629 MB / 473.8 MB, free: 72.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007232/1.391, allocations: 84.92 kB / 473.8 MB, free: 72.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008676/1.392, allocations: 0.9552 MB / 474.8 MB, free: 71.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001531/1.393, allocations: 1.158 MB / 476 MB, free: 70.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003882/1.394, allocations: 63.91 kB / 476 MB, free: 70.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/1.394, allocations: 430.7 kB / 476.4 MB, free: 70.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/1.398, allocations: 1.354 MB / 477.8 MB, free: 69.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005282/1.404, allocations: 1.633 MB / 479.4 MB, free: 69.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005402/1.409, allocations: 1.574 MB / 481 MB, free: 68.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-05/1.409, allocations: 4 kB / 481 MB, free: 68.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01439/1.424, allocations: 4.293 MB / 485.3 MB, free: 66.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-05/1.424, allocations: 38.02 kB / 485.3 MB, free: 66.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.135e-05/1.424, allocations: 3.844 kB / 485.3 MB, free: 66.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01905/1.443, allocations: 1.554 MB / 486.9 MB, free: 66.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006098/1.449, allocations: 0.5881 MB / 487.5 MB, free: 66.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/1.46, allocations: 9.905 MB / 497.4 MB, free: 56.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005305/1.465, allocations: 165.2 kB / 497.6 MB, free: 56.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009709/1.466, allocations: 127.3 kB / 497.7 MB, free: 56.36 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 293 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 48,2 38} Notification: Performance of prepare postOptimizeDAE: time 0.002645/1.469, allocations: 0.5816 MB / 498.3 MB, free: 55.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009987/1.47, allocations: 256.8 kB / 498.5 MB, free: 55.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/1.483, allocations: 4.254 MB / 0.491 GB, free: 51.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01077/1.494, allocations: 3.69 MB / 0.4946 GB, free: 48.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/1.494, allocations: 4 kB / 0.4946 GB, free: 48.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-05/1.494, allocations: 17.25 kB / 0.4946 GB, free: 48.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0252/1.519, allocations: 9.385 MB / 0.5038 GB, free: 40.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/1.519, allocations: 4 kB / 0.5038 GB, free: 40.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005516/1.525, allocations: 0.5039 MB / 0.5043 GB, free: 40.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01916/1.544, allocations: 1.595 MB / 0.5058 GB, free: 38.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007502/1.545, allocations: 87.91 kB / 0.5059 GB, free: 38.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/1.556, allocations: 9.949 MB / 0.5156 GB, free: 27.97 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2457/1.802, allocations: 32.54 MB / 0.5474 GB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02088/1.823, allocations: 6.447 MB / 0.5537 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/1.825, allocations: 0.6968 MB / 0.5544 GB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000781/1.826, allocations: 71.98 kB / 0.5544 GB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00433/1.83, allocations: 151.9 kB / 0.5546 GB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008524/1.831, allocations: 234.3 kB / 0.5548 GB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004084/1.832, allocations: 107.9 kB / 0.5549 GB, free: 3.047 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003174/1.835, allocations: 1.274 MB / 0.5562 GB, free: 1.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.835, allocations: 0 / 0.5562 GB, free: 1.781 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00472/1.84, allocations: 0.8468 MB / 0.557 GB, free: 0.9375 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 37,5 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.2555/2.095, allocations: 8.127 MB / 0.5649 GB, free: 89.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01328/2.108, allocations: 4.205 MB / 0.569 GB, free: 88.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/2.108, allocations: 1.188 kB / 0.569 GB, free: 88.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008292/2.117, allocations: 2.614 MB / 0.5716 GB, free: 88.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/2.12, allocations: 305.6 kB / 0.5719 GB, free: 88.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/2.144, allocations: 11.59 MB / 0.5832 GB, free: 82.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/2.146, allocations: 1.761 MB / 0.5849 GB, free: 81.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003364/2.149, allocations: 330.7 kB / 0.5852 GB, free: 81.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002975/2.152, allocations: 1.087 MB / 0.5863 GB, free: 81.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/2.152, allocations: 2.969 kB / 0.5863 GB, free: 81.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1813/2.333, allocations: 72.12 MB / 0.6567 GB, free: 33.14 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000234/2.334, allocations: 289.1 kB / 0.657 GB, free: 32.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.689/9.023, allocations: 3.938 kB / 0.657 GB, free: 32.78 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat