Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force") Notification: Performance of loadModel(ModelicaTest): time 2.347/2.347, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.511e-05/1.517e-05, allocations: 0 / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2713, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4129, allocations: 84.32 MB / 442.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.4134, allocations: 67.95 kB / 442.4 MB, free: 10.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03527/0.4487, allocations: 5.48 MB / 447.9 MB, free: 4.926 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.011e-06/0.4487, allocations: 0 / 447.9 MB, free: 4.926 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.745e-05/0.4488, allocations: 8 kB / 447.9 MB, free: 4.918 MB / 378.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.002037/0.4508, allocations: 0.6046 MB / 448.5 MB, free: 4.266 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.4509, allocations: 8.031 kB / 448.5 MB, free: 4.258 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.4511, allocations: 43.53 kB / 448.6 MB, free: 4.215 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007703/0.4519, allocations: 278.2 kB / 448.8 MB, free: 3.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.629e-05/0.452, allocations: 16 kB / 448.9 MB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.4521, allocations: 24.97 kB / 448.9 MB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001242/0.4534, allocations: 253.5 kB / 449.1 MB, free: 3.617 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.4546, allocations: 258.1 kB / 449.4 MB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.845e-05/0.4546, allocations: 3.984 kB / 449.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.466e-05/0.4547, allocations: 0 / 449.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.4548, allocations: 12 kB / 449.4 MB, free: 3.344 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004837/0.4596, allocations: 1.265 MB / 450.7 MB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009765/0.4606, allocations: 232.1 kB / 450.9 MB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005298/0.4612, allocations: 145.3 kB / 451 MB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.845e-05/0.4613, allocations: 12.2 kB / 451 MB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.4613, allocations: 30.84 kB / 451.1 MB, free: 1.555 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 5.175e-06/0.4614, allocations: 0 / 451.1 MB, free: 1.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001093/0.4625, allocations: 243.6 kB / 451.3 MB, free: 1.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7e-05/0.4626, allocations: 63.36 kB / 451.4 MB, free: 1.238 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004432/0.463, allocations: 196.5 kB / 451.6 MB, free: 1.043 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.4631, allocations: 25.7 kB / 451.6 MB, free: 1.012 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002674/0.4634, allocations: 264.6 kB / 451.8 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.4636, allocations: 110.3 kB / 452 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.4637, allocations: 0 / 452 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.4639, allocations: 326.8 kB / 452.3 MB, free: 324 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.4643, allocations: 84.88 kB / 452.4 MB, free: 240 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004983/0.4649, allocations: 146.7 kB / 452.5 MB, free: 64 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005062/0.4654, allocations: 97.62 kB / 452.6 MB, free: 15.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.934e-06/0.4654, allocations: 0 / 452.6 MB, free: 15.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001276/0.4667, allocations: 291.1 kB / 452.9 MB, free: 15.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.4668, allocations: 8 kB / 452.9 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.4668, allocations: 3.984 kB / 452.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.941e-05/0.4669, allocations: 4 kB / 452.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.4681, allocations: 112.1 kB / 453 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.4681, allocations: 0 / 453 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000619/0.4687, allocations: 43.53 kB / 453 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.4688, allocations: 15.94 kB / 453.1 MB, free: 15.49 MB / 394.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 () * 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.0001954/0.4691, allocations: 116.8 kB / 453.2 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.4692, allocations: 27.7 kB / 453.2 MB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.4704, allocations: 260.8 kB / 453.5 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.4705, allocations: 8 kB / 453.5 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.41e-06/0.4705, allocations: 0 / 453.5 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/0.4705, allocations: 3.984 kB / 453.5 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009956/0.4715, allocations: 345.6 kB / 453.8 MB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.838e-06/0.4716, allocations: 3.938 kB / 453.8 MB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4726, allocations: 87.88 kB / 453.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/0.4727, allocations: 4 kB / 453.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.4727, allocations: 0 / 453.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.4728, allocations: 0 / 453.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.185e-06/0.4728, allocations: 4 kB / 453.9 MB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.4744, allocations: 459 kB / 454.3 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.4747, allocations: 124.7 kB / 454.5 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.958e-05/0.4748, allocations: 3.984 kB / 454.5 MB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005211/0.4754, allocations: 12 kB / 454.5 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.4755, allocations: 19.97 kB / 454.5 MB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.285e-05/0.4756, allocations: 16.05 kB / 454.5 MB, free: 13.95 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003253/0.4759, allocations: 156.5 kB / 454.7 MB, free: 13.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.335e-06/0.476, allocations: 0 / 454.7 MB, free: 13.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000933/0.4769, allocations: 83.69 kB / 454.8 MB, free: 13.71 MB / 394.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 () * 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.0002257/0.4772, allocations: 99.19 kB / 454.9 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009723/0.4782, allocations: 223.7 kB / 455.1 MB, free: 13.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.915e-06/0.4782, allocations: 4.438 kB / 455.1 MB, free: 13.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004695/0.4787, allocations: 115.9 kB / 455.2 MB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.4793, allocations: 27.03 kB / 455.2 MB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.4818, allocations: 0.5428 MB / 455.8 MB, free: 12.67 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007363/0.4826, allocations: 0.7916 MB / 456.6 MB, free: 11.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.4829, allocations: 31.42 kB / 456.6 MB, free: 11.82 MB / 394.7 MB Notification: Performance of SimCode: time 2.712e-06/0.4829, allocations: 0 / 456.6 MB, free: 11.82 MB / 394.7 MB Notification: Performance of Templates: time 0.01312/0.496, allocations: 3.627 MB / 460.2 MB, free: 8.207 MB / 394.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:_D_cse1,_D_cse2,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,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,der(position.s),der(position.v),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