Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.226/2.226, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005162/0.0005162, allocations: 8 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4018, allocations: 44.5 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1362/0.5381, allocations: 75.03 MB / 383.6 MB, free: 1.543 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.5384, allocations: 79.95 kB / 383.7 MB, free: 1.465 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0312/0.5696, allocations: 6.892 MB / 390.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.368e-06/0.5697, allocations: 0 / 390.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.844e-05/0.5697, allocations: 7.938 kB / 390.6 MB, free: 10.53 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001287/0.571, allocations: 0.554 MB / 391.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.5711, allocations: 12.03 kB / 391.1 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.8e-05/0.5712, allocations: 62.55 kB / 391.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.151e-05/0.5713, allocations: 31.62 kB / 391.2 MB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004646/0.5718, allocations: 271 kB / 391.5 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.5718, allocations: 20.56 kB / 391.5 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.989e-05/0.5719, allocations: 27.94 kB / 391.5 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007697/0.5727, allocations: 244.9 kB / 391.8 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.5727, allocations: 0 / 391.8 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.5728, allocations: 12 kB / 391.8 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.5728, allocations: 4 kB / 391.8 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007798/0.5736, allocations: 222.1 kB / 392 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.5761, allocations: 1.017 MB / 393 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.5768, allocations: 214.3 kB / 393.2 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.5768, allocations: 4 kB / 393.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.5769, allocations: 34.59 kB / 393.3 MB, free: 7.617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.575e-06/0.5769, allocations: 0 / 393.3 MB, free: 7.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.008058/0.5849, allocations: 1.503 MB / 394.8 MB, free: 6.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.585, allocations: 59.36 kB / 394.8 MB, free: 5.965 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.5854, allocations: 204.1 kB / 395 MB, free: 5.758 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.375e-05/0.5854, allocations: 33.7 kB / 395.1 MB, free: 5.719 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.5856, allocations: 176.2 kB / 395.2 MB, free: 5.543 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.5857, allocations: 126.2 kB / 395.4 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.5858, allocations: 4 kB / 395.4 MB, free: 5.414 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.5859, allocations: 342.8 kB / 395.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.5864, allocations: 107.9 kB / 395.8 MB, free: 4.965 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.5868, allocations: 148.6 kB / 395.9 MB, free: 4.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.5873, allocations: 129.6 kB / 396.1 MB, free: 4.676 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5873, allocations: 3.938 kB / 396.1 MB, free: 4.672 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002649/0.59, allocations: 0.5317 MB / 396.6 MB, free: 4.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.59, allocations: 8 kB / 396.6 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.59, allocations: 0 / 396.6 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002445/0.5925, allocations: 261.4 kB / 396.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/0.593, allocations: 59.89 kB / 396.9 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007231/0.6003, allocations: 3.791 MB / 400.7 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.6007, allocations: 16.02 kB / 400.7 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.6008, allocations: 12 kB / 400.7 MB, free: 15.71 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000253/0.6011, allocations: 145.8 kB / 400.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.192e-05/0.6012, allocations: 27.78 kB / 400.9 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.6013, allocations: 43.47 kB / 401 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.6013, allocations: 4 kB / 401 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.098e-06/0.6013, allocations: 0 / 401 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.6013, allocations: 3.984 kB / 401 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000668/0.602, allocations: 381.4 kB / 401.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.602, allocations: 0 / 401.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/0.6024, allocations: 47.84 kB / 401.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002354/0.6048, allocations: 249.5 kB / 401.6 MB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.61e-05/0.6049, allocations: 7.953 kB / 401.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006781/0.6117, allocations: 3.684 MB / 405.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6117, allocations: 0 / 405.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00317/0.6149, allocations: 0.7192 MB / 406 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.6151, allocations: 104.8 kB / 406.1 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.17e-05/0.6152, allocations: 7.953 kB / 406.2 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003666/0.6156, allocations: 12 kB / 406.2 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.6157, allocations: 27.95 kB / 406.2 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.6158, allocations: 8 kB / 406.2 MB, free: 9.891 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002538/0.6161, allocations: 165.1 kB / 406.4 MB, free: 9.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6161, allocations: 7.938 kB / 406.4 MB, free: 9.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008032/0.6169, allocations: 104 kB / 406.5 MB, free: 9.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003634/0.6205, allocations: 1.28 MB / 407.7 MB, free: 8.305 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.6222, allocations: 0.5596 MB / 408.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.6223, allocations: 0 / 408.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009998/0.6233, allocations: 441.2 kB / 408.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/0.6237, allocations: 16.42 kB / 408.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006289/0.63, allocations: 2.578 MB / 411.3 MB, free: 4.582 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.6304, allocations: 0.7879 MB / 412.1 MB, free: 3.762 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001729/0.6306, allocations: 18.3 kB / 412.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.6308, allocations: 99.39 kB / 412.2 MB, free: 3.648 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6308, allocations: 0 / 412.2 MB, free: 3.648 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2905/0.9214, allocations: 7.956 MB / 420.2 MB, free: 96.2 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003537/0.9218, allocations: 213.3 kB / 420.4 MB, free: 95.96 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.004/3.926, allocations: 0 / 420.4 MB, free: 95.96 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat