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.001357/0.001357, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.00135/0.00135, allocations: 184.2 kB / 18.72 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.476/1.476, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.218/0.218, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 67.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3207, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003481/0.3243, allocations: 2.99 MB / 0.5213 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.3254, allocations: 0.7263 MB / 0.5221 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.3255, allocations: 9.688 kB / 0.5221 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.3257, allocations: 56.31 kB / 0.5221 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.3259, allocations: 101.4 kB / 0.5222 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002971/0.3262, allocations: 119.8 kB / 0.5223 GB, free: 484 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.3267, allocations: 475.5 kB / 0.5228 GB, free: 244 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.3269, allocations: 147.8 kB / 0.5229 GB, free: 164 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.3271, allocations: 182.8 kB / 0.5231 GB, free: 80 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002912/0.3274, allocations: 211.8 kB / 0.5233 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.845e-05/0.3275, allocations: 38.16 kB / 0.5233 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.985e-05/0.3276, allocations: 40.53 kB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.3277, allocations: 88.38 kB / 0.5235 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002163/0.3279, allocations: 205.2 kB / 0.5237 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006047/0.3285, allocations: 467.3 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3286, allocations: 0 / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3286, allocations: 3.938 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.3286, allocations: 0 / 0.5241 GB, free: 15.61 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.001543/0.3301, allocations: 0.7215 MB / 0.5248 GB, free: 15.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3302, allocations: 7.844 kB / 0.5248 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.3303, allocations: 80.89 kB / 0.5249 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.268e-05/0.3304, allocations: 46.56 kB / 0.5249 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.3309, allocations: 290.2 kB / 0.5252 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.3309, allocations: 37.06 kB / 0.5252 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-05/0.331, allocations: 41.48 kB / 0.5253 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007074/0.3318, allocations: 346.2 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.3318, allocations: 1.156 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.3318, allocations: 15.91 kB / 0.5256 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3318, allocations: 8.734 kB / 0.5256 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006591/0.3325, allocations: 302.5 kB / 0.5259 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002323/0.3348, allocations: 1.337 MB / 0.5272 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.3354, allocations: 276.5 kB / 0.5275 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000355/0.3358, allocations: 162.1 kB / 0.5277 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.3358, allocations: 4.469 kB / 0.5277 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.3359, allocations: 40.28 kB / 0.5277 GB, free: 13.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.254e-06/0.3359, allocations: 0 / 0.5277 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009326/0.3368, allocations: 381.7 kB / 0.5281 GB, free: 12.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.3369, allocations: 59.47 kB / 0.5281 GB, free: 12.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.3372, allocations: 263.4 kB / 0.5284 GB, free: 12.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.3373, allocations: 31.11 kB / 0.5284 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.3374, allocations: 210 kB / 0.5286 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.3375, allocations: 129.8 kB / 0.5287 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.3377, allocations: 71.3 kB / 0.5288 GB, free: 12.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.3379, allocations: 337.6 kB / 0.5291 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.3381, allocations: 103.5 kB / 0.5292 GB, free: 11.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.3385, allocations: 178.1 kB / 0.5294 GB, free: 11.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/0.339, allocations: 288.6 kB / 0.5297 GB, free: 11.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.339, allocations: 4.938 kB / 0.5297 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000727/0.3398, allocations: 362.9 kB / 0.53 GB, free: 11.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.3398, allocations: 9.625 kB / 0.53 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3398, allocations: 1.875 kB / 0.53 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.3398, allocations: 3.875 kB / 0.53 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.3404, allocations: 102.9 kB / 0.5301 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.3404, allocations: 8.469 kB / 0.5301 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.3407, allocations: 47.5 kB / 0.5302 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.172e-05/0.3407, allocations: 14.44 kB / 0.5302 GB, free: 11.37 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.0001819/0.3409, allocations: 152.7 kB / 0.5303 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.979e-05/0.341, allocations: 29.12 kB / 0.5304 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000705/0.3417, allocations: 322.4 kB / 0.5307 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3417, allocations: 7.906 kB / 0.5307 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3417, allocations: 0 / 0.5307 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.3417, allocations: 3.984 kB / 0.5307 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005513/0.3423, allocations: 414 kB / 0.5311 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3423, allocations: 1.125 kB / 0.5311 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.3427, allocations: 85 kB / 0.5312 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3428, allocations: 5.031 kB / 0.5312 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.3428, allocations: 10.08 kB / 0.5312 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3428, allocations: 1.094 kB / 0.5312 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3428, allocations: 1.125 kB / 0.5312 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009423/0.3437, allocations: 0.5191 MB / 0.5317 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.3439, allocations: 133.2 kB / 0.5318 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.344, allocations: 9.406 kB / 0.5318 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.3442, allocations: 13.89 kB / 0.5318 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.483e-05/0.3443, allocations: 21.19 kB / 0.5318 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.3443, allocations: 5.156 kB / 0.5319 GB, free: 10.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002042/0.3445, allocations: 191 kB / 0.532 GB, free: 9.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3445, allocations: 1.5 kB / 0.532 GB, free: 9.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003914/0.3449, allocations: 93.56 kB / 0.5321 GB, free: 9.957 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.001235/0.3462, allocations: 1.06 MB / 0.5332 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006409/0.3468, allocations: 277.8 kB / 0.5334 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3469, allocations: 0 / 0.5334 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.3471, allocations: 139.4 kB / 0.5336 GB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.3475, allocations: 29.62 kB / 0.5336 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004599/0.3521, allocations: 3.147 MB / 0.5367 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.3526, allocations: 0.7839 MB / 0.5374 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.3528, allocations: 41.88 kB / 0.5375 GB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.353, allocations: 108.9 kB / 0.5376 GB, free: 5.719 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.353, allocations: 0 / 0.5376 GB, free: 5.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.3829, allocations: 5.737 MB / 0.5432 GB, free: 2.285 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.752/9.135, allocations: 0 / 0.5432 GB, free: 2.285 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