Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.205/2.205, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004199/0.00042, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4323/0.4328, allocations: 54.87 MB / 369.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Shapes.Force): time 0.004259/0.4371, allocations: 2.362 MB / 371.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.4389, allocations: 0.7417 MB / 372.4 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001995/0.4391, allocations: 4 kB / 372.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.4393, allocations: 39.69 kB / 372.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003817/0.4397, allocations: 127.6 kB / 372.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.44, allocations: 75.91 kB / 372.6 MB, free: 9.383 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005807/0.4406, allocations: 307.8 kB / 372.9 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003135/0.441, allocations: 130.4 kB / 373.1 MB, free: 8.953 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.4413, allocations: 147.5 kB / 373.2 MB, free: 8.809 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.4416, allocations: 175.2 kB / 373.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.86e-05/0.4417, allocations: 20 kB / 373.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.882e-05/0.4418, allocations: 20 kB / 373.4 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.4419, allocations: 71.67 kB / 373.5 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.442, allocations: 89.52 kB / 373.6 MB, free: 8.434 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005008/0.4426, allocations: 340 kB / 373.9 MB, free: 8.102 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.4426, allocations: 3.938 kB / 373.9 MB, free: 8.098 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4426, allocations: 0 / 373.9 MB, free: 8.098 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4426, allocations: 4 kB / 373.9 MB, free: 8.094 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.00197/0.4446, allocations: 0.6395 MB / 374.5 MB, free: 7.406 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4446, allocations: 8.031 kB / 374.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.4448, allocations: 74.53 kB / 374.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.4449, allocations: 43.53 kB / 374.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.4454, allocations: 286.3 kB / 374.9 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.4455, allocations: 25 kB / 375 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.814e-05/0.4456, allocations: 40 kB / 375 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.4466, allocations: 342.5 kB / 375.3 MB, free: 6.547 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.4467, allocations: 3.938 kB / 375.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/0.4467, allocations: 16 kB / 375.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.4468, allocations: 12 kB / 375.4 MB, free: 6.516 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.4479, allocations: 311.8 kB / 375.7 MB, free: 6.211 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.4515, allocations: 1.345 MB / 377 MB, free: 4.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009187/0.4525, allocations: 296.6 kB / 377.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.386e-05/0.4526, allocations: 4.281 kB / 377.3 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.4526, allocations: 34.84 kB / 377.4 MB, free: 4.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 2.685e-06/0.4526, allocations: 0 / 377.4 MB, free: 4.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.001421/0.4541, allocations: 395 kB / 377.7 MB, free: 4.035 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.4541, allocations: 63.28 kB / 377.8 MB, free: 3.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004495/0.4546, allocations: 262.7 kB / 378.1 MB, free: 3.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.4546, allocations: 29.7 kB / 378.1 MB, free: 3.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.4549, allocations: 266.3 kB / 378.3 MB, free: 3.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.455, allocations: 118.3 kB / 378.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.455, allocations: 12 kB / 378.5 MB, free: 3.266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4552, allocations: 322.8 kB / 378.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.4557, allocations: 104.8 kB / 378.9 MB, free: 2.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.4562, allocations: 179.5 kB / 379.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.4567, allocations: 125.6 kB / 379.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4567, allocations: 0 / 379.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001154/0.4579, allocations: 367.3 kB / 379.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.4579, allocations: 4 kB / 379.6 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.458, allocations: 4 kB / 379.6 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.458, allocations: 4 kB / 379.6 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008813/0.4589, allocations: 107.8 kB / 379.7 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.4589, allocations: 4 kB / 379.7 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004908/0.4594, allocations: 51.58 kB / 379.7 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.4595, allocations: 8 kB / 379.7 MB, free: 1.977 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002766/0.4597, allocations: 153.7 kB / 379.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.4599, allocations: 39.56 kB / 379.9 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.461, allocations: 338.1 kB / 380.2 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.461, allocations: 7.984 kB / 380.3 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4611, allocations: 0 / 380.3 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.4611, allocations: 0 / 380.3 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007292/0.4618, allocations: 405.1 kB / 380.6 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4618, allocations: 0 / 380.6 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007746/0.4626, allocations: 83.89 kB / 380.7 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.594e-05/0.4626, allocations: 15.94 kB / 380.7 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.4627, allocations: 4 kB / 380.8 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.4627, allocations: 0 / 380.8 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.4627, allocations: 4 kB / 380.8 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.4643, allocations: 0.5224 MB / 381.3 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.4645, allocations: 120.8 kB / 381.4 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.716e-05/0.4646, allocations: 7.953 kB / 381.4 MB, free: 208 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003819/0.465, allocations: 19.98 kB / 381.4 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.957e-05/0.4651, allocations: 19.97 kB / 381.4 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.133e-05/0.4651, allocations: 8 kB / 381.4 MB, free: 160 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003137/0.4654, allocations: 198 kB / 381.6 MB, free: 15.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4655, allocations: 0 / 381.6 MB, free: 15.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005033/0.466, allocations: 99.69 kB / 381.7 MB, free: 15.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001849/0.4678, allocations: 1.071 MB / 382.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.4689, allocations: 287.8 kB / 383.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4689, allocations: 4 kB / 383.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004526/0.4693, allocations: 139.8 kB / 383.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.4697, allocations: 26.2 kB / 383.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.4748, allocations: 2.066 MB / 385.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.4753, allocations: 0.7951 MB / 386.1 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003483/0.4757, allocations: 115.4 kB / 386.2 MB, free: 11.25 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.4757, allocations: 0 / 386.2 MB, free: 11.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.534/3.01, allocations: 5.201 MB / 391.4 MB, free: 6.055 MB / 314.7 MB "Error: Could not read variable position.af in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable position.af from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable position.bf in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable position.bf from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! " Variables in the reference:time,position.s,hollowCylinderAxialFlux.F_m,cuboidParallelFlux.F_m,cuboidOrthogonalFlux.F_m,hollowCylinderRadialFlux.F_m,leakageAroundPoles.F_m Variables in the result:constantSource.Phi,constantSource.V_m,constantSource.port_n.Phi,constantSource.port_n.V_m,constantSource.port_p.Phi,constantSource.port_p.V_m,cuboidOrthogonalFlux.A,cuboidOrthogonalFlux.B,cuboidOrthogonalFlux.F_m,cuboidOrthogonalFlux.G_m,cuboidOrthogonalFlux.Phi,cuboidOrthogonalFlux.R_m,cuboidOrthogonalFlux.V_m,cuboidOrthogonalFlux.a,cuboidOrthogonalFlux.b,cuboidOrthogonalFlux.dGmBydx,cuboidOrthogonalFlux.dlBydx,cuboidOrthogonalFlux.flange.f,cuboidOrthogonalFlux.flange.s,cuboidOrthogonalFlux.l,cuboidOrthogonalFlux.mu_r,cuboidOrthogonalFlux.port_n.Phi,cuboidOrthogonalFlux.port_n.V_m,cuboidOrthogonalFlux.port_p.Phi,cuboidOrthogonalFlux.port_p.V_m,cuboidOrthogonalFlux.s,cuboidOrthogonalFlux.s_support,cuboidOrthogonalFlux.useSupport,cuboidParallelFlux.A,cuboidParallelFlux.B,cuboidParallelFlux.F_m,cuboidParallelFlux.G_m,cuboidParallelFlux.Phi,cuboidParallelFlux.R_m,cuboidParallelFlux.V_m,cuboidParallelFlux.a,cuboidParallelFlux.b,cuboidParallelFlux.dGmBydx,cuboidParallelFlux.dlBydx,cuboidParallelFlux.flange.f,cuboidParallelFlux.flange.s,cuboidParallelFlux.l,cuboidParallelFlux.mu_r,cuboidParallelFlux.port_n.Phi,cuboidParallelFlux.port_n.V_m,cuboidParallelFlux.port_p.Phi,cuboidParallelFlux.port_p.V_m,cuboidParallelFlux.s,cuboidParallelFlux.s_support,cuboidParallelFlux.useSupport,der(position.s),der(position.v),ground.port.Phi,ground.port.V_m,hollowCylinderAxialFlux.A,hollowCylinderAxialFlux.B,hollowCylinderAxialFlux.F_m,hollowCylinderAxialFlux.G_m,hollowCylinderAxialFlux.Phi,hollowCylinderAxialFlux.R_m,hollowCylinderAxialFlux.V_m,hollowCylinderAxialFlux.dGmBydx,hollowCylinderAxialFlux.dlBydx,hollowCylinderAxialFlux.flange.f,hollowCylinderAxialFlux.flange.s,hollowCylinderAxialFlux.l,hollowCylinderAxialFlux.mu_r,hollowCylinderAxialFlux.port_n.Phi,hollowCylinderAxialFlux.port_n.V_m,hollowCylinderAxialFlux.port_p.Phi,hollowCylinderAxialFlux.port_p.V_m,hollowCylinderAxialFlux.r_i,hollowCylinderAxialFlux.r_o,hollowCylinderAxialFlux.s,hollowCylinderAxialFlux.s_support,hollowCylinderAxialFlux.useSupport,hollowCylinderRadialFlux.A_avg,hollowCylinderRadialFlux.B_avg,hollowCylinderRadialFlux.F_m,hollowCylinderRadialFlux.G_m,hollowCylinderRadialFlux.Phi,hollowCylinderRadialFlux.R_m,hollowCylinderRadialFlux.V_m,hollowCylinderRadialFlux.dGmBydx,hollowCylinderRadialFlux.dlBydx,hollowCylinderRadialFlux.flange.f,hollowCylinderRadialFlux.flange.s,hollowCylinderRadialFlux.l,hollowCylinderRadialFlux.mu_r,hollowCylinderRadialFlux.port_n.Phi,hollowCylinderRadialFlux.port_n.V_m,hollowCylinderRadialFlux.port_p.Phi,hollowCylinderRadialFlux.port_p.V_m,hollowCylinderRadialFlux.r_i,hollowCylinderRadialFlux.r_o,hollowCylinderRadialFlux.s,hollowCylinderRadialFlux.s_support,hollowCylinderRadialFlux.useSupport,leakageAroundPoles.F_m,leakageAroundPoles.G_m,leakageAroundPoles.Phi,leakageAroundPoles.R_m,leakageAroundPoles.V_m,leakageAroundPoles.dGmBydx,leakageAroundPoles.dlBydx,leakageAroundPoles.flange.f,leakageAroundPoles.flange.s,leakageAroundPoles.l,leakageAroundPoles.mu_r,leakageAroundPoles.port_n.Phi,leakageAroundPoles.port_n.V_m,leakageAroundPoles.port_p.Phi,leakageAroundPoles.port_p.V_m,leakageAroundPoles.r,leakageAroundPoles.s,leakageAroundPoles.s_support,leakageAroundPoles.useSupport,leakageAroundPoles.w,position.a,position.exact,position.f_crit,position.flange.f,position.flange.s,position.s,position.s_ref,position.s_support,position.useSupport,position.v,position.w_crit,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time