Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 220.2 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2556/0.2556, allocations: 46.93 MB / 361.6 MB, free: 4.211 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 75.86 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3072, allocations: 66.09 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004644/0.3119, allocations: 3.046 MB / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3133, allocations: 0.7789 MB / 0.5652 GB, free: 480 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.3135, allocations: 8 kB / 0.5652 GB, free: 472 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.3137, allocations: 59.38 kB / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.3139, allocations: 103 kB / 0.5654 GB, free: 308 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.3142, allocations: 123.8 kB / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.3148, allocations: 470.7 kB / 0.566 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.315, allocations: 112.4 kB / 0.5661 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.3153, allocations: 195.3 kB / 0.5663 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.3156, allocations: 207.1 kB / 0.5665 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-05/0.3156, allocations: 36 kB / 0.5665 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.359e-05/0.3157, allocations: 44 kB / 0.5665 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.069e-05/0.3158, allocations: 91.61 kB / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.316, allocations: 207 kB / 0.5668 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005326/0.3166, allocations: 470 kB / 0.5673 GB, free: 14.37 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3166, allocations: 0 / 0.5673 GB, free: 14.37 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3166, allocations: 0 / 0.5673 GB, free: 14.37 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.3166, allocations: 0 / 0.5673 GB, free: 14.37 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.001396/0.318, allocations: 0.6379 MB / 0.5679 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.318, allocations: 16.02 kB / 0.5679 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.15e-05/0.318, allocations: 17.19 kB / 0.5679 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.065e-05/0.3181, allocations: 74.72 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.3184, allocations: 56.64 kB / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.3188, allocations: 238 kB / 0.5683 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.3188, allocations: 29.38 kB / 0.5683 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.637e-05/0.3189, allocations: 40.38 kB / 0.5683 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006773/0.3196, allocations: 346.4 kB / 0.5687 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.3196, allocations: 0 / 0.5687 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.3196, allocations: 19.94 kB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3196, allocations: 8 kB / 0.5687 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006747/0.3203, allocations: 299.8 kB / 0.569 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.3226, allocations: 1.303 MB / 0.5703 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.3232, allocations: 256.9 kB / 0.5705 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.3235, allocations: 133.4 kB / 0.5706 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.3235, allocations: 4.281 kB / 0.5706 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.3235, allocations: 46.77 kB / 0.5707 GB, free: 10.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.754e-06/0.3235, allocations: 4 kB / 0.5707 GB, free: 10.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008784/0.3244, allocations: 367.6 kB / 0.571 GB, free: 10.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.3245, allocations: 59.34 kB / 0.5711 GB, free: 10.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.3248, allocations: 261.8 kB / 0.5713 GB, free: 9.992 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3248, allocations: 33.7 kB / 0.5714 GB, free: 9.953 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.3249, allocations: 212.3 kB / 0.5716 GB, free: 9.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.325, allocations: 130.9 kB / 0.5717 GB, free: 9.613 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.3252, allocations: 70.08 kB / 0.5718 GB, free: 9.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3253, allocations: 338.8 kB / 0.5721 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.3256, allocations: 104.8 kB / 0.5722 GB, free: 9.098 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.3259, allocations: 179.4 kB / 0.5724 GB, free: 8.898 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005746/0.3265, allocations: 288.6 kB / 0.5726 GB, free: 8.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3265, allocations: 0 / 0.5726 GB, free: 8.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007216/0.3272, allocations: 370.3 kB / 0.573 GB, free: 8.227 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.3272, allocations: 10.25 kB / 0.573 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3272, allocations: 4 kB / 0.573 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.3273, allocations: 4 kB / 0.573 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.3278, allocations: 103.8 kB / 0.5731 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.3278, allocations: 7.984 kB / 0.5731 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.3281, allocations: 35.73 kB / 0.5731 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.3281, allocations: 19.98 kB / 0.5732 GB, free: 8.047 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.0001708/0.3283, allocations: 145.7 kB / 0.5733 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.283e-05/0.3283, allocations: 35.81 kB / 0.5733 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007237/0.3291, allocations: 325.2 kB / 0.5736 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3291, allocations: 4 kB / 0.5736 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3291, allocations: 0 / 0.5736 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.3291, allocations: 3.984 kB / 0.5736 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/0.3296, allocations: 380.1 kB / 0.574 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3296, allocations: 0 / 0.574 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/0.3301, allocations: 83.88 kB / 0.5741 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3301, allocations: 11.98 kB / 0.5741 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.3301, allocations: 4 kB / 0.5741 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3301, allocations: 0 / 0.5741 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3301, allocations: 4 kB / 0.5741 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009461/0.3311, allocations: 0.5185 MB / 0.5746 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3312, allocations: 55.81 kB / 0.5747 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.3313, allocations: 7.984 kB / 0.5747 GB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3315, allocations: 12 kB / 0.5747 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.151e-05/0.3316, allocations: 23.95 kB / 0.5747 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.3316, allocations: 11.94 kB / 0.5747 GB, free: 6.367 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.3318, allocations: 189.2 kB / 0.5749 GB, free: 6.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3318, allocations: 0 / 0.5749 GB, free: 6.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000388/0.3322, allocations: 91.84 kB / 0.575 GB, free: 6.09 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.001289/0.3335, allocations: 1.067 MB / 0.576 GB, free: 4.996 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006385/0.3341, allocations: 260 kB / 0.5763 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3341, allocations: 0 / 0.5763 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002752/0.3344, allocations: 123.8 kB / 0.5764 GB, free: 4.621 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.3348, allocations: 32.48 kB / 0.5764 GB, free: 4.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004703/0.3395, allocations: 3.141 MB / 0.5795 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.3399, allocations: 0.7874 MB / 0.5803 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000189/0.3401, allocations: 42.94 kB / 0.5803 GB, free: 484 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.3403, allocations: 107.4 kB / 0.5804 GB, free: 376 kB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3403, allocations: 0 / 0.5804 GB, free: 376 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.3684, allocations: 6.123 MB / 0.5864 GB, free: 10.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.25, allocations: 5.141 kB / 0.5864 GB, free: 10.37 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.294327378971502]