Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001768/0.001768, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00245/0.00245, allocations: 204.2 kB / 23.73 MB, free: 4.379 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.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2493/0.2493, allocations: 46.96 MB / 360.9 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 71.89 kB / 0.4961 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3739, allocations: 66.03 MB / 0.5606 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004389/0.3783, allocations: 2.806 MB / 0.5633 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.3797, allocations: 0.7439 MB / 0.5641 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.3799, allocations: 11.94 kB / 0.5641 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.38, allocations: 55.39 kB / 0.5641 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.3803, allocations: 103 kB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.3805, allocations: 119.8 kB / 0.5643 GB, free: 376 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005258/0.381, allocations: 466.6 kB / 0.5648 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.3812, allocations: 116.4 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.3815, allocations: 199.3 kB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.3818, allocations: 211 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.487e-05/0.3819, allocations: 40 kB / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.851e-05/0.3819, allocations: 40 kB / 0.5654 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.93e-05/0.382, allocations: 83.75 kB / 0.5654 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.3822, allocations: 171.1 kB / 0.5656 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005077/0.3827, allocations: 482 kB / 0.5661 GB, free: 14.58 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3827, allocations: 4 kB / 0.5661 GB, free: 14.58 MB / 414.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.3827, allocations: 0 / 0.5661 GB, free: 14.58 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.3827, allocations: 4 kB / 0.5661 GB, free: 14.57 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.00133/0.3841, allocations: 0.634 MB / 0.5667 GB, free: 13.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.3841, allocations: 8.031 kB / 0.5667 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.176e-05/0.3842, allocations: 74.72 kB / 0.5668 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.3844, allocations: 60.64 kB / 0.5668 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.3848, allocations: 242 kB / 0.5671 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.827e-05/0.3849, allocations: 29.38 kB / 0.5671 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.659e-05/0.3849, allocations: 36.38 kB / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.3856, allocations: 342.5 kB / 0.5674 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.3856, allocations: 0 / 0.5674 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.041e-05/0.3857, allocations: 19.98 kB / 0.5675 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.3857, allocations: 12 kB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.3863, allocations: 299.8 kB / 0.5678 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.3886, allocations: 1.213 MB / 0.5689 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.3892, allocations: 261.3 kB / 0.5692 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.3895, allocations: 141.3 kB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.3895, allocations: 4.281 kB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.3895, allocations: 34.84 kB / 0.5694 GB, free: 11.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.613e-06/0.3896, allocations: 0 / 0.5694 GB, free: 11.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008754/0.3904, allocations: 379.5 kB / 0.5697 GB, free: 10.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.3905, allocations: 59.34 kB / 0.5698 GB, free: 10.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.3908, allocations: 273.8 kB / 0.57 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.3908, allocations: 29.7 kB / 0.5701 GB, free: 10.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.391, allocations: 204.4 kB / 0.5703 GB, free: 10.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.3911, allocations: 126.9 kB / 0.5704 GB, free: 9.926 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.3912, allocations: 74.12 kB / 0.5705 GB, free: 9.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.3914, allocations: 338.8 kB / 0.5708 GB, free: 9.508 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.3916, allocations: 108.8 kB / 0.5709 GB, free: 9.402 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.3919, allocations: 171.5 kB / 0.571 GB, free: 9.211 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005523/0.3925, allocations: 292.7 kB / 0.5713 GB, free: 8.902 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3925, allocations: 3.938 kB / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007315/0.3932, allocations: 370.3 kB / 0.5717 GB, free: 8.531 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3932, allocations: 4 kB / 0.5717 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.3932, allocations: 4 kB / 0.5717 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.3933, allocations: 4.219 kB / 0.5717 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.3938, allocations: 107.9 kB / 0.5718 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3938, allocations: 4 kB / 0.5718 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.3941, allocations: 47.66 kB / 0.5718 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.3941, allocations: 12 kB / 0.5719 GB, free: 8.352 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.0001792/0.3943, allocations: 157.7 kB / 0.572 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.3944, allocations: 27.81 kB / 0.572 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007017/0.3951, allocations: 329.2 kB / 0.5723 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.3951, allocations: 7.984 kB / 0.5724 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3951, allocations: 0 / 0.5724 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3951, allocations: 0 / 0.5724 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004748/0.3956, allocations: 332.4 kB / 0.5727 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3956, allocations: 4 kB / 0.5727 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.396, allocations: 79.88 kB / 0.5728 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.396, allocations: 0 / 0.5728 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.396, allocations: 8 kB / 0.5728 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.396, allocations: 0 / 0.5728 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.396, allocations: 4 kB / 0.5728 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009738/0.397, allocations: 0.5263 MB / 0.5733 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.3971, allocations: 47.75 kB / 0.5733 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.3972, allocations: 7.984 kB / 0.5733 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.3974, allocations: 15.94 kB / 0.5733 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.3975, allocations: 23.89 kB / 0.5734 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.3975, allocations: 12 kB / 0.5734 GB, free: 6.715 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3978, allocations: 189.2 kB / 0.5736 GB, free: 6.527 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3978, allocations: 4.062 kB / 0.5736 GB, free: 6.523 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003937/0.3982, allocations: 95.78 kB / 0.5737 GB, free: 6.43 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.001298/0.3995, allocations: 1.056 MB / 0.5747 GB, free: 5.348 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006086/0.4001, allocations: 260.2 kB / 0.5749 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4001, allocations: 4.062 kB / 0.5749 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.4003, allocations: 127.8 kB / 0.5751 GB, free: 4.965 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.4007, allocations: 32.42 kB / 0.5751 GB, free: 4.934 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00478/0.4055, allocations: 3.145 MB / 0.5782 GB, free: 1.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.4057, allocations: 185.3 kB / 0.5783 GB, free: 1.469 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001837/0.4059, allocations: 34.94 kB / 0.5784 GB, free: 1.438 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.4061, allocations: 119.4 kB / 0.5785 GB, free: 1.32 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4061, allocations: 0 / 0.5785 GB, free: 1.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03648/0.4426, allocations: 6.515 MB / 0.5849 GB, free: 10.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.81, allocations: 2.812 kB / 0.5849 GB, free: 10.96 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.775301177985966]