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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002238/0.002238, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2209/0.2209, allocations: 44.9 MB / 349.6 MB, free: 1.836 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 64.47 kB / 491.8 MB, free: 29.88 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1195, allocations: 64.25 MB / 0.543 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004768/0.1243, allocations: 3.026 MB / 0.5459 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.1261, allocations: 0.7323 MB / 0.5467 GB, free: 392 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003062/0.1264, allocations: 4 kB / 0.5467 GB, free: 388 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1266, allocations: 63.38 kB / 0.5467 GB, free: 324 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.1269, allocations: 99.05 kB / 0.5468 GB, free: 224 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.1273, allocations: 123.8 kB / 0.5469 GB, free: 100 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005638/0.1279, allocations: 466.7 kB / 0.5474 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.1281, allocations: 112 kB / 0.5475 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.1284, allocations: 183.3 kB / 0.5477 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.1287, allocations: 203.1 kB / 0.5479 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.874e-05/0.1288, allocations: 40 kB / 0.5479 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.876e-05/0.1288, allocations: 43.94 kB / 0.5479 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.027e-05/0.1289, allocations: 95.66 kB / 0.548 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.1291, allocations: 199 kB / 0.5482 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.1297, allocations: 466 kB / 0.5487 GB, free: 14.31 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1297, allocations: 3.938 kB / 0.5487 GB, free: 14.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1297, allocations: 4 kB / 0.5487 GB, free: 14.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.1297, allocations: 0 / 0.5487 GB, free: 14.3 MB / 414.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.001613/0.1314, allocations: 0.7132 MB / 0.5494 GB, free: 13.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1314, allocations: 12.02 kB / 0.5494 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.549e-05/0.1315, allocations: 74.72 kB / 0.5494 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.251e-05/0.1316, allocations: 52.59 kB / 0.5495 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.1321, allocations: 292.3 kB / 0.5498 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.1321, allocations: 29.38 kB / 0.5498 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.33e-05/0.1322, allocations: 40.33 kB / 0.5498 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006808/0.1328, allocations: 346.6 kB / 0.5502 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1329, allocations: 4 kB / 0.5502 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.1329, allocations: 12 kB / 0.5502 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.1329, allocations: 19.98 kB / 0.5502 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000675/0.1336, allocations: 303.8 kB / 0.5505 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.1359, allocations: 1.322 MB / 0.5518 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005153/0.1364, allocations: 252.8 kB / 0.552 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.1367, allocations: 149.2 kB / 0.5522 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.1367, allocations: 4.281 kB / 0.5522 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.1368, allocations: 42.78 kB / 0.5522 GB, free: 10.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 2.114e-06/0.1368, allocations: 0 / 0.5522 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008917/0.1377, allocations: 375.5 kB / 0.5526 GB, free: 10.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.1377, allocations: 63.34 kB / 0.5526 GB, free: 10 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.138, allocations: 270.6 kB / 0.5529 GB, free: 9.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.138, allocations: 29.7 kB / 0.5529 GB, free: 9.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1382, allocations: 204.3 kB / 0.5531 GB, free: 9.492 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1383, allocations: 126.9 kB / 0.5532 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.1384, allocations: 74.08 kB / 0.5533 GB, free: 9.289 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1386, allocations: 342.8 kB / 0.5536 GB, free: 8.945 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.1388, allocations: 108.8 kB / 0.5537 GB, free: 8.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003008/0.1391, allocations: 167.5 kB / 0.5539 GB, free: 8.652 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.1397, allocations: 288.6 kB / 0.5542 GB, free: 8.348 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.1397, allocations: 7.938 kB / 0.5542 GB, free: 8.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006894/0.1404, allocations: 362.5 kB / 0.5545 GB, free: 7.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.1404, allocations: 9.859 kB / 0.5545 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1404, allocations: 4 kB / 0.5545 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1404, allocations: 4 kB / 0.5545 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.1409, allocations: 99.81 kB / 0.5546 GB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.141, allocations: 4 kB / 0.5546 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.1412, allocations: 43.94 kB / 0.5547 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.1413, allocations: 20 kB / 0.5547 GB, free: 7.801 MB / 414.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.000185/0.1415, allocations: 157.7 kB / 0.5549 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.002e-05/0.1415, allocations: 27.81 kB / 0.5549 GB, free: 7.609 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006921/0.1422, allocations: 332.1 kB / 0.5552 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1422, allocations: 0 / 0.5552 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1422, allocations: 8 kB / 0.5552 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1422, allocations: 0 / 0.5552 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.1428, allocations: 409.1 kB / 0.5556 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1428, allocations: 0 / 0.5556 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004288/0.1432, allocations: 79.88 kB / 0.5557 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.1432, allocations: 4 kB / 0.5557 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.1432, allocations: 8 kB / 0.5557 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1432, allocations: 4 kB / 0.5557 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1432, allocations: 0 / 0.5557 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009187/0.1442, allocations: 0.5184 MB / 0.5562 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.1443, allocations: 128.8 kB / 0.5563 GB, free: 6.043 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.1443, allocations: 4 kB / 0.5563 GB, free: 6.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.1446, allocations: 15.98 kB / 0.5563 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.957e-05/0.1446, allocations: 19.97 kB / 0.5564 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.1447, allocations: 12 kB / 0.5564 GB, free: 5.992 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.1449, allocations: 194 kB / 0.5566 GB, free: 5.805 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1449, allocations: 3.938 kB / 0.5566 GB, free: 5.801 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000362/0.1452, allocations: 91.84 kB / 0.5566 GB, free: 5.711 MB / 414.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.001233/0.1465, allocations: 1.063 MB / 0.5577 GB, free: 4.621 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005865/0.1471, allocations: 259.9 kB / 0.5579 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1471, allocations: 0 / 0.5579 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.1473, allocations: 124.3 kB / 0.558 GB, free: 4.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.1477, allocations: 33.05 kB / 0.5581 GB, free: 4.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004606/0.1523, allocations: 3.152 MB / 0.5612 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.1527, allocations: 0.7874 MB / 0.5619 GB, free: 124 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.1529, allocations: 30.95 kB / 0.562 GB, free: 96 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.1531, allocations: 119.4 kB / 0.5621 GB, free: 15.98 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.1531, allocations: 0 / 0.5621 GB, free: 15.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03118/0.1843, allocations: 5.76 MB / 0.5677 GB, free: 10.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.752/8.937, allocations: 8.578 kB / 0.5677 GB, free: 10.32 MB / 430.1 MB " [Timeout remaining time 651] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.903794819954783]