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.001324/0.001324, allocations: 116.1 kB / 21.23 MB, free: 0.6016 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.002794/0.002794, allocations: 221 kB / 24.54 MB, free: 3.812 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.499/1.499, 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.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.2386/0.2386, allocations: 46.94 MB / 361.7 MB, free: 4.285 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.002695/0.002695, allocations: 67.89 kB / 0.4969 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3327, allocations: 66.03 MB / 0.5614 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.005126/0.3378, allocations: 3.04 MB / 0.5644 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.3396, allocations: 0.7828 MB / 0.5651 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.3398, allocations: 8 kB / 0.5652 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.34, allocations: 59.33 kB / 0.5652 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.3403, allocations: 103 kB / 0.5653 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.3407, allocations: 123.8 kB / 0.5654 GB, free: 388 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006044/0.3413, allocations: 474.7 kB / 0.5659 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002627/0.3415, allocations: 112.4 kB / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003529/0.3419, allocations: 191.2 kB / 0.5662 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.3422, allocations: 207.1 kB / 0.5664 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.438e-05/0.3422, allocations: 40 kB / 0.5664 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.3423, allocations: 40 kB / 0.5664 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.053e-05/0.3424, allocations: 91.67 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.3427, allocations: 214.9 kB / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006409/0.3433, allocations: 470 kB / 0.5672 GB, free: 14.56 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3433, allocations: 0 / 0.5672 GB, free: 14.56 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3433, allocations: 0 / 0.5672 GB, free: 14.56 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.3433, allocations: 0 / 0.5672 GB, free: 14.56 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.001456/0.3448, allocations: 0.6379 MB / 0.5678 GB, free: 13.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3448, allocations: 16.03 kB / 0.5678 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.455e-05/0.3448, allocations: 9.188 kB / 0.5678 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.322e-05/0.3449, allocations: 74.72 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002545/0.3452, allocations: 60.58 kB / 0.568 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004703/0.3457, allocations: 242 kB / 0.5682 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.3457, allocations: 29.38 kB / 0.5682 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.487e-05/0.3458, allocations: 40.38 kB / 0.5683 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006852/0.3464, allocations: 342.4 kB / 0.5686 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3465, allocations: 0 / 0.5686 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.3465, allocations: 16 kB / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.3465, allocations: 12 kB / 0.5686 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006812/0.3472, allocations: 303.8 kB / 0.5689 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.3496, allocations: 1.295 MB / 0.5702 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005343/0.3501, allocations: 249 kB / 0.5704 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000297/0.3504, allocations: 137.4 kB / 0.5705 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.3505, allocations: 4.281 kB / 0.5705 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.3505, allocations: 34.84 kB / 0.5706 GB, free: 10.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.583e-06/0.3505, allocations: 4 kB / 0.5706 GB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008843/0.3514, allocations: 379.4 kB / 0.5709 GB, free: 10.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.3514, allocations: 59.34 kB / 0.571 GB, free: 10.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.3517, allocations: 265.8 kB / 0.5712 GB, free: 10.19 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.3518, allocations: 29.7 kB / 0.5713 GB, free: 10.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3519, allocations: 212.3 kB / 0.5715 GB, free: 9.945 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.352, allocations: 130.9 kB / 0.5716 GB, free: 9.816 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.3522, allocations: 70.08 kB / 0.5717 GB, free: 9.742 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3523, allocations: 338.8 kB / 0.572 GB, free: 9.402 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.3526, allocations: 108.8 kB / 0.5721 GB, free: 9.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/0.3529, allocations: 175.4 kB / 0.5723 GB, free: 9.102 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005451/0.3535, allocations: 284.7 kB / 0.5725 GB, free: 8.801 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3535, allocations: 4 kB / 0.5725 GB, free: 8.797 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007039/0.3542, allocations: 374.3 kB / 0.5729 GB, free: 8.426 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3542, allocations: 5.469 kB / 0.5729 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3542, allocations: 8 kB / 0.5729 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.3542, allocations: 4 kB / 0.5729 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004977/0.3547, allocations: 99.86 kB / 0.573 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.3547, allocations: 7.938 kB / 0.573 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.355, allocations: 43.72 kB / 0.5731 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.3551, allocations: 12 kB / 0.5731 GB, free: 8.25 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.0001865/0.3552, allocations: 157.7 kB / 0.5732 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.3553, allocations: 31.81 kB / 0.5733 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007196/0.356, allocations: 325.2 kB / 0.5736 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.356, allocations: 0 / 0.5736 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.356, allocations: 7.984 kB / 0.5736 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.356, allocations: 0 / 0.5736 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005096/0.3565, allocations: 384.1 kB / 0.5739 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3566, allocations: 0 / 0.5739 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004297/0.357, allocations: 87.81 kB / 0.574 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.357, allocations: 8 kB / 0.574 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.357, allocations: 7.984 kB / 0.574 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.357, allocations: 4 kB / 0.574 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.357, allocations: 0 / 0.574 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009384/0.358, allocations: 0.5108 MB / 0.5745 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.3581, allocations: 51.81 kB / 0.5746 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.029e-05/0.3581, allocations: 12 kB / 0.5746 GB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.3584, allocations: 11.98 kB / 0.5746 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.038e-05/0.3584, allocations: 19.95 kB / 0.5746 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.3584, allocations: 8 kB / 0.5746 GB, free: 6.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.3587, allocations: 189.2 kB / 0.5748 GB, free: 6.383 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3587, allocations: 4 kB / 0.5748 GB, free: 6.379 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004071/0.3591, allocations: 91.84 kB / 0.5749 GB, free: 6.289 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.001255/0.3603, allocations: 1.06 MB / 0.5759 GB, free: 5.203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006303/0.3609, allocations: 264.1 kB / 0.5762 GB, free: 4.945 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3609, allocations: 0 / 0.5762 GB, free: 4.945 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.3612, allocations: 127.8 kB / 0.5763 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.3616, allocations: 32.38 kB / 0.5763 GB, free: 4.789 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004597/0.3662, allocations: 3.141 MB / 0.5794 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3666, allocations: 0.7913 MB / 0.5802 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002085/0.3668, allocations: 38.94 kB / 0.5802 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.367, allocations: 115.4 kB / 0.5803 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.367, allocations: 0 / 0.5803 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03229/0.3993, allocations: 6.121 MB / 0.5863 GB, free: 10.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.44, allocations: 14.52 kB / 0.5863 GB, free: 10.59 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.46008107101079]