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.001298/0.001298, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001432/0.001432, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.468/1.468, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.2272/0.2272, allocations: 46.96 MB / 361.7 MB, free: 4.023 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 71.91 kB / 0.4969 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3175, allocations: 66.03 MB / 0.5614 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004372/0.3219, allocations: 2.798 MB / 0.5641 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.3232, allocations: 0.7439 MB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.3234, allocations: 7.938 kB / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.3235, allocations: 63.38 kB / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.3237, allocations: 95.11 kB / 0.565 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.3241, allocations: 123.8 kB / 0.5651 GB, free: 412 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005272/0.3246, allocations: 466.7 kB / 0.5655 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.3248, allocations: 120.3 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003006/0.3251, allocations: 191.4 kB / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/0.3254, allocations: 207.1 kB / 0.566 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.272e-05/0.3255, allocations: 40 kB / 0.5661 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.621e-05/0.3256, allocations: 40 kB / 0.5661 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.894e-05/0.3256, allocations: 91.67 kB / 0.5662 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.3258, allocations: 179.2 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005405/0.3264, allocations: 474 kB / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3264, allocations: 0 / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3264, allocations: 0 / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.3264, allocations: 0 / 0.5668 GB, free: 14.62 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.001447/0.3278, allocations: 0.6379 MB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3279, allocations: 8.031 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.496e-05/0.3279, allocations: 17.19 kB / 0.5675 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.478e-05/0.328, allocations: 78.7 kB / 0.5675 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.3282, allocations: 60.58 kB / 0.5676 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.3287, allocations: 238 kB / 0.5678 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.3287, allocations: 33.31 kB / 0.5679 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.016e-05/0.3288, allocations: 36.38 kB / 0.5679 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007178/0.3295, allocations: 350.4 kB / 0.5682 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.3295, allocations: 0 / 0.5682 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.3295, allocations: 16 kB / 0.5682 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3295, allocations: 8 kB / 0.5682 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006851/0.3302, allocations: 303.8 kB / 0.5685 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.3325, allocations: 1.205 MB / 0.5697 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.333, allocations: 253.4 kB / 0.57 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.3333, allocations: 149.2 kB / 0.5701 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.3333, allocations: 4.281 kB / 0.5701 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.3334, allocations: 34.84 kB / 0.5701 GB, free: 11.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.563e-06/0.3334, allocations: 0 / 0.5701 GB, free: 11.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008939/0.3343, allocations: 375.5 kB / 0.5705 GB, free: 10.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3343, allocations: 59.34 kB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.3346, allocations: 265.8 kB / 0.5708 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.3347, allocations: 29.7 kB / 0.5708 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.3348, allocations: 224.2 kB / 0.571 GB, free: 10.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.3349, allocations: 119 kB / 0.5712 GB, free: 9.949 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.3351, allocations: 74.08 kB / 0.5712 GB, free: 9.871 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3352, allocations: 338.8 kB / 0.5716 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.3355, allocations: 108.8 kB / 0.5717 GB, free: 9.426 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.3358, allocations: 171.5 kB / 0.5718 GB, free: 9.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005341/0.3363, allocations: 292.6 kB / 0.5721 GB, free: 8.926 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3363, allocations: 4 kB / 0.5721 GB, free: 8.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006883/0.337, allocations: 366.6 kB / 0.5725 GB, free: 8.559 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.337, allocations: 7.984 kB / 0.5725 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.337, allocations: 4 kB / 0.5725 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.337, allocations: 4 kB / 0.5725 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005/0.3375, allocations: 107.8 kB / 0.5726 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.3375, allocations: 0 / 0.5726 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.3378, allocations: 47.72 kB / 0.5726 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.3378, allocations: 11.98 kB / 0.5726 GB, free: 8.379 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.0001815/0.338, allocations: 157.8 kB / 0.5728 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.246e-05/0.3381, allocations: 27.81 kB / 0.5728 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006738/0.3388, allocations: 325.2 kB / 0.5731 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3388, allocations: 4 kB / 0.5731 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3388, allocations: 0 / 0.5731 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.3388, allocations: 0 / 0.5731 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004641/0.3392, allocations: 336.3 kB / 0.5734 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3392, allocations: 0 / 0.5734 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/0.3397, allocations: 91.88 kB / 0.5735 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3397, allocations: 3.938 kB / 0.5735 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.3397, allocations: 8 kB / 0.5735 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3397, allocations: 0 / 0.5735 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3397, allocations: 3.984 kB / 0.5735 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008878/0.3406, allocations: 0.5147 MB / 0.574 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3407, allocations: 55.69 kB / 0.5741 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.3408, allocations: 4 kB / 0.5741 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.341, allocations: 19.98 kB / 0.5741 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.447e-05/0.341, allocations: 19.97 kB / 0.5741 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.3411, allocations: 15.98 kB / 0.5742 GB, free: 6.738 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3413, allocations: 185.2 kB / 0.5743 GB, free: 6.555 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3413, allocations: 0 / 0.5743 GB, free: 6.555 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000366/0.3416, allocations: 91.84 kB / 0.5744 GB, free: 6.465 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.001205/0.3428, allocations: 1.064 MB / 0.5755 GB, free: 5.375 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005742/0.3434, allocations: 259.8 kB / 0.5757 GB, free: 5.121 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3434, allocations: 0 / 0.5757 GB, free: 5.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002601/0.3437, allocations: 123.8 kB / 0.5758 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.344, allocations: 28.48 kB / 0.5758 GB, free: 4.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.3486, allocations: 3.145 MB / 0.5789 GB, free: 1.711 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.3489, allocations: 185.3 kB / 0.5791 GB, free: 1.508 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001867/0.3491, allocations: 38.95 kB / 0.5791 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002072/0.3493, allocations: 107.4 kB / 0.5792 GB, free: 1.367 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3493, allocations: 0 / 0.5792 GB, free: 1.367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02731/0.3766, allocations: 6.139 MB / 0.5852 GB, free: 11.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.64, allocations: 13.73 kB / 0.5852 GB, free: 11.4 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.598425119998865]