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.001328/0.001328, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001378/0.001378, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.2505/0.2505, allocations: 44.93 MB / 359.6 MB, free: 6.051 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.002136/0.002136, allocations: 67.89 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3175, allocations: 65.48 MB / 0.5577 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004437/0.3219, allocations: 2.792 MB / 0.5605 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.3234, allocations: 0.7479 MB / 0.5612 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.3236, allocations: 7.938 kB / 0.5612 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.3238, allocations: 59.38 kB / 0.5612 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.324, allocations: 99.11 kB / 0.5613 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.3243, allocations: 115.8 kB / 0.5615 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005403/0.3249, allocations: 470.6 kB / 0.5619 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.3251, allocations: 120.4 kB / 0.562 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002991/0.3254, allocations: 191.3 kB / 0.5622 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.3257, allocations: 207.1 kB / 0.5624 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.557e-05/0.3257, allocations: 40 kB / 0.5624 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.3258, allocations: 44 kB / 0.5625 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.886e-05/0.3259, allocations: 91.67 kB / 0.5626 GB, free: 2.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.3261, allocations: 175.2 kB / 0.5627 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005353/0.3267, allocations: 474 kB / 0.5632 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3267, allocations: 0 / 0.5632 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3267, allocations: 0 / 0.5632 GB, free: 1.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3267, allocations: 0 / 0.5632 GB, free: 1.914 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.001471/0.3281, allocations: 0.6379 MB / 0.5638 GB, free: 1.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.3282, allocations: 8.031 kB / 0.5638 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.308e-05/0.3282, allocations: 21.12 kB / 0.5638 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.3283, allocations: 82.7 kB / 0.5639 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.3286, allocations: 60.64 kB / 0.564 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.329, allocations: 234 kB / 0.5642 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.3291, allocations: 29.38 kB / 0.5642 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.3291, allocations: 36.38 kB / 0.5643 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007125/0.3298, allocations: 350.4 kB / 0.5646 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3299, allocations: 0 / 0.5646 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.3299, allocations: 16 kB / 0.5646 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.3299, allocations: 8 kB / 0.5646 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006781/0.3306, allocations: 311.7 kB / 0.5649 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.3329, allocations: 1.209 MB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005568/0.3335, allocations: 249.3 kB / 0.5663 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.3338, allocations: 145.3 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.3338, allocations: 4.281 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.3339, allocations: 38.84 kB / 0.5665 GB, free: 14.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/0.3339, allocations: 0 / 0.5665 GB, free: 14.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009164/0.3348, allocations: 371.5 kB / 0.5669 GB, free: 13.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.3348, allocations: 67.28 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.3352, allocations: 261.8 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.3352, allocations: 29.7 kB / 0.5672 GB, free: 13.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.3353, allocations: 220.3 kB / 0.5674 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.3354, allocations: 119 kB / 0.5675 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3356, allocations: 74.08 kB / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3357, allocations: 342.8 kB / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.336, allocations: 104.8 kB / 0.568 GB, free: 12.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.3363, allocations: 171.5 kB / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005658/0.3369, allocations: 292.6 kB / 0.5685 GB, free: 12.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3369, allocations: 0 / 0.5685 GB, free: 12.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007471/0.3376, allocations: 370.5 kB / 0.5688 GB, free: 11.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3377, allocations: 7.984 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3377, allocations: 4 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.3377, allocations: 4 kB / 0.5688 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005242/0.3382, allocations: 99.88 kB / 0.5689 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.3382, allocations: 4 kB / 0.5689 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.3385, allocations: 39.72 kB / 0.569 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.3385, allocations: 12 kB / 0.569 GB, free: 11.68 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.0001918/0.3387, allocations: 169.6 kB / 0.5691 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/0.3388, allocations: 31.81 kB / 0.5692 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007412/0.3395, allocations: 325.2 kB / 0.5695 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3395, allocations: 4 kB / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3395, allocations: 0 / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3396, allocations: 0 / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004975/0.3401, allocations: 336.3 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3401, allocations: 4 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.3405, allocations: 91.88 kB / 0.5699 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3405, allocations: 0 / 0.5699 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.3405, allocations: 8 kB / 0.5699 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3405, allocations: 0 / 0.5699 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3405, allocations: 0 / 0.5699 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000961/0.3415, allocations: 0.5224 MB / 0.5704 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.3416, allocations: 51.75 kB / 0.5705 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.3417, allocations: 7.938 kB / 0.5705 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.3419, allocations: 16.05 kB / 0.5705 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.799e-05/0.342, allocations: 19.97 kB / 0.5705 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.342, allocations: 11.98 kB / 0.5705 GB, free: 10.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.3422, allocations: 185.2 kB / 0.5707 GB, free: 9.844 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3422, allocations: 0 / 0.5707 GB, free: 9.844 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000393/0.3426, allocations: 95.84 kB / 0.5708 GB, free: 9.75 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.0014/0.344, allocations: 1.06 MB / 0.5718 GB, free: 8.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006183/0.3446, allocations: 259.8 kB / 0.5721 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3446, allocations: 0 / 0.5721 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.3449, allocations: 127.8 kB / 0.5722 GB, free: 8.285 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3453, allocations: 28.48 kB / 0.5722 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.35, allocations: 3.141 MB / 0.5753 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.3502, allocations: 189.2 kB / 0.5755 GB, free: 4.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002024/0.3504, allocations: 38.95 kB / 0.5755 GB, free: 4.758 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.3507, allocations: 111.4 kB / 0.5756 GB, free: 4.648 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3507, allocations: 3.938 kB / 0.5756 GB, free: 4.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.3802, allocations: 6.139 MB / 0.5816 GB, free: 14.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.55, allocations: 11.56 kB / 0.5816 GB, free: 14.67 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.522747050970793]