Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.SMEE_DOL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005158/0.0005157, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09813, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/0.5562, allocations: 114 MB / 422.6 MB, free: 7.539 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.5565, allocations: 91.48 kB / 422.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8657/1.422, allocations: 160.2 MB / 0.5692 GB, free: 62.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.422, allocations: 0 / 0.5692 GB, free: 62.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004073/1.423, allocations: 94.83 kB / 0.5693 GB, free: 62.32 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: 1046 * Number of variables: 1046 Notification: Performance of Generate backend data structure: time 0.01868/1.441, allocations: 4.353 MB / 0.5735 GB, free: 60.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/1.442, allocations: 15.16 kB / 0.5736 GB, free: 60.61 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002403/1.444, allocations: 0.5562 MB / 0.5741 GB, free: 60.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007681/1.452, allocations: 0.9135 MB / 0.575 GB, free: 60.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01441/1.466, allocations: 3.836 MB / 0.5787 GB, free: 59.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/1.467, allocations: 298 kB / 0.579 GB, free: 59.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001711/1.468, allocations: 397.9 kB / 0.5794 GB, free: 59.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01741/1.486, allocations: 5.111 MB / 0.5844 GB, free: 59.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002213/1.486, allocations: 6.688 kB / 0.5844 GB, free: 59.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0014/1.487, allocations: 174.6 kB / 0.5846 GB, free: 59.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/1.488, allocations: 170.6 kB / 0.5847 GB, free: 59.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/1.502, allocations: 4.188 MB / 0.5888 GB, free: 59.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04304/1.545, allocations: 16.82 MB / 0.6052 GB, free: 51.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/1.555, allocations: 8.4 MB / 0.6134 GB, free: 43.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/1.567, allocations: 4.228 MB / 0.6176 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/1.567, allocations: 51.19 kB / 0.6176 GB, free: 41.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=166): time 5.4e-06/1.567, allocations: 4 kB / 0.6176 GB, free: 41.23 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=199): time 0.02714/1.594, allocations: 8.139 MB / 0.6256 GB, free: 37.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/1.594, allocations: 79.28 kB / 0.6257 GB, free: 37.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00473/1.599, allocations: 1.975 MB / 0.6276 GB, free: 36.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000421/1.599, allocations: 61.2 kB / 0.6276 GB, free: 36.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/1.601, allocations: 1.71 MB / 0.6293 GB, free: 35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009211/1.602, allocations: 0.6784 MB / 0.63 GB, free: 34.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/1.602, allocations: 47.47 kB / 0.63 GB, free: 34.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/1.602, allocations: 409 kB / 0.6304 GB, free: 34.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002751/1.605, allocations: 0.9842 MB / 0.6314 GB, free: 33.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00326/1.608, allocations: 1.664 MB / 0.633 GB, free: 32.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/1.612, allocations: 1.291 MB / 0.6343 GB, free: 31.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.308e-05/1.612, allocations: 7.406 kB / 0.6343 GB, free: 31.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.008892/1.62, allocations: 3.22 MB / 0.6374 GB, free: 30.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.095e-05/1.621, allocations: 13.97 kB / 0.6374 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.031e-05/1.621, allocations: 18.81 kB / 0.6374 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/1.622, allocations: 472.5 kB / 0.6379 GB, free: 30.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004053/1.627, allocations: 0.5482 MB / 0.6384 GB, free: 29.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009351/1.636, allocations: 5.018 MB / 0.6433 GB, free: 25.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/1.639, allocations: 122.4 kB / 0.6434 GB, free: 24.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004761/1.64, allocations: 99.89 kB / 0.6435 GB, free: 24.87 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {(4,81.2%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003446/1.643, allocations: 1.218 MB / 0.6447 GB, free: 23.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007712/1.644, allocations: 256.9 kB / 0.645 GB, free: 23.52 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.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.008038/1.652, allocations: 2.978 MB / 0.6479 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/1.652, allocations: 23.42 kB / 0.6479 GB, free: 20.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/1.652, allocations: 8 kB / 0.6479 GB, free: 20.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.296e-05/1.652, allocations: 7.828 kB / 0.6479 GB, free: 20.88 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0173/1.669, allocations: 6.672 MB / 0.6544 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.916e-05/1.67, allocations: 4 kB / 0.6544 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00311/1.673, allocations: 365.4 kB / 0.6548 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/1.674, allocations: 485.2 kB / 0.6552 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000367/1.675, allocations: 55.69 kB / 0.6553 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009869/1.685, allocations: 6.316 MB / 0.6615 GB, free: 8.477 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.685, allocations: 0 / 0.6615 GB, free: 8.477 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/1.695, allocations: 4.415 MB / 0.6658 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/1.697, allocations: 0.5593 MB / 0.6663 GB, free: 3.875 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000802/1.698, allocations: 40 kB / 0.6664 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002491/1.701, allocations: 101.1 kB / 0.6665 GB, free: 3.758 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005569/1.701, allocations: 141.5 kB / 0.6666 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001743/1.701, allocations: 51.61 kB / 0.6666 GB, free: 3.629 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003414/1.705, allocations: 1.501 MB / 0.6681 GB, free: 2.352 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.292e-06/1.705, allocations: 0 / 0.6681 GB, free: 2.352 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004159/1.709, allocations: 0.8004 MB / 0.6689 GB, free: 1.555 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.is[3],smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 161 * 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: 2 {(7,53.1%) 30,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[1] 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.3051/2.014, allocations: 5.664 MB / 0.6744 GB, free: 75.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00848/2.023, allocations: 2.896 MB / 0.6773 GB, free: 75.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/2.023, allocations: 0.8125 kB / 0.6773 GB, free: 75.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004893/2.028, allocations: 1.682 MB / 0.6789 GB, free: 75.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004483/2.032, allocations: 0.5686 MB / 0.6795 GB, free: 75.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06169/2.094, allocations: 35.67 MB / 0.7143 GB, free: 53.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00458/2.099, allocations: 2.723 MB / 0.7169 GB, free: 52.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003844/2.102, allocations: 1.502 MB / 0.7184 GB, free: 52.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.433e-06/2.103, allocations: 3.969 kB / 0.7184 GB, free: 52.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.915/6.017, allocations: 105 MB / 0.8209 GB, free: 5.098 MB / 426.7 MB