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.0008328/0.0008328, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009622/0.0009622, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9479/0.9479, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.2757/0.2757, allocations: 34.25 MB / 294.9 MB, free: 0.7227 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 442.2 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.953e-05/2.1e-05, allocations: 4.25 kB / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.1988/0.1988, allocations: 2.807 MB / 445 MB, free: 43.04 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.1998, allocations: 0.7381 MB / 445.7 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.1999, allocations: 12.59 kB / 445.7 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.2001, allocations: 65.45 kB / 445.8 MB, free: 42.71 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001546/0.2003, allocations: 103 kB / 445.9 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.2006, allocations: 120.9 kB / 446 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.2009, allocations: 489 kB / 446.5 MB, free: 42.49 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.2011, allocations: 102.3 kB / 446.6 MB, free: 42.44 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.2015, allocations: 276.6 kB / 446.9 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.2016, allocations: 152 kB / 447 MB, free: 42.28 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/0.2017, allocations: 44.62 kB / 447 MB, free: 42.27 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.287e-05/0.2018, allocations: 45.06 kB / 447.1 MB, free: 42.27 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.569e-05/0.2018, allocations: 92.09 kB / 447.2 MB, free: 42.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.079e-05/0.2019, allocations: 143.1 kB / 447.3 MB, free: 42.15 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.2023, allocations: 485.1 kB / 447.8 MB, free: 41.97 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.2023, allocations: 0 / 447.8 MB, free: 41.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.586e-06/0.2023, allocations: 0 / 447.8 MB, free: 41.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.2023, allocations: 0 / 447.8 MB, free: 41.97 MB / 410.7 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.0009202/0.2033, allocations: 0.6355 MB / 448.4 MB, free: 41.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/0.2033, allocations: 8.75 kB / 448.4 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.155e-05/0.2034, allocations: 76.83 kB / 448.5 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.2036, allocations: 59.7 kB / 448.6 MB, free: 41.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.2039, allocations: 245.5 kB / 448.8 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.204, allocations: 30.81 kB / 448.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.204, allocations: 34.94 kB / 448.9 MB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.2045, allocations: 350 kB / 449.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.2045, allocations: 192 / 449.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.2045, allocations: 18.62 kB / 449.2 MB, free: 41.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.2045, allocations: 11.25 kB / 449.2 MB, free: 41.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003883/0.2049, allocations: 305.6 kB / 449.5 MB, free: 40.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.2064, allocations: 1.201 MB / 450.7 MB, free: 40.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.2068, allocations: 257.9 kB / 451 MB, free: 40.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.2069, allocations: 139.7 kB / 451.1 MB, free: 39.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.207, allocations: 3.188 kB / 451.1 MB, free: 39.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.207, allocations: 41.72 kB / 451.2 MB, free: 39.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 1.633e-06/0.207, allocations: 0 / 451.2 MB, free: 39.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005583/0.2076, allocations: 376.5 kB / 451.5 MB, free: 39.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.2076, allocations: 61 kB / 451.6 MB, free: 39.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.2078, allocations: 264.9 kB / 451.9 MB, free: 39.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.2078, allocations: 32.58 kB / 451.9 MB, free: 39.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.288e-05/0.2079, allocations: 203.1 kB / 452.1 MB, free: 39.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.2079, allocations: 129.7 kB / 452.2 MB, free: 39.24 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.5e-05/0.208, allocations: 64.09 kB / 452.3 MB, free: 39.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.2081, allocations: 340.4 kB / 452.6 MB, free: 38.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.2082, allocations: 112.7 kB / 452.7 MB, free: 38.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.2084, allocations: 171 kB / 452.9 MB, free: 38.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.2087, allocations: 284.9 kB / 453.2 MB, free: 38.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2087, allocations: 4 kB / 453.2 MB, free: 38.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0003793/0.2091, allocations: 371.6 kB / 453.5 MB, free: 38.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2091, allocations: 5.688 kB / 453.5 MB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2091, allocations: 2.844 kB / 453.5 MB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2091, allocations: 2.969 kB / 453.5 MB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.2094, allocations: 111.3 kB / 453.7 MB, free: 38.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.2094, allocations: 5.594 kB / 453.7 MB, free: 38.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.2095, allocations: 44.31 kB / 453.7 MB, free: 38.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.2095, allocations: 14.88 kB / 453.7 MB, free: 38.35 MB / 410.7 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 9.362e-05/0.2096, allocations: 153.3 kB / 453.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.2096, allocations: 31.41 kB / 453.9 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003817/0.21, allocations: 331.5 kB / 454.2 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.21, allocations: 7 kB / 454.2 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.21, allocations: 0 / 454.2 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.21, allocations: 3.375 kB / 454.2 MB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.2103, allocations: 324.1 kB / 454.5 MB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2103, allocations: 3.281 kB / 454.6 MB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002034/0.2105, allocations: 83.17 kB / 454.6 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2105, allocations: 3.938 kB / 454.6 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.2105, allocations: 8.375 kB / 454.6 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2105, allocations: 4.641 kB / 454.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2105, allocations: 0 / 454.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000512/0.211, allocations: 0.5202 MB / 455.2 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-05/0.2111, allocations: 54.02 kB / 455.2 MB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.2111, allocations: 10.38 kB / 455.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.625e-05/0.2112, allocations: 13.97 kB / 455.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.2113, allocations: 19.25 kB / 455.3 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.2113, allocations: 10.09 kB / 455.3 MB, free: 37.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001081/0.2114, allocations: 190 kB / 455.5 MB, free: 37.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2114, allocations: 0 / 455.5 MB, free: 37.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002375/0.2116, allocations: 96.95 kB / 455.6 MB, free: 37.31 MB / 410.7 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.0006508/0.2123, allocations: 1.05 MB / 456.6 MB, free: 36.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003583/0.2126, allocations: 268.2 kB / 456.9 MB, free: 36.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2126, allocations: 64 / 456.9 MB, free: 36.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.2128, allocations: 124.2 kB / 457 MB, free: 36.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.2131, allocations: 41.34 kB / 457 MB, free: 36.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.2155, allocations: 3.079 MB / 460.1 MB, free: 34.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.2156, allocations: 186.1 kB / 460.3 MB, free: 34.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000124/0.2158, allocations: 39.06 kB / 460.3 MB, free: 34.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2159, allocations: 110.2 kB / 460.4 MB, free: 34.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2159, allocations: 0 / 460.4 MB, free: 34.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.2354, allocations: 6.538 MB / 467 MB, free: 32.77 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.788/7.024, allocations: 11.53 kB / 467 MB, free: 32.76 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins/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: 9.084995685145259]