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.001071/0.001071, allocations: 107.4 kB / 17.21 MB, free: 6.293 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.001171/0.001171, allocations: 194 kB / 18.12 MB, free: 5.383 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.374/1.374, allocations: 222.9 MB / 241.8 MB, free: 15.35 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.201/0.201, allocations: 44.18 MB / 336.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 64.83 kB / 407.8 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1097, allocations: 60.82 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004345/0.1141, allocations: 3.034 MB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1155, allocations: 0.7132 MB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.1158, allocations: 7.938 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.1161, allocations: 43.64 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002814/0.1164, allocations: 83.36 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1167, allocations: 103.8 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00048/0.1172, allocations: 450.5 kB / 473.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.1175, allocations: 144.5 kB / 473.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.1177, allocations: 163.4 kB / 473.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.118, allocations: 199.1 kB / 473.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/0.1181, allocations: 31.94 kB / 473.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.045e-05/0.1182, allocations: 24 kB / 473.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.128e-05/0.1183, allocations: 79.66 kB / 473.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.1185, allocations: 191 kB / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004096/0.1189, allocations: 446.3 kB / 474.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1189, allocations: 0 / 474.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1189, allocations: 4 kB / 474.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.1189, allocations: 0 / 474.3 MB, free: 9.02 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.001672/0.1206, allocations: 0.6981 MB / 475 MB, free: 8.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1207, allocations: 15.97 kB / 475 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.876e-05/0.1208, allocations: 74.72 kB / 475.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.972e-05/0.1209, allocations: 40.47 kB / 475.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.1213, allocations: 291.5 kB / 475.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.1213, allocations: 29.38 kB / 475.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.1214, allocations: 36.38 kB / 475.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007005/0.1221, allocations: 342.6 kB / 475.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.1221, allocations: 8 kB / 475.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.1222, allocations: 12 kB / 475.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.1222, allocations: 15.94 kB / 475.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.1229, allocations: 307.8 kB / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.1252, allocations: 1.337 MB / 477.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005521/0.1258, allocations: 272.8 kB / 477.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.1261, allocations: 169.3 kB / 477.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.1261, allocations: 4.281 kB / 477.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.1262, allocations: 34.84 kB / 478 MB, free: 5.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.334e-06/0.1262, allocations: 0 / 478 MB, free: 5.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008929/0.1271, allocations: 375.4 kB / 478.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.1271, allocations: 59.28 kB / 478.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.1274, allocations: 266.7 kB / 478.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.1275, allocations: 29.7 kB / 478.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.1276, allocations: 211.9 kB / 478.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1278, allocations: 114.3 kB / 479 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.1279, allocations: 74.03 kB / 479.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1281, allocations: 342.7 kB / 479.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.1283, allocations: 100.8 kB / 479.5 MB, free: 3.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/0.1286, allocations: 171.5 kB / 479.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005359/0.1292, allocations: 292.6 kB / 480 MB, free: 3.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-05/0.1292, allocations: 3.938 kB / 480 MB, free: 3.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000685/0.1299, allocations: 366.2 kB / 480.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1299, allocations: 4 kB / 480.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1299, allocations: 4 kB / 480.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.13, allocations: 4 kB / 480.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.1305, allocations: 111.8 kB / 480.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.1305, allocations: 4 kB / 480.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.1308, allocations: 51.52 kB / 480.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.1309, allocations: 8 kB / 480.5 MB, free: 2.496 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.0001802/0.1311, allocations: 161.7 kB / 480.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-05/0.1311, allocations: 31.61 kB / 480.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006863/0.1318, allocations: 320.4 kB / 481 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.1319, allocations: 4 kB / 481 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1319, allocations: 0 / 481 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1319, allocations: 0 / 481 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005595/0.1324, allocations: 405.1 kB / 481.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1325, allocations: 4 kB / 481.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004172/0.1329, allocations: 83.89 kB / 481.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.1329, allocations: 3.984 kB / 481.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.1329, allocations: 4 kB / 481.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.455e-05/0.1329, allocations: 4 kB / 481.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.133, allocations: 0 / 481.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009024/0.1339, allocations: 0.5226 MB / 482 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.134, allocations: 124.7 kB / 482.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.825e-05/0.1341, allocations: 15.94 kB / 482.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.1343, allocations: 11.98 kB / 482.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.286e-05/0.1344, allocations: 15.97 kB / 482.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.1344, allocations: 12 kB / 482.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.1346, allocations: 190 kB / 482.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1346, allocations: 0 / 482.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003754/0.135, allocations: 99.81 kB / 482.5 MB, free: 428 kB / 350.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.1362, allocations: 1.048 MB / 483.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006041/0.1368, allocations: 276 kB / 483.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1368, allocations: 0 / 483.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.1371, allocations: 144.3 kB / 483.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.1376, allocations: 35.67 kB / 484 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004767/0.1423, allocations: 3.297 MB / 487.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.1427, allocations: 0.7912 MB / 488.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002088/0.143, allocations: 34.95 kB / 488.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.1431, allocations: 107.4 kB / 488.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of SimCode: time 4.729e-06/0.1431, allocations: 0 / 488.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.1608, allocations: 5.309 MB / 493.5 MB, free: 5.328 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.161, allocations: 199.4 kB / 493.7 MB, free: 5.074 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.153, allocations: 0 / 493.7 MB, free: 5.074 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