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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 111.1 kB / 20.44 MB, free: 1.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 213.3 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.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.2371/0.2371, allocations: 44.93 MB / 358.8 MB, free: 6.066 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 75.83 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3791, allocations: 65.46 MB / 0.557 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.00441/0.3835, allocations: 2.802 MB / 0.5597 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.385, allocations: 0.744 MB / 0.5604 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.3852, allocations: 7.938 kB / 0.5604 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.3854, allocations: 59.38 kB / 0.5605 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.3856, allocations: 111 kB / 0.5606 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.386, allocations: 107.8 kB / 0.5607 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005787/0.3866, allocations: 470.6 kB / 0.5611 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.3868, allocations: 112.4 kB / 0.5612 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003126/0.3871, allocations: 191.3 kB / 0.5614 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002712/0.3874, allocations: 183.1 kB / 0.5616 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.216e-05/0.3874, allocations: 40 kB / 0.5616 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.3875, allocations: 47.98 kB / 0.5617 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.174e-05/0.3876, allocations: 87.67 kB / 0.5618 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.3878, allocations: 175.2 kB / 0.5619 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00056/0.3884, allocations: 474 kB / 0.5624 GB, free: 1.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3884, allocations: 0 / 0.5624 GB, free: 1.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3884, allocations: 0 / 0.5624 GB, free: 1.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.3884, allocations: 0 / 0.5624 GB, free: 1.957 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.001409/0.3898, allocations: 0.6473 MB / 0.563 GB, free: 1.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3898, allocations: 8.031 kB / 0.563 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.831e-05/0.3899, allocations: 74.72 kB / 0.5631 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.3902, allocations: 64.62 kB / 0.5632 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004556/0.3906, allocations: 234 kB / 0.5634 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.3907, allocations: 33.38 kB / 0.5634 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-05/0.3907, allocations: 40.38 kB / 0.5635 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.3914, allocations: 346.5 kB / 0.5638 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.3914, allocations: 0 / 0.5638 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.3915, allocations: 19.94 kB / 0.5638 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3915, allocations: 8 kB / 0.5638 GB, free: 440 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000665/0.3921, allocations: 303.8 kB / 0.5641 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002352/0.3945, allocations: 1.201 MB / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005383/0.395, allocations: 257.4 kB / 0.5655 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.3953, allocations: 153.1 kB / 0.5657 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.3954, allocations: 4.281 kB / 0.5657 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.3954, allocations: 38.83 kB / 0.5657 GB, free: 14.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.794e-06/0.3954, allocations: 0 / 0.5657 GB, free: 14.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009237/0.3963, allocations: 379.5 kB / 0.5661 GB, free: 14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.3964, allocations: 59.34 kB / 0.5661 GB, free: 13.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.3967, allocations: 265.8 kB / 0.5664 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.3967, allocations: 33.7 kB / 0.5664 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.3969, allocations: 208.3 kB / 0.5666 GB, free: 13.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.397, allocations: 126.9 kB / 0.5667 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.3971, allocations: 70.12 kB / 0.5668 GB, free: 13.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.3973, allocations: 338.8 kB / 0.5671 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.3976, allocations: 100.8 kB / 0.5672 GB, free: 12.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.3979, allocations: 175.5 kB / 0.5674 GB, free: 12.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005962/0.3985, allocations: 288.7 kB / 0.5677 GB, free: 12.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3985, allocations: 3.938 kB / 0.5677 GB, free: 12.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007434/0.3993, allocations: 374.3 kB / 0.568 GB, free: 11.9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.3993, allocations: 8 kB / 0.568 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3993, allocations: 0 / 0.568 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.3993, allocations: 4 kB / 0.568 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.3998, allocations: 103.9 kB / 0.5681 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.3998, allocations: 8.219 kB / 0.5681 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.4001, allocations: 47.67 kB / 0.5682 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.73e-05/0.4002, allocations: 19.98 kB / 0.5682 GB, free: 11.71 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.0001739/0.4003, allocations: 149.7 kB / 0.5683 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.251e-05/0.4004, allocations: 31.81 kB / 0.5684 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007484/0.4012, allocations: 317.2 kB / 0.5687 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.4012, allocations: 4 kB / 0.5687 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4012, allocations: 0 / 0.5687 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.4012, allocations: 7.984 kB / 0.5687 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005143/0.4017, allocations: 344.3 kB / 0.569 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4017, allocations: 0 / 0.569 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004238/0.4021, allocations: 75.89 kB / 0.5691 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.525e-06/0.4021, allocations: 7.984 kB / 0.5691 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.4022, allocations: 4 kB / 0.5691 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4022, allocations: 0 / 0.5691 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.4022, allocations: 4 kB / 0.5691 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009666/0.4031, allocations: 0.5301 MB / 0.5696 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.4033, allocations: 47.75 kB / 0.5697 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.571e-05/0.4033, allocations: 8 kB / 0.5697 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.4035, allocations: 11.98 kB / 0.5697 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.348e-05/0.4036, allocations: 23.95 kB / 0.5697 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.4036, allocations: 8 kB / 0.5697 GB, free: 10.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.4039, allocations: 193.2 kB / 0.5699 GB, free: 9.895 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4039, allocations: 0 / 0.5699 GB, free: 9.895 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.4042, allocations: 91.78 kB / 0.57 GB, free: 9.805 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.001329/0.4056, allocations: 1.056 MB / 0.571 GB, free: 8.723 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.4062, allocations: 267.7 kB / 0.5713 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4062, allocations: 0 / 0.5713 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.4065, allocations: 124.3 kB / 0.5714 GB, free: 8.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.4068, allocations: 28.5 kB / 0.5714 GB, free: 8.312 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004808/0.4117, allocations: 3.149 MB / 0.5745 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.4118, allocations: 185.3 kB / 0.5747 GB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.4121, allocations: 38.94 kB / 0.5747 GB, free: 4.805 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.4123, allocations: 107.4 kB / 0.5748 GB, free: 4.699 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4123, allocations: 0 / 0.5748 GB, free: 4.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.4515, allocations: 6.412 MB / 0.5811 GB, free: 14.46 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.9, allocations: 10.8 kB / 0.5811 GB, free: 14.45 MB / 430.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.972744698636234]