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.0007905/0.0007906, allocations: 96.2 kB / 17.35 MB, free: 6.375 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.0008335/0.0008334, allocations: 178.8 kB / 18.26 MB, free: 5.52 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.292/1.292, allocations: 223.3 MB / 242.3 MB, free: 14.51 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.1799/0.1799, allocations: 44.25 MB / 337.7 MB, free: 2.504 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003355, allocations: 11.98 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 61.92 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.002767/0.1058, allocations: 2.66 MB / 475 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000972/0.1068, allocations: 0.7015 MB / 475.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.107, allocations: 11.94 kB / 475.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.1071, allocations: 43.69 kB / 475.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.1073, allocations: 83.31 kB / 475.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.1075, allocations: 103.8 kB / 476 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003795/0.1079, allocations: 450.5 kB / 476.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.1082, allocations: 136.5 kB / 476.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.1084, allocations: 159.3 kB / 476.7 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.1086, allocations: 187.1 kB / 476.9 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.1086, allocations: 20 kB / 476.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.246e-05/0.1087, allocations: 16 kB / 476.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.478e-05/0.1087, allocations: 67.69 kB / 477 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.1089, allocations: 208.7 kB / 477.2 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.1092, allocations: 426.2 kB / 477.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1092, allocations: 4 kB / 477.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1093, allocations: 4 kB / 477.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1093, allocations: 0 / 477.6 MB, free: 7.945 MB / 350.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.001103/0.1104, allocations: 0.6396 MB / 478.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1104, allocations: 12.03 kB / 478.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.736e-05/0.1105, allocations: 86.59 kB / 478.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.419e-05/0.1106, allocations: 40.47 kB / 478.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.1109, allocations: 279.6 kB / 478.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.1109, allocations: 29.38 kB / 478.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.959e-05/0.111, allocations: 36.38 kB / 478.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006547/0.1116, allocations: 354.6 kB / 479.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1116, allocations: 0 / 479.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.1117, allocations: 16 kB / 479.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.1117, allocations: 15.94 kB / 479.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.1123, allocations: 319.8 kB / 479.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.1143, allocations: 1.337 MB / 480.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.1148, allocations: 292.8 kB / 481 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.1151, allocations: 173.2 kB / 481.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.1152, allocations: 288 / 481.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.1152, allocations: 42.84 kB / 481.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.152e-06/0.1152, allocations: 0 / 481.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008278/0.1161, allocations: 387.5 kB / 481.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.1161, allocations: 59.34 kB / 481.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.1164, allocations: 266.6 kB / 481.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.1164, allocations: 33.7 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.1165, allocations: 200 kB / 482.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/0.1166, allocations: 122.2 kB / 482.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.247e-05/0.1167, allocations: 33.7 kB / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1168, allocations: 346.7 kB / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.117, allocations: 112.8 kB / 482.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.1173, allocations: 171.5 kB / 482.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005063/0.1178, allocations: 308.6 kB / 483.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1178, allocations: 7.938 kB / 483.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006263/0.1185, allocations: 362.4 kB / 483.6 MB, free: 1.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.1185, allocations: 11.98 kB / 483.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1185, allocations: 0 / 483.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1185, allocations: 7.938 kB / 483.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004606/0.119, allocations: 99.88 kB / 483.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.119, allocations: 8.219 kB / 483.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.1193, allocations: 51.52 kB / 483.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.1193, allocations: 12 kB / 483.8 MB, free: 1.434 MB / 350.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.0001443/0.1195, allocations: 153.7 kB / 483.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.1195, allocations: 31.62 kB / 484 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006766/0.1202, allocations: 336.3 kB / 484.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.1202, allocations: 4 kB / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1202, allocations: 0 / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1202, allocations: 0 / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004111/0.1207, allocations: 409 kB / 484.7 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1207, allocations: 0 / 484.7 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.1211, allocations: 91.88 kB / 484.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1211, allocations: 0 / 484.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.1211, allocations: 8 kB / 484.8 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1211, allocations: 0 / 484.8 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1211, allocations: 0 / 484.8 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008337/0.122, allocations: 0.5382 MB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1221, allocations: 128.7 kB / 485.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.1221, allocations: 15.92 kB / 485.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1224, allocations: 12 kB / 485.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.773e-05/0.1224, allocations: 16.03 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.1224, allocations: 16 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001624/0.1226, allocations: 190 kB / 485.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1226, allocations: 0 / 485.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000328/0.1229, allocations: 95.75 kB / 485.8 MB, free: 15.32 MB / 366.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.001043/0.124, allocations: 1.071 MB / 486.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005421/0.1246, allocations: 288 kB / 487.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1246, allocations: 0 / 487.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.1248, allocations: 140.3 kB / 487.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.1252, allocations: 44.91 kB / 487.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004155/0.1293, allocations: 3.383 MB / 490.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.1296, allocations: 0.7835 MB / 491.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.1298, allocations: 34.95 kB / 491.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.13, allocations: 111.4 kB / 491.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.13, allocations: 0 / 491.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01484/0.1449, allocations: 5.202 MB / 496.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.1451, allocations: 196.2 kB / 497 MB, free: 3.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/1.998, allocations: 3.375 kB / 497 MB, free: 3.996 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 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.mat","/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