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.001712/0.001712, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002058/0.002058, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.584/1.584, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.237/0.237, allocations: 44.91 MB / 359.6 MB, free: 6.301 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",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.002036/0.002036, allocations: 63.91 kB / 0.4939 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3441, allocations: 65.48 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004664/0.3488, allocations: 3.04 MB / 0.5608 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.3505, allocations: 0.7867 MB / 0.5615 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3507, allocations: 7.938 kB / 0.5615 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.3509, allocations: 59.39 kB / 0.5616 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002275/0.3511, allocations: 95.11 kB / 0.5617 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.3514, allocations: 127.8 kB / 0.5618 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005201/0.352, allocations: 466.6 kB / 0.5623 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.3522, allocations: 112.4 kB / 0.5624 GB, free: 3.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003205/0.3525, allocations: 199.3 kB / 0.5626 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.3529, allocations: 203.1 kB / 0.5627 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.001e-05/0.3529, allocations: 40 kB / 0.5628 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.353, allocations: 40 kB / 0.5628 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.91e-05/0.3531, allocations: 95.61 kB / 0.5629 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.3533, allocations: 199 kB / 0.5631 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006188/0.3539, allocations: 478 kB / 0.5636 GB, free: 1.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3539, allocations: 8 kB / 0.5636 GB, free: 1.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.354, allocations: 0 / 0.5636 GB, free: 1.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.354, allocations: 0 / 0.5636 GB, free: 1.852 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.001508/0.3555, allocations: 0.634 MB / 0.5642 GB, free: 1.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.3555, allocations: 8.031 kB / 0.5642 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.69e-05/0.3555, allocations: 9.188 kB / 0.5642 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.598e-05/0.3556, allocations: 78.72 kB / 0.5643 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002746/0.3559, allocations: 60.64 kB / 0.5643 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/0.3564, allocations: 238 kB / 0.5646 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.3564, allocations: 29.38 kB / 0.5646 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/0.3565, allocations: 36.38 kB / 0.5646 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.3572, allocations: 354.4 kB / 0.565 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.3572, allocations: 0 / 0.565 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.3572, allocations: 16 kB / 0.565 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3572, allocations: 8 kB / 0.565 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006663/0.3579, allocations: 303.8 kB / 0.5653 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.3604, allocations: 1.303 MB / 0.5665 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005723/0.3609, allocations: 252.9 kB / 0.5668 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.3613, allocations: 141.3 kB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.3613, allocations: 4.281 kB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.3613, allocations: 34.84 kB / 0.567 GB, free: 14.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.874e-06/0.3613, allocations: 0 / 0.567 GB, free: 14.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009313/0.3623, allocations: 379.6 kB / 0.5673 GB, free: 13.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.3623, allocations: 55.34 kB / 0.5674 GB, free: 13.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.3626, allocations: 261.8 kB / 0.5676 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.286e-05/0.3627, allocations: 33.7 kB / 0.5677 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.3628, allocations: 212.3 kB / 0.5679 GB, free: 13.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.3629, allocations: 126.9 kB / 0.568 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3631, allocations: 78.08 kB / 0.5681 GB, free: 13.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3632, allocations: 338.8 kB / 0.5684 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002647/0.3635, allocations: 108.8 kB / 0.5685 GB, free: 12.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/0.3638, allocations: 167.5 kB / 0.5686 GB, free: 12.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.3644, allocations: 296.6 kB / 0.5689 GB, free: 12.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3644, allocations: 3.938 kB / 0.5689 GB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007586/0.3652, allocations: 366.4 kB / 0.5693 GB, free: 11.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3652, allocations: 4 kB / 0.5693 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3652, allocations: 4 kB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3652, allocations: 4.219 kB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.3657, allocations: 111.8 kB / 0.5694 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.3658, allocations: 4 kB / 0.5694 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.3661, allocations: 39.72 kB / 0.5694 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.3661, allocations: 12 kB / 0.5695 GB, free: 11.54 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.0001841/0.3663, allocations: 157.7 kB / 0.5696 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-05/0.3663, allocations: 27.81 kB / 0.5696 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007477/0.3671, allocations: 329.2 kB / 0.5699 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3671, allocations: 4 kB / 0.5699 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3671, allocations: 0 / 0.5699 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3671, allocations: 3.984 kB / 0.5699 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005405/0.3676, allocations: 380.1 kB / 0.5703 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3676, allocations: 0 / 0.5703 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.3681, allocations: 83.88 kB / 0.5704 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.3681, allocations: 0 / 0.5704 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.3681, allocations: 16 kB / 0.5704 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3681, allocations: 7.984 kB / 0.5704 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3681, allocations: 0 / 0.5704 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.3691, allocations: 0.5147 MB / 0.5709 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.3693, allocations: 47.75 kB / 0.571 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.3693, allocations: 8 kB / 0.571 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.3696, allocations: 20.05 kB / 0.571 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.3696, allocations: 19.95 kB / 0.571 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.3696, allocations: 15.94 kB / 0.571 GB, free: 9.848 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.3699, allocations: 193.1 kB / 0.5712 GB, free: 9.656 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3699, allocations: 0 / 0.5712 GB, free: 9.656 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.3703, allocations: 95.84 kB / 0.5713 GB, free: 9.562 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.00132/0.3716, allocations: 1.052 MB / 0.5723 GB, free: 8.484 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006662/0.3723, allocations: 263.8 kB / 0.5726 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3723, allocations: 0.5 kB / 0.5726 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002939/0.3725, allocations: 131.8 kB / 0.5727 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.3729, allocations: 24.5 kB / 0.5727 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004861/0.3778, allocations: 3.145 MB / 0.5758 GB, free: 4.812 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.3782, allocations: 0.7874 MB / 0.5766 GB, free: 4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.3784, allocations: 42.94 kB / 0.5766 GB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.3787, allocations: 111.4 kB / 0.5767 GB, free: 3.848 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3787, allocations: 0 / 0.5767 GB, free: 3.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05118/0.4298, allocations: 6.121 MB / 0.5827 GB, free: 13.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.37, allocations: 8.062 kB / 0.5827 GB, free: 13.89 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.527051550976466]