Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.035/2.035, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003516, allocations: 12 kB / 264.1 MB, free: 3.469 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3109, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2074/0.5183, allocations: 107.9 MB / 416.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/0.5187, allocations: 87.95 kB / 416.6 MB, free: 476 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.215/1.734, allocations: 159.1 MB / 0.5622 GB, free: 32.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.957e-06/1.734, allocations: 0 / 0.5622 GB, free: 32.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007127/1.735, allocations: 166.6 kB / 0.5624 GB, free: 32.62 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.03296/1.768, allocations: 6.971 MB / 0.5692 GB, free: 30.65 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.271e-05/1.768, allocations: 8.875 kB / 0.5692 GB, free: 30.65 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004606/1.773, allocations: 0.961 MB / 0.5702 GB, free: 30.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01327/1.786, allocations: 1.523 MB / 0.5716 GB, free: 30.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02229/1.808, allocations: 5.736 MB / 0.5772 GB, free: 29.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008819/1.809, allocations: 0.5132 MB / 0.5777 GB, free: 29.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003503/1.813, allocations: 0.6822 MB / 0.5784 GB, free: 29.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03436/1.847, allocations: 9.186 MB / 0.5874 GB, free: 28.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004339/1.848, allocations: 7.562 kB / 0.5874 GB, free: 28.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002962/1.851, allocations: 298.5 kB / 0.5877 GB, free: 28.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004702/1.851, allocations: 318.6 kB / 0.588 GB, free: 28.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02614/1.877, allocations: 7.536 MB / 0.5953 GB, free: 28.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08902/1.966, allocations: 28.79 MB / 0.6235 GB, free: 22.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03181/1.998, allocations: 16.55 MB / 0.6396 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0248/2.023, allocations: 6.601 MB / 0.6461 GB, free: 4.578 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.38e-05/2.023, allocations: 66.16 kB / 0.6461 GB, free: 4.516 MB / 394.7 MB Notification: Performance of pre-optimization done (n=278): time 7.273e-06/2.023, allocations: 0 / 0.6461 GB, free: 4.516 MB / 394.7 MB Warning: The linear system: 1 : smr3.is[1] + smr3.is[2] + smr3.is[3] = 0.0 2 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smr3.is[2] ; smr3.is[1] ] = [ -smr3.is[3] ; smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smr3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=312): time 0.05597/2.079, allocations: 13.5 MB / 0.6593 GB, free: 14.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/2.079, allocations: 83.77 kB / 0.6594 GB, free: 14.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009435/2.089, allocations: 2.909 MB / 0.6622 GB, free: 12.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007765/2.09, allocations: 81.08 kB / 0.6623 GB, free: 12.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004138/2.094, allocations: 2.976 MB / 0.6652 GB, free: 10.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002052/2.096, allocations: 1.069 MB / 0.6663 GB, free: 9.789 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005632/2.097, allocations: 75.03 kB / 0.6663 GB, free: 9.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004379/2.097, allocations: 455 kB / 0.6668 GB, free: 9.363 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005264/2.102, allocations: 1.578 MB / 0.6683 GB, free: 8.734 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006752/2.109, allocations: 2.571 MB / 0.6708 GB, free: 6.883 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006908/2.116, allocations: 2.05 MB / 0.6728 GB, free: 5.926 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.017e-05/2.116, allocations: 9.969 kB / 0.6728 GB, free: 5.926 MB / 410.7 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.02673/2.143, allocations: 5.298 MB / 0.678 GB, free: 3.836 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.575e-05/2.143, allocations: 18.03 kB / 0.678 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/2.143, allocations: 29.31 kB / 0.678 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004489/2.148, allocations: 0.7507 MB / 0.6788 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006665/2.155, allocations: 0.8162 MB / 0.6796 GB, free: 3.555 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02124/2.176, allocations: 10.76 MB / 0.6901 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00548/2.181, allocations: 168.9 kB / 0.6902 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/2.183, allocations: 159.8 kB / 0.6904 GB, free: 9.938 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (417): * Single equations (assignments): 411 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,81.2%) 30,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007598/2.19, allocations: 2.097 MB / 0.6924 GB, free: 8.133 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/2.192, allocations: 381.9 kB / 0.6928 GB, free: 7.762 MB / 426.7 MB Warning: The linear system: 1 : smr3.is[1] + smr3.is[2] + smr3.is[3] = 0.0 2 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ -smr3.is[3] ; smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smr3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01913/2.211, allocations: 4.889 MB / 0.6976 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/2.211, allocations: 32 kB / 0.6976 GB, free: 3.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.693e-05/2.211, allocations: 12 kB / 0.6976 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/2.211, allocations: 29.39 kB / 0.6977 GB, free: 3.457 MB / 426.7 MB Warning: The linear system: 1 : smr3.is[1] + smr3.is[2] + smr3.is[3] = 0.0 2 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ -smr3.is[3] ; smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smr3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04057/2.252, allocations: 11.36 MB / 0.7087 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-05/2.252, allocations: 6.75 kB / 0.7088 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004748/2.257, allocations: 0.4893 MB / 0.7092 GB, free: 9.934 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004757/2.262, allocations: 0.9956 MB / 0.7102 GB, free: 9.105 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007556/2.263, allocations: 86.64 kB / 0.7103 GB, free: 9.031 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3955/2.658, allocations: 17.7 MB / 0.7276 GB, free: 70.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/2.658, allocations: 5.531 kB / 0.7276 GB, free: 70.36 MB / 442.7 MB Warning: The linear system: 1 : smr3.is[1] + smr3.is[2] + smr3.is[3] = 0.0 2 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ -smr3.is[3] ; smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smr3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02049/2.679, allocations: 7.323 MB / 0.7347 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003358/2.682, allocations: 0.8122 MB / 0.7355 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001769/2.684, allocations: 73.84 kB / 0.7356 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004794/2.689, allocations: 153.2 kB / 0.7357 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001474/2.69, allocations: 234.1 kB / 0.736 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007847/2.691, allocations: 88.25 kB / 0.736 GB, free: 69.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006382/2.698, allocations: 2.223 MB / 0.7382 GB, free: 68.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.698, allocations: 0 / 0.7382 GB, free: 68.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007558/2.705, allocations: 1.262 MB / 0.7394 GB, free: 68.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.is[3],smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.stator.zeroInductor.i0,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (236): * Single equations (assignments): 230 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 33,(6,69.4%) 28,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Warning: The linear system: 1 : smr3.is[1] + smr3.is[2] + smr3.is[3] = 0.0 2 : 3.0 * smr3.stator.zeroInductor.i0 = smr3.is[1] + smr3.is[2] + smr3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smr3.is[1] ; smr3.is[2] ] = [ -smr3.is[3] ; smr3.is[3] + (-3.0) * smr3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smr3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of Backend phase and start with SimCode phase: time 0.02187/2.727, allocations: 9.138 MB / 0.7484 GB, free: 66.47 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01318/2.74, allocations: 4.824 MB / 0.7531 GB, free: 65.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/2.74, allocations: 6.656 kB / 0.7531 GB, free: 65.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008779/2.749, allocations: 3.123 MB / 0.7561 GB, free: 64.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007997/2.757, allocations: 0.9188 MB / 0.757 GB, free: 64.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1159/2.873, allocations: 57.07 MB / 0.8128 GB, free: 29.78 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009998/2.883, allocations: 4.401 MB / 0.8171 GB, free: 28.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006331/2.89, allocations: 0.8739 MB / 0.8179 GB, free: 28.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00687/2.897, allocations: 2.565 MB / 0.8204 GB, free: 27.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.814e-06/2.897, allocations: 0 / 0.8204 GB, free: 27.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6742/3.571, allocations: 103.9 MB / 0.9219 GB, free: 63.95 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0007368/3.572, allocations: 234 kB / 0.9221 GB, free: 63.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.078/10.65, allocations: 2.516 kB / 0.9221 GB, free: 63.71 MB / 442.7 MB