Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.0008162/0.0008162, allocations: 79.69 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.0009621/0.0009621, 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.8913/0.8913, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2529/0.2529, allocations: 34.25 MB / 294.9 MB, free: 0.7266 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.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/2.014e-05, allocations: 2.281 kB / 442.2 MB, free: 1.668 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.2057/0.2057, allocations: 2.345 MB / 444.5 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009615/0.2067, allocations: 0.7955 MB / 445.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.2068, allocations: 3.469 kB / 445.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.2069, allocations: 60.8 kB / 445.4 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.2071, allocations: 112.2 kB / 445.5 MB, free: 42.89 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.2073, allocations: 104.1 kB / 445.6 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002152/0.2075, allocations: 366.8 kB / 445.9 MB, free: 42.8 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2077, allocations: 61.3 kB / 446 MB, free: 42.79 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.2079, allocations: 207.9 kB / 446.2 MB, free: 42.76 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.208, allocations: 115.6 kB / 446.3 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.161e-05/0.208, allocations: 30.06 kB / 446.3 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.273e-05/0.2081, allocations: 31.34 kB / 446.4 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.586e-05/0.2081, allocations: 68.7 kB / 446.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.534e-05/0.2082, allocations: 112.2 kB / 446.6 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.2084, allocations: 392.6 kB / 446.9 MB, free: 42.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2084, allocations: 2.781 kB / 446.9 MB, free: 42.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2084, allocations: 0 / 446.9 MB, free: 42.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2084, allocations: 0 / 446.9 MB, free: 42.48 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006196/0.209, allocations: 0.5523 MB / 447.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2091, allocations: 11.94 kB / 447.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.891e-05/0.2091, allocations: 58.86 kB / 447.6 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.871e-05/0.2092, allocations: 45.92 kB / 447.6 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002351/0.2094, allocations: 214.5 kB / 447.8 MB, free: 41.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.2095, allocations: 17.88 kB / 447.8 MB, free: 41.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.2095, allocations: 25.5 kB / 447.9 MB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.2098, allocations: 242.9 kB / 448.1 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2098, allocations: 192 / 448.1 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.2098, allocations: 14.78 kB / 448.1 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2098, allocations: 5.344 kB / 448.1 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.2101, allocations: 232.4 kB / 448.3 MB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008158/0.2109, allocations: 0.7864 MB / 449.1 MB, free: 41.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.2112, allocations: 287.1 kB / 449.4 MB, free: 40.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2114, allocations: 128.3 kB / 449.5 MB, free: 40.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.2114, allocations: 5.844 kB / 449.5 MB, free: 40.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.2114, allocations: 37.31 kB / 449.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.373e-06/0.2114, allocations: 0 / 449.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.002037/0.2134, allocations: 0.9588 MB / 450.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.206e-05/0.2135, allocations: 60.66 kB / 450.6 MB, free: 40.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.2136, allocations: 236.1 kB / 450.8 MB, free: 40.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.2136, allocations: 29.7 kB / 450.9 MB, free: 40.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.2137, allocations: 172.8 kB / 451 MB, free: 40.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.2137, allocations: 105.4 kB / 451.1 MB, free: 40.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.2137, allocations: 50.89 kB / 451.2 MB, free: 40.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.228e-05/0.2138, allocations: 338.6 kB / 451.5 MB, free: 39.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.2139, allocations: 94.78 kB / 451.6 MB, free: 39.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.214, allocations: 125.2 kB / 451.7 MB, free: 39.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.2143, allocations: 234.9 kB / 452 MB, free: 39.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2143, allocations: 0 / 452 MB, free: 39.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008041/0.2151, allocations: 0.5429 MB / 452.5 MB, free: 39.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2151, allocations: 2.844 kB / 452.5 MB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2151, allocations: 2.969 kB / 452.5 MB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007005/0.2158, allocations: 317.4 kB / 452.8 MB, free: 39.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.347e-05/0.2159, allocations: 25.95 kB / 452.8 MB, free: 39.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.2191, allocations: 6.368 MB / 459.2 MB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.567e-05/0.2192, allocations: 32.8 kB / 459.2 MB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.2192, allocations: 9.594 kB / 459.2 MB, free: 33.49 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 8.299e-05/0.2193, allocations: 140.1 kB / 459.4 MB, free: 33.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.2193, allocations: 30.22 kB / 459.4 MB, free: 33.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000783/0.2201, allocations: 0.5484 MB / 460 MB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2201, allocations: 2.875 kB / 460 MB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.2201, allocations: 0 / 460 MB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2201, allocations: 3.281 kB / 460 MB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.2204, allocations: 299.2 kB / 460.3 MB, free: 32.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2204, allocations: 0 / 460.3 MB, free: 32.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.082e-05/0.2204, allocations: 29.67 kB / 460.3 MB, free: 32.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006248/0.221, allocations: 307.9 kB / 460.6 MB, free: 32.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.221, allocations: 8 kB / 460.6 MB, free: 32.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/0.2242, allocations: 6.421 MB / 467 MB, free: 27.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2242, allocations: 3.344 kB / 467 MB, free: 27.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008353/0.225, allocations: 0.6129 MB / 467.6 MB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.331e-05/0.2251, allocations: 29.41 kB / 467.7 MB, free: 26.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.2251, allocations: 11 kB / 467.7 MB, free: 26.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.051e-05/0.2252, allocations: 16.78 kB / 467.7 MB, free: 26.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.619e-05/0.2253, allocations: 33.88 kB / 467.7 MB, free: 26.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.2253, allocations: 13.48 kB / 467.7 MB, free: 26.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.507e-05/0.2254, allocations: 169.4 kB / 467.9 MB, free: 26.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2254, allocations: 0 / 467.9 MB, free: 26.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003458/0.2257, allocations: 125.4 kB / 468 MB, free: 26.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009558/0.2267, allocations: 1.163 MB / 469.2 MB, free: 25.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005817/0.2272, allocations: 0.7394 MB / 469.9 MB, free: 25.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2272, allocations: 6.969 kB / 469.9 MB, free: 25.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000509/0.2278, allocations: 0.7167 MB / 470.7 MB, free: 24.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.228, allocations: 25.16 kB / 470.7 MB, free: 24.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.2309, allocations: 3.151 MB / 473.8 MB, free: 22.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.062e-05/0.231, allocations: 174.5 kB / 474 MB, free: 22.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.095e-05/0.231, allocations: 5.156 kB / 474 MB, free: 22.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.113e-05/0.2311, allocations: 88.94 kB / 474.1 MB, free: 22.48 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2311, allocations: 0 / 474.1 MB, free: 22.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02561/0.2567, allocations: 11.9 MB / 486 MB, free: 20.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.306, allocations: 8.5 kB / 486 MB, free: 20.45 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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: 10.291368101723492]