Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.391/2.391, allocations: 194.9 MB / 211.1 MB, free: 7.789 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005052/0.0005053, allocations: 8 kB / 264.1 MB, free: 2.684 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3324, allocations: 44.5 MB / 308.6 MB, free: 12.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5327/0.8652, allocations: 142.9 MB / 451.5 MB, free: 45.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.8656, allocations: 110.7 kB / 451.6 MB, free: 45.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.077/1.942, allocations: 232.8 MB / 0.6683 GB, free: 52.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.268e-06/1.942, allocations: 0 / 0.6683 GB, free: 52.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006145/1.943, allocations: 160 kB / 0.6685 GB, free: 52.29 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03338/1.976, allocations: 7.267 MB / 0.6756 GB, free: 44.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/1.977, allocations: 8.031 kB / 0.6756 GB, free: 44.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005655/1.982, allocations: 1.16 MB / 0.6767 GB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03053/2.013, allocations: 3.678 MB / 0.6803 GB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0217/2.035, allocations: 5.961 MB / 0.6861 GB, free: 34.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008511/2.035, allocations: 0.5306 MB / 0.6866 GB, free: 33.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003586/2.039, allocations: 0.6927 MB / 0.6873 GB, free: 33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04266/2.082, allocations: 11.45 MB / 0.6985 GB, free: 21.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004885/2.082, allocations: 15.81 kB / 0.6985 GB, free: 21.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003265/2.086, allocations: 301.3 kB / 0.6988 GB, free: 21.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009133/2.087, allocations: 494.6 kB / 0.6993 GB, free: 20.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04338/2.13, allocations: 10.67 MB / 0.7097 GB, free: 9.887 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7135/2.844, allocations: 38.31 MB / 0.7471 GB, free: 38.81 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02376/2.867, allocations: 18.47 MB / 0.7651 GB, free: 25.82 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03956/2.907, allocations: 13.72 MB / 0.7785 GB, free: 24.74 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.77e-05/2.907, allocations: 77.73 kB / 0.7786 GB, free: 24.7 MB / 410.8 MB Notification: Performance of pre-optimization done (n=404): time 9.248e-06/2.907, allocations: 0 / 0.7786 GB, free: 24.7 MB / 410.8 MB Notification: Performance of matching and sorting (n=420): time 0.08196/2.989, allocations: 22.48 MB / 0.8006 GB, free: 18.37 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003487/2.993, allocations: 1.96 MB / 0.8025 GB, free: 32.64 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007556/3, allocations: 2.969 MB / 0.8054 GB, free: 31.54 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001043/3.001, allocations: 87.27 kB / 0.8055 GB, free: 31.46 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/3.004, allocations: 3.153 MB / 0.8085 GB, free: 29.07 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002382/3.007, allocations: 1.415 MB / 0.8099 GB, free: 27.98 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007232/3.007, allocations: 104 kB / 0.81 GB, free: 27.9 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000588/3.008, allocations: 0.5245 MB / 0.8105 GB, free: 27.5 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007829/3.016, allocations: 2.901 MB / 0.8134 GB, free: 26.32 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009331/3.025, allocations: 4.9 MB / 0.8182 GB, free: 22.55 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009506/3.035, allocations: 3.801 MB / 0.8219 GB, free: 20.83 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.221e-05/3.035, allocations: 20.73 kB / 0.8219 GB, free: 20.83 MB / 426.8 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02689/3.062, allocations: 9.427 MB / 0.8311 GB, free: 17.12 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.605e-05/3.062, allocations: 33.22 kB / 0.8311 GB, free: 17.12 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/3.062, allocations: 64.03 kB / 0.8312 GB, free: 17.12 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008471/3.071, allocations: 2.483 MB / 0.8336 GB, free: 16.4 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007799/3.078, allocations: 1.067 MB / 0.8347 GB, free: 16.36 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/3.089, allocations: 5.407 MB / 0.8399 GB, free: 13.43 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006959/3.096, allocations: 320.1 kB / 0.8402 GB, free: 13.31 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001609/3.098, allocations: 273.2 kB / 0.8405 GB, free: 13.26 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (564): * Single equations (assignments): 542 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.008964/3.107, allocations: 2.508 MB / 0.8429 GB, free: 11.19 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0018/3.109, allocations: 406.9 kB / 0.8433 GB, free: 10.79 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02597/3.135, allocations: 7.926 MB / 0.8511 GB, free: 4.008 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000167/3.135, allocations: 97.94 kB / 0.8512 GB, free: 3.922 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/3.135, allocations: 0 / 0.8512 GB, free: 3.922 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/3.135, allocations: 20.77 kB / 0.8512 GB, free: 3.922 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05841/3.194, allocations: 19.6 MB / 0.8703 GB, free: 3.867 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.592e-05/3.194, allocations: 4 kB / 0.8703 GB, free: 3.863 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004922/3.199, allocations: 0.5421 MB / 0.8709 GB, free: 3.445 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009408/3.208, allocations: 2.465 MB / 0.8733 GB, free: 1.418 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00111/3.209, allocations: 93.19 kB / 0.8734 GB, free: 1.336 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/3.226, allocations: 7.273 MB / 0.8805 GB, free: 10.89 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003017/3.229, allocations: 1.908 MB / 0.8823 GB, free: 8.938 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3881/3.618, allocations: 13.23 MB / 0.8952 GB, free: 93.41 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005095/3.623, allocations: 1.094 MB / 0.8963 GB, free: 93.32 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002447/3.625, allocations: 69.3 kB / 0.8964 GB, free: 93.32 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005424/3.631, allocations: 206.6 kB / 0.8966 GB, free: 93.32 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001727/3.632, allocations: 322.1 kB / 0.8969 GB, free: 93.31 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001045/3.633, allocations: 122.9 kB / 0.897 GB, free: 93.31 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006562/3.64, allocations: 2.193 MB / 0.8991 GB, free: 93.17 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.203e-06/3.64, allocations: 0 / 0.8991 GB, free: 93.17 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009319/3.649, allocations: 1.377 MB / 0.9005 GB, free: 93.17 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * 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 (286): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.03314/3.683, allocations: 14.88 MB / 0.915 GB, free: 89.98 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02064/3.703, allocations: 7.341 MB / 0.9222 GB, free: 89.67 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/3.703, allocations: 0 / 0.9222 GB, free: 89.67 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01134/3.715, allocations: 3.657 MB / 0.9258 GB, free: 89.41 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007991/3.723, allocations: 0.8875 MB / 0.9266 GB, free: 89.39 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1307/3.853, allocations: 89.02 MB / 1.014 GB, free: 27.06 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01068/3.864, allocations: 4.672 MB / 1.018 GB, free: 25.32 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.007521/3.872, allocations: 1.175 MB / 1.019 GB, free: 25.17 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006836/3.879, allocations: 2.554 MB / 1.022 GB, free: 23.06 MB / 458.8 MB Notification: Performance of SimCode: time 2.505e-06/3.879, allocations: 0 / 1.022 GB, free: 23.06 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6274/4.506, allocations: 133.5 MB / 1.152 GB, free: 73.79 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002154/4.506, allocations: 276 kB / 1.152 GB, free: 73.43 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/12.33, allocations: 3.938 kB / 1.152 GB, free: 73.42 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat