Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 114.4 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 183.8 kB / 18.71 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 242.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2058/0.2058, allocations: 44.18 MB / 336.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.91 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3473, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.00379/0.3511, allocations: 2.994 MB / 0.5213 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.3526, allocations: 0.7221 MB / 0.522 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.3528, allocations: 10.06 kB / 0.5221 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.353, allocations: 60.38 kB / 0.5221 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.3533, allocations: 106 kB / 0.5222 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.3536, allocations: 115 kB / 0.5223 GB, free: 468 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005123/0.3541, allocations: 472.5 kB / 0.5228 GB, free: 232 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.3544, allocations: 160 kB / 0.5229 GB, free: 140 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.3548, allocations: 182.1 kB / 0.5231 GB, free: 56 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.3551, allocations: 208.4 kB / 0.5233 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.288e-05/0.3552, allocations: 40 kB / 0.5233 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.164e-05/0.3553, allocations: 37.97 kB / 0.5234 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.3554, allocations: 93.38 kB / 0.5235 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.3556, allocations: 209.1 kB / 0.5237 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007/0.3563, allocations: 466.6 kB / 0.5241 GB, free: 15.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.3564, allocations: 0.7969 kB / 0.5241 GB, free: 15.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3564, allocations: 3.938 kB / 0.5241 GB, free: 15.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3564, allocations: 1.375 kB / 0.5241 GB, free: 15.58 MB / 398.1 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.001641/0.358, allocations: 0.7153 MB / 0.5248 GB, free: 15.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3581, allocations: 13.34 kB / 0.5248 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.3582, allocations: 75.66 kB / 0.5249 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.3583, allocations: 46.16 kB / 0.5249 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.3588, allocations: 288.6 kB / 0.5252 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.3589, allocations: 27.75 kB / 0.5252 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.359, allocations: 41.73 kB / 0.5253 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007076/0.3597, allocations: 351.2 kB / 0.5256 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3597, allocations: 4 kB / 0.5256 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.3598, allocations: 14.75 kB / 0.5256 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.3598, allocations: 9.625 kB / 0.5256 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007291/0.3605, allocations: 303 kB / 0.5259 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.3631, allocations: 1.331 MB / 0.5272 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.3637, allocations: 283.3 kB / 0.5275 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003403/0.3641, allocations: 159.2 kB / 0.5277 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.3641, allocations: 4.812 kB / 0.5277 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.3641, allocations: 36.11 kB / 0.5277 GB, free: 13.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.635e-06/0.3642, allocations: 0 / 0.5277 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008921/0.365, allocations: 385.3 kB / 0.5281 GB, free: 12.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.3651, allocations: 59.81 kB / 0.5281 GB, free: 12.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.3654, allocations: 263.8 kB / 0.5284 GB, free: 12.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.3655, allocations: 30.95 kB / 0.5284 GB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.3656, allocations: 205.5 kB / 0.5286 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.346e-05/0.3657, allocations: 125.7 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3658, allocations: 75.31 kB / 0.5288 GB, free: 12.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.366, allocations: 341.9 kB / 0.5291 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.3662, allocations: 101.9 kB / 0.5292 GB, free: 11.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.3665, allocations: 170.5 kB / 0.5294 GB, free: 11.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005359/0.3671, allocations: 289.5 kB / 0.5296 GB, free: 11.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3671, allocations: 13.12 kB / 0.5297 GB, free: 11.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007436/0.3678, allocations: 366.4 kB / 0.53 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.3679, allocations: 5.719 kB / 0.53 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.3679, allocations: 2.75 kB / 0.53 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.3679, allocations: 2.906 kB / 0.53 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.3685, allocations: 103.9 kB / 0.5301 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.3685, allocations: 7.234 kB / 0.5301 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.3688, allocations: 48.61 kB / 0.5302 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.3689, allocations: 14.17 kB / 0.5302 GB, free: 11.34 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.369, allocations: 156.1 kB / 0.5303 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.403e-05/0.3691, allocations: 29.12 kB / 0.5304 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007056/0.3698, allocations: 326.4 kB / 0.5307 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3698, allocations: 3.344 kB / 0.5307 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3698, allocations: 1.156 kB / 0.5307 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3699, allocations: 3.984 kB / 0.5307 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/0.3704, allocations: 409.9 kB / 0.5311 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3704, allocations: 0 / 0.5311 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005849/0.371, allocations: 85.16 kB / 0.5312 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.371, allocations: 2.156 kB / 0.5312 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.3711, allocations: 5.406 kB / 0.5312 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.3711, allocations: 2.312 kB / 0.5312 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3711, allocations: 4 kB / 0.5312 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009406/0.3721, allocations: 0.5193 MB / 0.5317 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.3723, allocations: 133.2 kB / 0.5318 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/0.3723, allocations: 9.625 kB / 0.5318 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.3726, allocations: 9.219 kB / 0.5318 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.3726, allocations: 21.66 kB / 0.5318 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.3727, allocations: 13.45 kB / 0.5319 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.3729, allocations: 188.1 kB / 0.532 GB, free: 9.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3729, allocations: 0 / 0.532 GB, free: 9.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.3733, allocations: 94.22 kB / 0.5321 GB, free: 9.938 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/0.3745, allocations: 1.058 MB / 0.5332 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.3751, allocations: 279.1 kB / 0.5334 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3751, allocations: 0 / 0.5334 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.3754, allocations: 139.9 kB / 0.5336 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.3758, allocations: 39 kB / 0.5336 GB, free: 8.871 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004679/0.3805, allocations: 3.143 MB / 0.5367 GB, free: 6.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3809, allocations: 0.7841 MB / 0.5374 GB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.3811, allocations: 37.61 kB / 0.5375 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.3813, allocations: 112.9 kB / 0.5376 GB, free: 5.695 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3813, allocations: 0 / 0.5376 GB, free: 5.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.4093, allocations: 5.73 MB / 0.5432 GB, free: 2.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.351/8.76, allocations: 0 / 0.5432 GB, free: 2.258 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches